Skip to contentSkip to conversation

Mount errors in QEMU

Qemu-devel Peter Teoh 2 participants 3 messages May 31, 2008 – Jun 1, 2008

lore
Share & tools
lore

Peter Teoh

author
#0 lore raw

I got the following errors:

Loading dm-mirror.ko module
Loading dm-zero.ko module
Loading dm-snapshot.ko module
Making device-mapper control node
Scanning logical volumes
Reading all physical volumes. This may take a while... No volume groups found
Activating logical volumes
Volume group "clairevg" not found
Creating root device.
Mounting root filesystem.
mount: could not find filesystem '/dev/root' Setting up other filesystems.
Setting up new root fs
setuproot: moving /dev failed: No such file or directory no fstab.sys, mounting internal defaults
setuproot: error mounting /proc: No such file or directory
setuproot: error mounting /sys: No such file or directory Switching to new root and running init. unmounting old /dev
unmounting old /proc
unmounting old /sys
switchroot: mount failed: No such file or directory nash-hotplug used greatest stack depth: 2752 bytes left

Kernel panic - not syncing: Attempted to kill init!

My command line is:

qemu -hda disk.img -kernel /boot/vmlinuz-2.6.26-rc3 -append "root=/dev/sda5/" -initrd /boot/initrd-2.6.26-rc3.img

My distros is FC7. Filesystem:

Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda5 40631956 30185144 8349528 79% /
tmpfs 1037312 22932 1014380 3% /dev/shm

Can I know what is the problem? The "clairevg' volume group in the
error message above arises from the present environment where I run the qemu (0.9.1):

/mnt/hd1/download/qemu>vgscan
Reading all physical volumes. This may take a while... Found volume group "clairevg" using metadata type lvm2
/mnt/hd1/download/qemu>pvscan
PV /dev/sda6 VG clairevg lvm2 [107.03 GB / 2.03 GB free]
Total: 1 [107.03 GB] / in use: 1 [107.03 GB] / in no VG: 0 [0 ]
/mnt/hd1/download/qemu>lvscan
ACTIVE '/dev/clairevg/lv1' [105.00 GB] inherit

Signature · 2 lines
Regards,
Peter Teoh
#1 lore raw

Hi...

maybe your "root=' needs to point to the LVM volume instead of real partition. ANd just make sure your kernel already included LVM support...be it LVM version 1 or 2.

regards,

Mulyadi.

author
#2 lore raw
Quoted 12 lines · Mulyadi Santosa

Hi...

maybe your "root=' needs to point to the LVM volume instead of real partition. ANd just make sure your kernel already included LVM support...be it LVM version 1 or 2.

regards,

Mulyadi.

Thanks for the reply. As shown in "df", the root is not at the vg
level, as vg is just for storing a different set of data.

But I did try anyway. Let me try again...

Thanks Mulyadi..

Quoted 1 line
Signature · 2 lines
Regards,
Peter Teoh