I am very close to getting Centos7 (version 1503) running on FreeBSD 11.1 with bhyve, but I am stuck. I have used the following instructions for installation. Please let me know if you can advice how to address the /dev/mapper/centos-root issue or an alternative way to get Centos7 running in bhyve.
01.
02.
03.
04.
05.
06.
07.
08.
09.
10.
11.
01.
sudo pkg install vm-bhyve grub2-bhyve
02.
sudo vi /etc/rc.conf
Code:
vm_enable="YES"
vm_dir="/vm"
sudo vm init
04.
sudo cp /usr/local/share/examples/vm-bhyve/* /vm/.templates/
05.
sudo vm switch create public
06.
sudo vm switch add public alc0
07.
vm iso CentOS-7-x86_64-Minimal-1503-01.iso
08.
sudo vm create centos7
09.
sudo vm -f install centos7 CentOS-7-x86_64-Minimal-1503-01.iso
10.
sudo vi /vm/centos/centos7.conf # updated kernel version
Code:
/vmlinuz-3.10.0-229.el7.x86_64
/initramfs-3.10.0-229.el7.x86_64.img
sudo vm -f start centos7
Code:
[ OK ] Reached target Basic System.
[ 0.812167] vda: vda1 vda2 vda3
[ 1.260077] input: PS/2 Generic Mouse as /devices/platform/i8042/serio1/input/input2
[ 1.472683] tsc: Refined TSC clocksource calibration: 3196.809 MHz
[ 1.473214] Switching to clocksource tsc
Code:
Aug 20 15:36:01 centos7 kernel: Switching to clocksource tsc
Aug 20 15:39:08 centos7 dracut-initqueue[209]: Warning: Could not boot.
Aug 20 15:39:08 centos7 dracut-initqueue[209]: Warning: /dev/mapper/centos-root
Aug 20 15:39:08 centos7 systemd[1]: Starting Dracut Emergency Shell...