grehan-freebsd / grub2-bhyve

GNU General Public License v3.0
51 stars 21 forks source link

What the heck with centos6 #11

Open PaulGWebster opened 4 years ago

PaulGWebster commented 4 years ago

`

Boot grub

grub-bhyve \ -m $MAPPATH \ -r hd0,msdos2 \ -M $MEMCOUNT \ -g grub.conf \ -d /boot/grub \ $HOSTNAME

grub> ls (hd0) (hd0,msdos3) (hd0,msdos2) (hd0,msdos1) (cd0) (cd0,msdos1) (host) grub> ls (hd0,msdos2)/boot/grub grub.conf splash.xpm.gz menu.lst device.map stage1 stage2 e2fs_stage1_5 fat_stage1_5 ffs_stage1_5 iso9660_stage1_5 jfs_stage1_5 minix_stage1_5 reiserfs_stage1_5 ufs2_stage 1_5 vstafs_stage1_5 xfs_stage1_5 grub>

grub> cat (hd0,msdos2)/boot/grub/grub.conf

grub.conf generated by anaconda

#

Note that you do not have to rerun grub after making changes to this file

NOTICE: You do not have a /boot partition. This means that

all kernel and initrd paths are relative to /, eg.

root (hd0,1)

kernel /boot/vmlinuz-version ro root=/dev/sda2

initrd /boot/initrd-[generic-]version.img

boot=/dev/sda

default=0 timeout=5 splashimage=(hd0,1)/boot/grub/splash.xpm.gz hiddenmenu title CentOS 6 (2.6.32-754.el6.x86_64) root (hd0,1) kernel /boot/vmlinuz-2.6.32-754.el6.x86_64 ro root=UUID=70bb0d96-a2e4-464b-a762-fcdbc349b62b rd_NO_LUKS KEYBOARDTYPE=pc KEYTABLE=uk LANG=en_US.UTF-8 rd_NO_MD SYSF ONT=latarcyrheb-sun16 crashkernel=auto rd_NO_LVM rd_NO_DM rhgb quiet initrd /boot/initramfs-2.6.32-754.el6.x86_64.img

grub>

REBOOT shell script to try again

root@de1:/usr/local/container/bhyve/bin # ./centos6.base Unhandled ps2 mouse command 0xe1 Unhandled ps2 mouse command 0x88

grub> linux /boot/vmlinuz-2.6.32-754.el6.x86_64 ro root=UUID=70bb0d96-a2e4-464b-a762-fcdbc349b62b rd_NO_LUKS KEYBOARDTYPE=pc KEYTABLE=uk LANG=en_US.UTF-8 rd_NO_MD SYSFONT =latarcyrheb-sun16 crashkernel=auto rd_NO_LVM rd_NO_DM rhgb quiet grub> initrd /boot/initramfs-2.6.32-754.el6.x86_64.img

grub> boot .... off we goto centos land

CentOS release 6.10 (Final) Kernel 2.6.32-754.el6.x86_64 on an x86_64

CentOS6.bhyve login:

`