|
折腾Xen Project,新建的DomU找不到硬盘,报错如下。有会解决的吗
[ol][ 1.534874] md: Waiting for all devices to be available before autodetect[ 1.534881] md: If you don't use raid, use raid=noautodetect[ 1.535511] md: Autodetecting RAID arrays.[ 1.535518] md: Scanned 0 and added 0 devices.[ 1.535522] md: autorun ...[ 1.535525] md: ... autorun DONE.[ 1.535643] VFS: Cannot open root device "xvda" or unknown-block(0,0): error -6[ 1.535651] Please append a correct "root=" boot option; here are the available partitions:[ 1.535660] 0100 16384 ram0 [ 1.535662] (driver?)[ 1.535667] 0101 16384 ram1 [ 1.535669] (driver?)[ 1.535673] 0102 16384 ram2 [ 1.535675] (driver?)[ 1.535679] 0103 16384 ram3 [ 1.535681] (driver?)[ 1.535684] 0104 16384 ram4 [ 1.535686] (driver?)[ 1.535690] 0105 16384 ram5 [ 1.535692] (driver?)[ 1.535696] 0106 16384 ram6 [ 1.535698] (driver?)[ 1.535702] 0107 16384 ram7 [ 1.535704] (driver?)[ 1.535708] 0108 16384 ram8 [ 1.535709] (driver?)[ 1.535713] 0109 16384 ram9 [ 1.535715] (driver?)[ 1.535719] 010a 16384 ram10 [ 1.535721] (driver?)[ 1.535725] 010b 16384 ram11 [ 1.535727] (driver?)[ 1.535731] 010c 16384 ram12 [ 1.535733] (driver?)[ 1.535737] 010d 16384 ram13 [ 1.535738] (driver?)[ 1.535742] 010e 16384 ram14 [ 1.535744] (driver?)[ 1.535748] 010f 16384 ram15 [ 1.535750] (driver?)[ 1.535755] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)[/ol]复制代码
DomU配置文件
[ol]# Guestnamename = "mini.linux"# 128-bit UUID for the domain as a hexadecimal number.# Use "uuidgen" to generate one if required.# The default behavior is to generate a new UUID each time the guest is started.#uuid = "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"# Kernel image to bootkernel = "/boot/vmlinuz-4.9.39-29.el6.x86_64"# Ramdisk (optional)#ramdisk = "/boot/initramfs-4.9.39-29.el6.x86_64.img"# Kernel command line optionsextra = "root=/dev/xvda selinux=0 init=/sbin/init"# Initial memory allocation (MB)memory = 128# Maximum memory (MB)# If this is greater than `memory' then the slack will start ballooned# (this assumes guest kernel support for ballooning)#maxmem = 512# Number of VCPUSvcpus = 2# Network devices# A list of 'vifspec' entries as described in# docs/misc/xl-network-configuration.markdownvif = [ '' ]# Disk Devices# A list of `diskspec' entries as described in# docs/misc/xl-disk-configuration.txtdisk = [ 'file:/data/xen/vm1/vm1.img,xvda,w' ][/ol]复制代码 |
|