[Bug 215799] sysutils/grub2-bhyve fails to find linux kernel with fresh Centos7/RHEL7 installation

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Jan 5 16:46:28 UTC 2017


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=215799

            Bug ID: 215799
           Summary: sysutils/grub2-bhyve fails to find linux kernel with
                    fresh Centos7/RHEL7 installation
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: kmoore at FreeBSD.org
          Reporter: girgen at FreeBSD.org
             Flags: maintainer-feedback?(kmoore at FreeBSD.org)
          Assignee: kmoore at FreeBSD.org

Hi, 

Downloaded `CentOS-7-x86_64-Everything-1611.iso`, and also
`rhel-server-7.3-x86_64-dvd.iso`, and tried to install on

- FreeBSD 11.0-p6 host
- grub2-bhyve-0.40_1 from ports

After successful installation of the linux host from ISO image, restart the
bhyve with GRUB and it fails to read the XFS file system – [see also this forum
post (https://forums.freebsd.org/threads/58981/):

grub> ls
(lvm/cl-root) (lvm/cl-swap) (hd0) (hd0,msdos2) (hd0,msdos1) (host) 
grub> ls (lvm/cl-root)/
error: not a correct XFS inode.
...
grub> ls (hd0,msdos2)/
error: unknown filesystem.
grub> ls (hd0,msdos1)/
error: not a correct XFS inode.
...

I tried all options for standard partition, btreefs, LVM, etc with the latest
Centos and RHEL7 ISO:s. There is no alternative that works, they all give the
same problem.

$ cat device-cd.map 
(hd0) /dev/zvol/tank/bhyves/rhel/disk
(cd0) /home/girgen/rhel-server-7.3-x86_64-dvd.iso
$ cat grub-cd.in 
linux  (cd0)/isolinux/vmlinuz
initrd  (cd0)/isolinux/initrd.img 
boot
$ cat rhel-cd.sh 
#! /bin/sh

grub-bhyve -m device-cd.map -r cd0 -M 16384 rhel < grub-cd.in 
bhyve -A -H -P -s 0:0,hostbridge -s 1:0,lpc -s 2:0,virtio-net,tap0 \
        -s 3:0,virtio-blk,/dev/zvol/tank/bhyves/rhel/disk \
        -s 4:0,ahci-cd,/home/girgen/rhel-server-7.3-x86_64-dvd.iso \
        -l com1,stdio -c 4 -m 16384 rhel
bhyvectl --vm=rhel --destroy

running the script, all is dandy. after installation has finished, restarting
grub with `grub-bhyve -m device-cd.map -M 16384 rhel` gives the problems above.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list