Bhyve not able to get CentOS to boot

Peter Grehan grehan at freebsd.org
Mon Dec 9 19:32:28 UTC 2013


Hi Matt,

> Ok the following is what I do get/
>
> grub> linux (hd0,msdos1)/vmlinuz-2.6.32-431.el6.x86_64 ro
> root=/dev/mapper/vg_server-lv_root rd_LVM_LV=vg_server/lv_swap rd_NO_L
> UKS LANG=en_US.UTF-8 rd_NO_MD  KEYTABLE=us SYSFONT=latarcyrheb-sun16
> rd_LVM_LV=vg_server/lv_root console=ttyS0 rd_NO_DM
> grub> initrd (hd0,msdos1)/initramfs-2.6.32-431.el6.x86_64.img
> grub> boot
> vps#

  That looks good. The "boot" command doesn't actually start the VM - it 
finalizes setting register state so that usr/sbin/bhyve can then run it. 
The bhyve.org script hides that from you.

> I am not sure what I am doing wrong exactly
>
> /usr/local/sbin/grub-bhyve -r hd0 -m vm/vm0/device.map -M 1024 vm0
>
> grub> ls
> (cd0) (hd0) (hd0,msdos2) (hd0,msdos1) (host) (lvm/vg_server-lv_swap)
> (lvm/vg_server-lv_home) (lvm/vg_server-lv_root)
> grub>

  Using "-r hd0,msdos1" will allow "ls /" to work, though the 
(hd0,msdos1) qualifier in the first example does the right thing.

later,

Peter.



More information about the freebsd-virtualization mailing list