bugGNU GRUB - Bugs: bug #33762, can't install on virtio virtual...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #33762: can't install on virtio virtual device in KVM machine

Submitted by:  Bartosz Feński <fenski>
Submitted on:  Wed 13 Jul 2011 07:50:14 AM UTC  
 
Category: InstallationSeverity: Major
Priority: 5 - NormalItem Group: Software Error
Status: FixedPrivacy: Public
Assigned to: NoneOriginator Name: 
Open/Closed: ClosedRelease: 
Release: 1.98Reproducibility: Every Time
Planned Release: None

(Jump to the original submission Jump to the original submission)

Sun 03 Jun 2012 12:10:47 PM UTC, comment #7:

There was a similar bug report because of wrong partition offset and which was fixed. Given the lack of response to the additional questions I suppose the fix corrected this as well.

Vladimir Serbinenko <phcoder>
Project Administrator
Thu 29 Sep 2011 02:34:11 PM UTC, comment #6:

Could you try
sudo dd if=/dev/vda count=1|xxd
?

Vladimir Serbinenko <phcoder>
Project Administrator
Sat 23 Jul 2011 03:46:02 PM UTC, comment #5:

I thought I'm talking with upstream ;)

In case you meant 1.99 release then this is output from grub-probe with that version:

mainsrv:~# /usr/sbin/grub-probe --device-map="/boot/grub/device.map" --target=fs -v /boot/grub
/usr/sbin/grub-probe: info: Scanning for dmraid_nv RAID devices on disk hd0.
/usr/sbin/grub-probe: info: the size of hd0 is 629145600.
/usr/sbin/grub-probe: info: the size of hd0 is 629145600.
/usr/sbin/grub-probe: info: scanning hd0 for LVM.
/usr/sbin/grub-probe: info: the size of hd0 is 629145600.
/usr/sbin/grub-probe: info: no LVM signature found.
/usr/sbin/grub-probe: info: the size of hd0 is 629145600.
/usr/sbin/grub-probe: info: Scanning for mdraid09 RAID devices on disk hd0.
/usr/sbin/grub-probe: info: the size of hd0 is 629145600.
/usr/sbin/grub-probe: info: the size of hd0 is 629145600.
/usr/sbin/grub-probe: info: Scanning for mdraid1x RAID devices on disk hd0.
/usr/sbin/grub-probe: info: the size of hd0 is 629145600.
/usr/sbin/grub-probe: info: the size of hd0 is 629145600.
/usr/sbin/grub-probe: info: Scanning for mdraid09 RAID devices on disk hd0.
/usr/sbin/grub-probe: info: the size of hd0 is 629145600.
/usr/sbin/grub-probe: info: the size of hd0 is 629145600.
/usr/sbin/grub-probe: info: Scanning for mdraid09 RAID devices on disk hd0,msdos2.
/usr/sbin/grub-probe: info: the size of hd0 is 629145600.
/usr/sbin/grub-probe: info: Scanning for mdraid09 RAID devices on disk hd0,msdos1.
/usr/sbin/grub-probe: info: the size of hd0 is 629145600.
error: cannot seek `/dev/vda'.
/usr/sbin/grub-probe: info: Scanning for mdraid1x RAID devices on disk hd0.
/usr/sbin/grub-probe: info: the size of hd0 is 629145600.
/usr/sbin/grub-probe: info: the size of hd0 is 629145600.
/usr/sbin/grub-probe: info: Scanning for mdraid1x RAID devices on disk hd0,msdos2.
/usr/sbin/grub-probe: info: the size of hd0 is 629145600.
/usr/sbin/grub-probe: info: Scanning for mdraid1x RAID devices on disk hd0,msdos1.
/usr/sbin/grub-probe: info: the size of hd0 is 629145600.
error: cannot seek `/dev/vda'.
/usr/sbin/grub-probe: info: scanning hd0 for LVM.
/usr/sbin/grub-probe: info: the size of hd0 is 629145600.
/usr/sbin/grub-probe: info: no LVM signature found.
/usr/sbin/grub-probe: info: the size of hd0 is 629145600.
/usr/sbin/grub-probe: info: scanning hd0,msdos2 for LVM.
/usr/sbin/grub-probe: info: the size of hd0 is 629145600.
/usr/sbin/grub-probe: info: no LVM signature found.
/usr/sbin/grub-probe: info: scanning hd0,msdos1 for LVM.
/usr/sbin/grub-probe: info: the size of hd0 is 629145600.
/usr/sbin/grub-probe: info: no LVM signature found.
/usr/sbin/grub-probe: info: /dev/vda1 starts from 2048.
/usr/sbin/grub-probe: info: opening the device hd0.
/usr/sbin/grub-probe: info: the size of hd0 is 629145600.
/usr/sbin/grub-probe: info: Partition 0 starts from 2048.
/usr/sbin/grub-probe: info: opening hd0,msdos1.
/usr/sbin/grub-probe: info: the size of hd0 is 629145600.
/usr/sbin/grub-probe: error: cannot seek `/dev/vda'.
mainsrv:~#

There are new parts wrt RAID/LVM but still it cannot seek /dev/vda.

If you didn't mean 1.99 release then please point me to the correct version and I'll try it.

regards
fEnIo

Bartosz Feński <fenski>
Thu 21 Jul 2011 11:22:49 AM UTC, comment #4:

Judging from the output it looks a lot like an issue with xvda1 w/o xvda which is fixed upstream. Could you please test the latest upstream?

Vladimir Serbinenko <phcoder>
Project Administrator
Mon 18 Jul 2011 07:03:36 PM UTC, comment #3:

Is someone going to comment that issue?

regards
fEnIo

Bartosz Feński <fenski>
Wed 13 Jul 2011 08:46:40 AM UTC, comment #2:

Found a difference eventually!

Don't know why fdisk shows it in the way I though it's the same as on my other machines.

cfdisk/parted show differences.

This is machine where I can install grub without problem:
serwer:~# cfdisk -P t /dev/vda
Partition Table for /dev/vda

---Starting---- ----Ending----- Start Number of
# Flags Head Sect Cyl ID Head Sect Cyl Sector Sectors
-- ----- ---- ---- ----- ---- ---- ---- ----- ----------- -----------
1 0x80 1 1 0 0x83 254 63 19458 63 312608772
2 0x00 0 1 19459 0x82 254 63 19580 312608835 1959930
3 0x00 0 0 0 0x00 0 0 0 0 0
4 0x00 0 0 0 0x00 0 0 0 0 0
serwer:~#

And this is problematic machine:

mainsrv:~# cfdisk -P t /dev/vda
Partition Table for /dev/vda

---Starting---- ----Ending----- Start Number of
# Flags Head Sect Cyl ID Head Sect Cyl Sector Sectors
-- ----- ---- ---- ----- ---- ---- ---- ----- ----------- -----------
1 0x80 32 33 0 0x83 254 63 39039 2048 627175552
2 0x00 0 1 39040 0x82 254 63 39161 627177600 1959930
3 0x00 0 0 0 0x00 0 0 0 0 0
4 0x00 0 0 0 0x00 0 0 0 0 0
mainsrv:~#

So seems it's not possible to install grub when first partiotion starts from 2048 sector.

Is it bug or intended behaviour?
grub 0.x aka legacy works fine.

Bartosz Feński <fenski>
Wed 13 Jul 2011 07:51:49 AM UTC, comment #1:

One more thing. I have many virtual machines and this is the only one where grub2 can't be installed.

Tried to find some differences between machines, but with no luck.

Bartosz Feński <fenski>
Wed 13 Jul 2011 07:50:14 AM UTC, original submission:

Hello.

I tried to install grub2 on my virtual machine which uses Virtio as an emulation layer for devices.

This is what I got:

Setting up grub-pc (1.98+20100804-14) ...

Creating config file /etc/default/grub with new version
error: cannot seek `/dev/vda'.
error: cannot seek `/dev/vda'.
/usr/sbin/grub-probe: error: cannot seek `/dev/vda'.
Auto-detection of a filesystem of /dev/vda1 failed.
Please report this together with the output of "/usr/sbin/grub-probe --device-map=/boot/grub/device.map --target=fs -v /boot/grub" to <bug-grub@gnu.org>
error: cannot seek `/dev/vda'.
error: cannot seek `/dev/vda'.
/usr/sbin/grub-probe: error: cannot seek `/dev/vda'.
Auto-detection of a filesystem of /dev/vda1 failed.
Please report this together with the output of "/usr/sbin/grub-probe --device-map=/boot/grub/device.map --target=fs -v /boot/grub" to <bug-grub@gnu.org>
Setting up grub (0.97-64) ...

And now what grub-probe says:

mainsrv:~# /usr/sbin/grub-probe --device-map=/boot/grub/device.map --target=fs -v /boot/grub
/usr/sbin/grub-probe: info: the size of hd0 is 629145600.
/usr/sbin/grub-probe: info: the size of hd0 is 629145600.
/usr/sbin/grub-probe: info: the size of hd0 is 629145600.
/usr/sbin/grub-probe: info: the size of hd0 is 629145600.
error: cannot seek `/dev/vda'.
/usr/sbin/grub-probe: info: the size of hd0 is 629145600.
/usr/sbin/grub-probe: info: the size of hd0 is 629145600.
/usr/sbin/grub-probe: info: the size of hd0 is 629145600.
/usr/sbin/grub-probe: info: the size of hd0 is 629145600.
/usr/sbin/grub-probe: info: changing current directory to /dev.
/usr/sbin/grub-probe: info: changing current directory to snd.
/usr/sbin/grub-probe: info: changing current directory to net.
/usr/sbin/grub-probe: info: changing current directory to shm.
/usr/sbin/grub-probe: info: changing current directory to network.
/usr/sbin/grub-probe: info: changing current directory to mapper.
/usr/sbin/grub-probe: info: changing current directory to disk.
/usr/sbin/grub-probe: info: changing current directory to by-uuid.
/usr/sbin/grub-probe: info: changing current directory to block.
/usr/sbin/grub-probe: info: changing current directory to bus.
/usr/sbin/grub-probe: info: changing current directory to usb.
/usr/sbin/grub-probe: info: changing current directory to 001.
/usr/sbin/grub-probe: info: /dev/vda1 starts from 2048.
/usr/sbin/grub-probe: info: opening the device hd0.
/usr/sbin/grub-probe: info: the size of hd0 is 629145600.
/usr/sbin/grub-probe: info: Partition 0 starts from 2048.
/usr/sbin/grub-probe: info: opening hd0,msdos1.
/usr/sbin/grub-probe: info: the size of hd0 is 629145600.
/usr/sbin/grub-probe: error: cannot seek `/dev/vda'.
mainsrv:~#

Output of fdisk:

mainsrv:~# fdisk -l

Disk /dev/vda: 322.1 GB, 322122547200 bytes
255 heads, 63 sectors/track, 39162 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0000ba57

Device Boot Start End Blocks Id System
/dev/vda1 * 1 39040 313587776 83 Linux
/dev/vda2 39041 39162 979965 82 Linux swap / Solaris
mainsrv:~#

mainsrv:~# tune2fs -l /dev/vda1
tune2fs 1.41.12 (17-May-2010)
Filesystem volume name: <none>
Last mounted on: <not available>
Filesystem UUID: 9ade651d-bd05-4a2a-81ee-fbe2cd9af52a
Filesystem magic number: 0xEF53
Filesystem revision #: 1 (dynamic)
Filesystem features: has_journal ext_attr resize_inode dir_index filetype needs_recovery sparse_super large_file
Filesystem flags: signed_directory_hash
Default mount options: (none)
Filesystem state: clean
Errors behavior: Continue
Filesystem OS type: Linux
Inode count: 18866176
Block count: 75451648
Reserved block count: 3772582
Free blocks: 39881678
Free inodes: 17198568
First block: 0
Block size: 4096
Fragment size: 4096
Reserved GDT blocks: 1006
Blocks per group: 32768
Fragments per group: 32768
Inodes per group: 8192
Inode blocks per group: 512
Filesystem created: Tue Jan 25 02:58:46 2011
Last mount time: Fri Feb 4 08:24:24 2011
Last write time: Tue Jan 25 05:20:32 2011
Mount count: 11
Maximum mount count: 26
Last checked: Tue Jan 25 02:58:46 2011
Check interval: 15552000 (6 months)
Next check after: Sun Jul 24 03:58:46 2011
Reserved blocks uid: 0 (user root)
Reserved blocks gid: 0 (group root)
First inode: 11
Inode size: 256
Required extra isize: 28
Desired extra isize: 28
Journal inode: 8
First orphan inode: 13591540
Default directory hash: half_md4
Directory Hash Seed: e8b1711e-00d2-4687-9afd-8b4a9283823e
Journal backup: inode blocks
mainsrv:~#

I tried to google for similar problems but seems I the one ;)

Any hints?

regards
fEnIo

Bartosz Feński <fenski>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by phcoder (Posted a comment)
  • -unavailable- added by fenski (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 03 Jun 2012 12:10:47 PM UTCphcoderStatusNone=>Fixed
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1