[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-users] RHEL7 pygrub - configuration not recognized



Hi,

I am facing a problem on RHEL 7 image taken from Red Hat website.
pygrub seems not able to find the partition within, but on RHEL 6 it is working 
properly.

Based on the following, pygrub seems to support xfs since a long time:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=701672

xen is at version 4.6.4 on gentoo.
app-emulation/xen-tools-4.6.4

The image file:
0bfff47b55a9428c83d2235da9d470de  /usr/src/rhel-guest-image-7.3-35.x86_64.qcow2

I have deployed the qcow2 to a lvm logical volume
qemu-img convert /usr/src/rhel-guest-image-7.3-35.x86_64.qcow2 -O raw 
/dev/vgxxx/rhel7

pygrub is not able to see any grub file:
 ~ # /usr/bin/pygrub -l /dev/mapper/vgxxx-rhel7  --debug
Traceback (most recent call last):
  File "/usr/bin/pygrub", line 897, in <module>
    fs = fsimage.open(file, offset, bootfsoptions)
IOError: [Errno 95] Operation not supported
 ~ #

The filesystem is xfs:
~ # parted /dev/vgxxx/rhel7
GNU Parted 3.2
Using /dev/dm-22
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) p
Model: Unknown (unknown)
Disk /dev/dm-22: 10.7GB
Sector size (logical/physical): 512B/4096B
Partition Table: msdos
Disk Flags:

Number  Start   End     Size    Type     File system  Flags
 1      1049kB  8390MB  8389MB  primary  xfs          boot

(parted) q
~ #


As told before, rhel6 image is fully working, same methodology for deploy has 
been applied.

~ # md5sum /usr/src/rhel-guest-image-6.8-20160425.0.x86_64.qcow2
af8b3fd4ecfa3109a250d6cc74f14267  
/usr/src/rhel-guest-image-6.8-20160425.0.x86_64.qcow2

~ # /usr/bin/pygrub -l /dev/mapper/vgDax-rhel6  --debug
Using <class 'grub.GrubConf.GrubConfigFile'> to parse /boot/grub/menu.lst
title: Red Hat Enterprise Linux 6 (2.6.32-642.el6.x86_64)
  root: d0p0
  kernel: /boot/vmlinuz-2.6.32-642.el6.x86_64
  args: ro root=UUID=461d6a53-daf5-4577-ab90-1208e0b34fef rd_NO_LUKS  
KEYBOARDTYPE=pc KEYTABLE=us LANG=en_US.UTF-8 rd_NO_MD SYSFONT=latarcyrheb-sun16 
crashkernel=auto rd_NO_LVM console=tty0 console=ttyS0,115200n8 no_timer_check 
rd_NO_DM rhgb quiet
  initrd: /boot/initramfs-2.6.32-642.el6.x86_64.imglela ~ # parted 
/dev/vgDax/rhel6

~ # parted /dev/vgDax/rhel6
GNU Parted 3.2
Using /dev/dm-21
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) p
Model: Unknown (unknown)
Disk /dev/dm-21: 17.2GB
Sector size (logical/physical): 512B/4096B
Partition Table: msdos
Disk Flags:

Number  Start   End     Size    Type     File system  Flags
 1      1049kB  17.2GB  17.2GB  primary  ext4         boot

(parted) q
~ #

Any thought?

Thanks,
Daniele

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxx
https://lists.xen.org/xen-users

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.