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

Re: [Xen-users] RHEL7 pygrub - configuration not recognized



Another approach.

See if your gentoo can mount the LVM containing the RHEL7 install, and
browse the grub.conf.

You will see they use grub2 and its installed to the MBR. You don't need any of that, nor do you need to use UUID in grub config. I would write a simple 5 line legacy grub file in
/boot/grub/menu.lst

Also, double check the UUID of the filesystem installed  as LVM and if its changed, then /etc/fstab needs an edit.

PryMar56


On Monday, November 21, 2016 8:12 AM, Mark Pryor <tlviewer@xxxxxxxxx> wrote:


Its the 64bit flag in /etc/mke2fs.conf
[fs_types]-> ext4 -> flags , notice the 64bit flag is default.

this setting is unique to RHEL7 & Centos7. It also breaks tools like pygrub & legacy grub.

When I make a new ext4 fs in Centos7 I always use
mkfs.ext4 -O^64bit <dev>

the above unsets the 64bit flag.

PryMar56


On Sunday, November 20, 2016 4:44 PM, Daniele Palumbo <daniele@xxxxxxxxxxxx> wrote:


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
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxx
https://lists.xen.org/xen-users



_______________________________________________
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®.