Bug 215799 - sysutils/grub2-bhyve fails to find linux kernel with fresh Centos7/RHEL7 installation
Summary: sysutils/grub2-bhyve fails to find linux kernel with fresh Centos7/RHEL7 inst...
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-ports-bugs mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-01-05 16:46 UTC by Palle Girgensohn
Modified: 2018-12-09 16:07 UTC (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Palle Girgensohn freebsd_committer 2017-01-05 16:46:27 UTC
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.
Comment 1 Ofloo 2017-08-13 10:19:58 UTC
Also effects me, .. and centos7 and I think this is a commen thing that it effects everyone.

error: not a correct XFS inode.
error: not a correct XFS inode.
error: not a correct XFS inode.
error: not a correct XFS inode.
error: not a correct XFS inode.
error: not a correct XFS inode.
error: not a correct XFS inode.
error: not a correct XFS inode.
error: not a correct XFS inode.
error: not a correct XFS inode.
Filesystem type xfs, UUID 03750327-dcfc-45ee-97d4-7eb2055d8fd0 - Partition start at 2048 - Total size
2097152 sectors

Install went fine..
Comment 2 Loyd Craft 2018-11-14 10:16:38 UTC
happens to me too.  Would really love to find a solution to this...


I'm using freebsd12-beta4 as the host.

chyves as the bhyve manager


centos 7.5
Comment 3 Tobias Kortkamp freebsd_committer 2018-11-14 10:36:46 UTC
Reset assignee.  Port has no maintainer anymore since ports r469306.
Comment 4 doctor 2018-12-07 00:06:13 UTC
Same problems being seen in Centos 7.6 and bhyve FreeBSD 11.2 p5
Comment 5 subbsd 2018-12-09 16:07:04 UTC
Same story.

This does not affect CBSD. So you can use sysutils/cbsd as a temporary workaround as described here: https://forums.freebsd.org/threads/58981/