Hi guys,
I am trying to create a Debian virtual machine, I am following the handbook but I continue to fail. As per FreeBSD design, the process is intentionally counter intuitive and very convoluted, and this does not help...
1) Preps:
I installed
2) Steps I followed to install the OS on the vm:
3. Test and run the VM:
The entries returned errors.
Thus I thought perhaps it must be boot with UEFI, and here I found some inconsistencies that confused even more.
Is this command (and the others in handbook) to run the already created VM or to install a new one?
Why is it referring to
Why is it loading
It is not clear.
Thanks for you help...
I am trying to create a Debian virtual machine, I am following the handbook but I continue to fail. As per FreeBSD design, the process is intentionally counter intuitive and very convoluted, and this does not help...
1) Preps:
I installed
grub2-bhyve and bhyve-firmware, downloaded "Debian 13" (renamed as deb13.iso), create device.map
Code:
cat device.map
(hd0) ./deb.img
(cd0) ./deb13.iso
2) Steps I followed to install the OS on the vm:
Code:
1) Create working directory
mkdir vm
cd vm
2) Load kernel module
kldstat | grep vmm
doas kldload vmm
kldstat | grep vmm
41 1 0xffffffff84e00000 340438 vmm.ko
3) Create bridge
doas ifconfig tap0 create
doas sysctl net.link.tap.up_on_open=1
net.link.tap.up_on_open: 0 -> 1
doas ifconfig bridge0 create
doas ifconfig bridge0 addm ue0 addm tap0
doas ifconfig bridge0 up
4) Create Disk (and device.map)
truncate -s 10G deb.img
5) Load linux kernel
doas grub-bhyve -m device.map -r cd0 -M 1024M linuxguest
6) Launch installer
doas bhyve -A -H -P -s 0:0,hostbridge -s 1:0,lpc -s 2:0,virtio-net,tap0 -s 3:0,virtio-blk,./deb.img -s 4:0,ahci-cd,./deb13.iso -l com1,stdio -c 4 -m 1024M linuxguest
7) Finish installation and destroy vm
doas bhyvectl --destroy --vm=linuxguest
3. Test and run the VM:
Code:
## Linux kernel not found
grub> ls
(hd0) (hd0,msdos5) (hd0,msdos1) (cd0) (cd0,apple2) (cd0,apple1) (cd0,msdos2) (host)
grub> ls (hd0,msdos5)/
error: unknown filesystem.
grub> ls (hd0,msdos1)/
error: unknown filesystem.
The entries returned errors.
Thus I thought perhaps it must be boot with UEFI, and here I found some inconsistencies that confused even more.
Code:
# bhyve -AHP -s 0:0,hostbridge -s 1:0,lpc \
-s 2:0,virtio-net,tap1 -s 3:0,virtio-blk,./disk.img \
-s 4:0,ahci-cd,./install.iso -c 4 -m 1024M \
-l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd \
guest
Is this command (and the others in handbook) to run the already created VM or to install a new one?
Why is it referring to
tap1 once the only bridge has been created through the previous steps is tap0 ?Why is it loading
install.iso, are the instructions in that section to boot the VM or the create a new one? It is not clear.
Thanks for you help...