All of lore.kernel.org
 help / color / mirror / Atom feed
From: Daniel Bareiro <daniel-listas@gmx.net>
To: KVM General <kvm@vger.kernel.org>
Subject: Re: GRUB and support for Virtio
Date: Sat, 21 Aug 2010 21:44:53 -0300	[thread overview]
Message-ID: <20100822004453.GA8774@defiant.freesoftware> (raw)
In-Reply-To: <774428091.210.1282157156237.JavaMail.root@yellowwing>

[-- Attachment #1: Type: text/plain, Size: 2916 bytes --]

On Wednesday, 18 August 2010 21:45:56 +0300,
Nikolai K. Bochev 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 ).

It appears that Debian have the same problem. In the installation of
both Debian Lenny and CentOS 5.5, I had no problems, but appear later
using 'setup' and 'root':

-----------------------------------------------------------------------
debian-test8:~# fdisk -l /dev/vda

Disco /dev/vda: 10.7 GB, 10737418240 bytes
255 heads, 63 sectors/track, 1305 cylinders
Units = cilindros of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000b7998

Disposit. Inicio    Comienzo      Fin      Bloques  Id  Sistema
/dev/vda1               1         122      979933+  82  Linux swap / Solaris
/dev/vda2             123        1305     9502447+  83  Linux
debian-test8:~#
debian-test8:~#
debian-test8:~# grub
Probing devices to guess BIOS drives. This may take a long time.


    GNU GRUB  version 0.97  (640K lower / 3072K upper memory)

       [ 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,1)
root (hd0,1)

Error 21: Selected disk does not exist
grub>

grub> setup (hd0)

Error 12: Invalid device requested
-----------------------------------------------------------------------

But invoking GRUB with this file, it does recognize the disk:

-----------------------------------------------------------------------
debian-test8:~# cat /boot/grub/device.map
(hd0)   /dev/vda

debian-test8:~# grub --device-map=/boot/grub/device.map


    GNU GRUB  version 0.97  (640K lower / 3072K upper memory)

       [ 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,1)
root (hd0,1)
 Filesystem type is ext2fs, partition type 0x83
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)"...  17 sectors are embedded.
succeeded
 Running "install /boot/grub/stage1 (hd0) (hd0)1+17 p (hd0,1)/boot/grub/stage2
/boot/grub/menu.lst"... succeeded
Done.
-----------------------------------------------------------------------

However, in installations made on IDE disks, it is not necessary to do
this. What could be causing this difference?


Thanks 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 --]

  reply	other threads:[~2010-08-22  0:45 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-18  4:54 GRUB and support for Virtio Daniel Bareiro
2010-08-18 12:49 ` Martin Kraus
2010-08-18 13:30   ` Daniel Bareiro
2010-08-18 15:02     ` lists
2010-08-18 18:45       ` Nikolai K. Bochev
2010-08-22  0:44         ` Daniel Bareiro [this message]
2010-08-24 14:23         ` Daniel Bareiro
2010-08-24 18:51           ` SeaBIOS and GRUB booting from Virtio devices [was: GRUB and support for Virtio] Daniel Bareiro
2010-08-24 19:27             ` Anthony Liguori

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=20100822004453.GA8774@defiant.freesoftware \
    --to=daniel-listas@gmx.net \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.