From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Bareiro Subject: Re: SeaBIOS and GRUB booting from Virtio devices [was: GRUB and support for Virtio] Date: Tue, 24 Aug 2010 15:51:16 -0300 Message-ID: <20100824185116.GH8774@defiant.freesoftware> References: <4C6BF60B.3020104@internyc.net> <774428091.210.1282157156237.JavaMail.root@yellowwing> <20100824142359.GG8774@defiant.freesoftware> Reply-To: dbareiro@gmx.net Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="z+pzSjdB7cqptWpS" To: KVM General Return-path: Received: from mailout-de.gmx.net ([213.165.64.22]:59346 "HELO mail.gmx.net" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with SMTP id S1752227Ab0HXSvX (ORCPT ); Tue, 24 Aug 2010 14:51:23 -0400 Received: from defiant (defiant.freesoftware [10.1.0.65]) by hermes.freesoftware (Postfix) with ESMTP id CAB01B95 for ; Tue, 24 Aug 2010 15:48:19 -0300 (ART) Content-Disposition: inline In-Reply-To: <20100824142359.GG8774@defiant.freesoftware> Sender: kvm-owner@vger.kernel.org List-ID: --z+pzSjdB7cqptWpS Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tuesday, 24 August 2010 11:23:59 -0300, Daniel Bareiro wrote: > > Strange, i did 2 clean installs of centos 5.5 on an ubuntu 9.10 host > > and it went flawless with virtio devices ( both disks and network ). > Doing some tests with CentOS 5.5 on a KVM virtual machine, after doing > the installation, I added a second disk. But when trying to boot from > it, I get the following error: >=20 > --------------------------------------------------------------------- > root (hd1,0) >=20 > Error 21: Selected disk does not exist > --------------------------------------------------------------------- >=20 >=20 > The two disks are Virtio devices that are recognized when booting from > the first disk: >=20 > --------------------------------------------------------------------- > [root@localhost ~]# fdisk -l /dev/vda >=20 > Disco /dev/vda: 10.7 GB, 10737418240 bytes > 255 heads, 63 sectors/track, 1305 cylinders > Unidades =3D cilindros de 16065 * 512 =3D 8225280 bytes >=20 > Disposit. Inicio Comienzo Fin Bloques Id Sistema > /dev/vda1 * 1 1174 9430123+ fd Linux raid autode= tect > /dev/vda2 1175 1305 1052257+ fd Linux raid autode= tect > [root@localhost ~]# > [root@localhost ~]# > [root@localhost ~]# fdisk -l /dev/vdb >=20 > Disco /dev/vdb: 10.7 GB, 10737418240 bytes > 255 heads, 63 sectors/track, 1305 cylinders > Unidades =3D cilindros de 16065 * 512 =3D 8225280 bytes >=20 > Disposit. Inicio Comienzo Fin Bloques Id Sistema > /dev/vdb1 * 1 1174 9430123+ fd Linux raid autode= tect > /dev/vdb2 1175 1305 1052257+ fd Linux raid autode= tect > --------------------------------------------------------------------- >=20 > The idea of these tests is to set up software RAID1 on a running > system, since, it seems that Anaconda does not support installation on > degraded RAID. >=20 > But I'm not sure if this is a problem of Virtio or that GRUB is not > recognizing the second disk. >=20 > I made sure to modify /boot/grub/device.map with the entry for the new > disk: >=20 > --------------------------------------------------------------------- > [root@localhost grub]# cat /boot/grub/device.map > # this device map was generated by anaconda > (hd0) /dev/vda > (hd1) /dev/vdb > --------------------------------------------------------------------- >=20 > And the reconfiguration of GRUB on both disks did not give problems: >=20 > --------------------------------------------------------------------- > [root@localhost grub]# grub --device-map=3D/boot/grub/device.map >=20 >=20 > GNU GRUB version 0.97 (640K lower / 3072K upper memory) >=20 > [ Minimal BASH-like line editing is supported. For the first word, TAB > lists possible command completions. Anywhere else TAB lists the > possible > completions of a device/filename.] > grub> root (hd0,0) > root (hd0,0) > Filesystem type is ext2fs, partition type 0xfd > grub> setup (hd0) > setup (hd0) > Checking if "/boot/grub/stage1" exists... yes > Checking if "/boot/grub/stage2" exists... yes > Checking if "/boot/grub/e2fs_stage1_5" exists... yes > Running "embed /boot/grub/e2fs_stage1_5 (hd0)"... 15 sectors are > embedded. > succeeded > Running "install /boot/grub/stage1 (hd0) (hd0)1+15 p > (hd0,0)/boot/grub/stage2 /boot/grub/grub.conf"... succeeded > Done. > grub> root (hd1,0) > root (hd1,0) > Filesystem type is ext2fs, partition type 0xfd > grub> setup (hd1) > setup (hd1) > Checking if "/boot/grub/stage1" exists... yes > Checking if "/boot/grub/stage2" exists... yes > Checking if "/boot/grub/e2fs_stage1_5" exists... yes > Running "embed /boot/grub/e2fs_stage1_5 (hd1)"... 15 sectors are > embedded. > succeeded > Running "install /boot/grub/stage1 (hd1) (hd1)1+15 p > (hd1,0)/boot/grub/stage2 /boot/grub/grub.conf"... succeeded > Done. > grub> quit > quit > --------------------------------------------------------------------- >=20 >=20 > Any idea what may be causing the problem? Martin Kraus seems that recently experienced a similar problem and this was linked to SeaBIOS [1] and compiling the version from the git would solve this problem. I had no problems with GRUB trying to boot from two different IDE drives.=20 I would like to know if there are plans to incorporate this to stable KVM in the short term. Regards, Daniel [1] http://www.spinics.net/lists/kvm/msg39928.html --=20 Fingerprint: BFB3 08D6 B4D1 31B2 72B9 29CE 6696 BF1B 14E6 1D37 Powered by Debian GNU/Linux Lenny - Linux user #188.598 --z+pzSjdB7cqptWpS Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAkx0FKQACgkQZpa/GxTmHTdHoQCgiUVFrR+E7RIv1nq/qSSmPQI7 kSAAnRMuDBEkR9Z07vSl4BY/QzhcJ1dF =Gh2h -----END PGP SIGNATURE----- --z+pzSjdB7cqptWpS--