Vm
Virtualization
Prerequisites
Processor compatibility can be checked with the following command:
$ dmesg | egrep '(VMX/EPT|SVM/RVI)'
vmm0 at mainbus0: VMX/EPT
vmm0 at mainbus0: VMX/EPT
Before going further, enable and start the vmd(8) service.
$ doas rcctl enable vmd
$ doas rcctl start vmd
Starting a VM
$ doas vmctl create -s 50G OpenBSD.img
vmctl: raw imagefile created
$ doas vmctl start -m 1G -L -i 1 -r install78.iso -d OpenBSD.img OpenBSD
vmctl: started vm 1 successfully, tty /dev/ttyp3
$ vmctl show
ID PID VCPUS MAXMEM CURMEM TTY OWNER STATE NAME
1 17157 1 1.0G 179M ttyp3 root running OpenBSD
$ doas vmctl console OpenBSD
Connected to /dev/ttyp3 (speed 115200)
Press Enter to begin the installation.