在我的 Dom0 里面
我的错误日志:
sudo xl create /etc/xen/arkOS-Dev_PV.cfg
/var/log/xen/bootloader.1.log
pyGRUB version 0.6
┌────────────────────────────────────────────────────────────────────────┐
│ Arch GNU/Linux, with Linux core repo kernel │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
└────────────────────────────────────────────────────────────────────────┘
Use the ^ and ┴ keys to select which entry is highlighted.
Press enter to boot the selected OS, 'e' to edit the
commands before booting, 'a' to modify the kernel arguments
before booting, or 'c' for a command line.
[Errno 2] No such file or directory
Error opening /boot/vmlinuz-linux in guest
我的旧设置:
/etc/xen/ArkOS-Dev.cfg.old
name = 'ArkOS-Dev'
kernel = "/mnt/arch/boot/x86_64/vmlinuz"
ramdisk = "/mnt/arch/boot/x86_64/archiso.img"
extra = "archisobasedir=arch archisolabel=ARCH_201511"
memory = 512
disk = [ "phy:/dev/sda3,xvda,w", "file:/home/xen/ISO/archlinux-2015.11.01-dual.iso,xvdb:cdrom,r" ]
vif = [ 'mac=00:16:3e:49:2b:a1,bridge=xenbr0' ]
我当前的设置:
/etc/xen/Arkos-Dev.cfg
name = 'ArkOS-Dev'
bootloader = "pygrub"
memory = 512
disk = [ "phy:/dev/sda3,xvda,w" ]
vif = [ 'mac=00:16:3e:49:2b:a1,bridge=xenbr0' ]
lsblk-f
NAME FSTYPE LABEL UUID MOUNTPOINT
sda
|-sda1 vfat FF2C-B8A3 /boot
|-sda2 btrfs b3f4f40f-a8a1-4438-a187-dc02f2104340 /
|-sda3
`-sda4 swap f90e6e95-5f00-4138-aa76-13feb4bce985 [SWAP]
挂载-o循环/home/xen/ISO/archlinux-201511.01-dual.iso /mnt ls /mnt -lah
total 26K
drwxr-xr-x 1 root root 2.0K Nov 1 09:34 .
drwxr-xr-x 1 root root 136 Oct 29 20:39 ..
drwxr-xr-x 1 root root 2.0K Nov 1 09:34 EFI
drwxr-xr-x 1 root root 2.0K Nov 1 09:35 arch
drwxr-xr-x 1 root root 2.0K Nov 1 09:34 isolinux
drwxr-xr-x 1 root root 2.0K Nov 1 09:34 loader
挂载 /dev/sda3 /mnt
mount: wrong fs type, bad option, bad superblock on /dev/sda3,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so.
在我的 DomU 内部(通过旧设置)
lsblk-f
http://pastebin.archlinux.fr/1717775
arch-chroot /mnt /bin/bash lsblk -f
http://pastebin.archlinux.fr/1717771
ls -lah /启动
http://pastebin.archlinux.fr/1717772
我的 grub 文件:
/boot/grub/grub.cfg
答案1
最后发现DomU不需要“/boot”分区并且“原始分区=单个分区”(我认为)。因此,我需要 LVM,因为我仍然需要 DomU 上的交换空间。由于 LVM 并不容易,我的下一个问题位于:...