* Virtio with Debian GNU/Linux Etch
@ 2010-09-17 16:56 Daniel Bareiro
2010-09-17 19:46 ` Stefan Hajnoczi
[not found] ` <4C93D99E.7000000@gmail.com>
0 siblings, 2 replies; 3+ messages in thread
From: Daniel Bareiro @ 2010-09-17 16:56 UTC (permalink / raw)
To: KVM General
[-- Attachment #1: Type: text/plain, Size: 733 bytes --]
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
--
Fingerprint: BFB3 08D6 B4D1 31B2 72B9 29CE 6696 BF1B 14E6 1D37
Powered by Debian GNU/Linux Lenny - Linux user #188.598
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 197 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Virtio with Debian GNU/Linux Etch
2010-09-17 16:56 Virtio with Debian GNU/Linux Etch Daniel Bareiro
@ 2010-09-17 19:46 ` Stefan Hajnoczi
[not found] ` <4C93D99E.7000000@gmail.com>
1 sibling, 0 replies; 3+ messages in thread
From: Stefan Hajnoczi @ 2010-09-17 19:46 UTC (permalink / raw)
To: dbareiro, KVM General
On Fri, Sep 17, 2010 at 5:56 PM, Daniel Bareiro <daniel-listas@gmx.net> wrote:
> 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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Virtio with Debian GNU/Linux Etch
[not found] ` <4C93D99E.7000000@gmail.com>
@ 2010-09-18 1:30 ` Daniel Bareiro
0 siblings, 0 replies; 3+ messages in thread
From: Daniel Bareiro @ 2010-09-18 1:30 UTC (permalink / raw)
To: KVM General
[-- Attachment #1: Type: text/plain, Size: 1481 bytes --]
Hi, Zdenek.
El viernes 17 de septiembre del 2010 a las 23:11:58,
Zdenek Kaspar escribió:
> > 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) 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.
> 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
--
Fingerprint: BFB3 08D6 B4D1 31B2 72B9 29CE 6696 BF1B 14E6 1D37
Powered by Debian GNU/Linux Lenny - Linux user #188.598
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 197 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-09-18 1:30 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-17 16:56 Virtio with Debian GNU/Linux Etch Daniel Bareiro
2010-09-17 19:46 ` Stefan Hajnoczi
[not found] ` <4C93D99E.7000000@gmail.com>
2010-09-18 1:30 ` Daniel Bareiro
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox