kvm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Michael Tokarev <mjt@tls.msk.ru>
To: dbareiro@gmx.net, KVM General <kvm@vger.kernel.org>
Subject: Re: Problem booting guest with Linux 2.6.3x
Date: Wed, 07 Oct 2009 15:12:26 +0400	[thread overview]
Message-ID: <4ACC779A.1030604@msgid.tls.msk.ru> (raw)
In-Reply-To: <20091007102339.GA32373@defiant.freesoftware.org>

Daniel Bareiro wrote:
> Hi, Alex.
> 
> On Tuesday, 06 October 2009 22:40:11 -0600,
> Alex Williamson wrote:
> 
>>> root  (hd0,1)
>>>  Filesystem type is ext2fs, partition type 0x83
>>> kernel  /boot/vmlinuz-2.6.31.2-dgb root=/dev/hda2 ro quiet console=tty0 console
>>> =ttyS0,38400n8
>>>   [Linux-bzImage, setup=0x3600, size=0x203480]
>>> initrd  /boot/initrd.img-2.6.31.2-dgb
>>>   [Linux-initrd @ 0x1f983000, 0x65c455 bytes]
>>>
>>> Loading, please wait...
>>> WARNING bootdevice may be renamed. Try root=/dev/sda2
>  
>> I think if you boot without the "quiet" option you'll see that your
>> guest IDE disk did in fact get installed as /dev/sda and following the
>> advice of the error message above will allow you to boot the guest.
> 
> I'm using the option "quiet" with both stock kernel and the kernel
> compiled by myself.

It's irrelevant. By using quiet you're hiding the details, that's
what it is about -- what's what Alex is saying.

>> You could boot using the uuid of the partition or label the filesystem
>> to avoid device naming issues between your original lenny kernel and
>> the newer kernel.
> 
> I was trying changing the not swap devices to the uuid form. Although in
> this case the swap device was not detected, the guest boots without
> majors problems. I think that being used the QEMU_HARDDISK names
> provided by udevinfo would have been solved this problem.
> 
> But according to it seems, I could verify that the disks that are passed
> with -hdX in KVM-88 are mapped in 2.6.31.2 guests like SATA/SCSI
> devices. With Linux stock 2.6.26 these are mapped like IDE disks. Can it
> be due to some change in the kernel code related with KVM?

It has nothing to do with kvm.  It's different kernel options, all kernels
since very early 2.6.x are able to see ide disks as hdX or sdX, depending
on the kernel options and modules loaded.  There are 2 drivers for each
IDE controller - IDE/ATA one, which creates hdX, and PATA one which creates
sdX.

/mjt

  reply	other threads:[~2009-10-07 11:13 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-07  2:24 Problem booting guest with Linux 2.6.3x Daniel Bareiro
2009-10-07  4:40 ` Alex Williamson
2009-10-07 10:23   ` Daniel Bareiro
2009-10-07 11:12     ` Michael Tokarev [this message]
2009-10-10 15:45       ` Daniel Bareiro
2009-10-10 16:10         ` Michael Tokarev
2009-10-13 15:41           ` Daniel Bareiro

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4ACC779A.1030604@msgid.tls.msk.ru \
    --to=mjt@tls.msk.ru \
    --cc=dbareiro@gmx.net \
    --cc=kvm@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).