Skip to contentSkip to conversation

Virtio with Debian GNU/Linux Etch

DISCUSSION Daniel Bareiro 2 participants 3 messages Sep 17, 2010 – Sep 18, 2010 1 message not in the archive KVM

lore
Share & tools
lore
#0 lore raw

Hi all!

I have some installations with Debian GNU/Linux Etch I'm migrating to KVM. I just installed a kernel 2.6.26 from backports to use Virtio.

But when I try to boot the operating system, it can not find the vd* device to mount the root filesystem. I made sure to change the /etc/fstab using partitions vd* and using in the 'root' GRUB parameter the vd corresponding partition. Just in case it were not loading the module, I added 'virtioi-blk' in /etc/modules, but I keep getting the same problem.

What could be the problem?

Thanks in advance for your replies.

Regards,
Daniel

Signature · 2 lines
Fingerprint: BFB3 08D6 B4D1 31B2 72B9  29CE 6696 BF1B 14E6 1D37
Powered by Debian GNU/Linux Lenny - Linux user #188.598
#1 lore raw
Quoted 11 lines · Daniel Bareiro

I have some installations with Debian GNU/Linux Etch I'm migrating to KVM. I just installed a kernel 2.6.26 from backports to use Virtio.

But when I try to boot the operating system, it can not find the vd* device to mount the root filesystem. I made sure to change the /etc/fstab using partitions vd* and using in the 'root' GRUB parameter the vd corresponding partition. Just in case it were not loading the module, I added 'virtioi-blk' in /etc/modules, but I keep getting the same problem.

What could be the problem?

1. Check that your VM has the virtio PCI adapters present. You can do this by running lspci from a livecd/installer or grep 1af4 /proc/bus/pci/devices. Look for PCI adapters with vendor ID 1af4 (Red Hat).
2. Check that the virtio kernel modules are loaded by your initramfs. Either check the kernel messages as it boots for virtio-pci or vd* related messages. Or get a debug shell in the initramfs and grep virtio-pci /proc/bus/pci/devices.
3. Did you really mean 'virtoi-blk' in /etc/modules? You can gunzip and cpio extract the initramfs to check that virtio, virtio_pci, virtio_ring, virtio_blk are present.

Stefan

A message that is not in the archive (sent off-list or not yet received): [email protected]

#3 lore raw

Hi, Zdenek.

Quoted 11 lines · Zdenek Kaspar
Quoted 11 lines

I have some installations with Debian GNU/Linux Etch I'm migrating to KVM. I just installed a kernel 2.6.26 from backports to use Virtio.

But when I try to boot the operating system, it can not find the vd* device to mount the root filesystem. I made sure to change the /etc/fstab using partitions vd* and using in the 'root' GRUB parameter the vd corresponding partition. Just in case it were not loading the module, I added 'virtioi-blk' in /etc/modules, but I keep getting the same problem.

Quoted 4 lines
Quoted 1 line

What could be the problem?

1) try put virtio_pci and virtio_blk into /etc/initramfs-tools/modules and run update-initramfs

Great! Following these steps, the kernel boots without problems!

It draws attention to me that previous was not necessary to do with a stock kernel 2.6.26 of Debian GNU/Linux Lenny wanting to switch from using IDE disks to virtio disks.

Quoted 4 lines

BTW, for next kernel package updates you should modify grub menu.lst:
ie: # kopt=root=/dev/vda1 ro otherwise next kernel update (update-grub) will screw root parameter again if the entries were automatically generated..

Thanks for the recommendation.

Thanks to both for your replies.

Regards,
Daniel

Signature · 2 lines
Fingerprint: BFB3 08D6 B4D1 31B2 72B9  29CE 6696 BF1B 14E6 1D37
Powered by Debian GNU/Linux Lenny - Linux user #188.598