KVM virt-install: Install OpenBSD As Guest Operating System
Installing OpenBSD as a guest operating system on a KVM host can be done using the virt-install command line tool. Here's a basic guide to help you get started:
- Download the latest OpenBSD ISO image from the OpenBSD website.
- Create a virtual machine configuration file using the
virt-installcommand. The following example creates a virtual machine with 512 MB of memory and a 20 GB disk:
$ virt-install --name OpenBSD --memory 512 --disk size=20 --location /path/to/openbsd.iso --os-type bsd --os-variant openbsd6.8 --network network=default --graphics vnc- Start the virtual machine using the following command:
$ virsh start OpenBSD- Connect to the virtual machine using a VNC viewer. The VNC port number can be obtained using the following command:
$ virsh vncdisplay OpenBSD- Install OpenBSD as you would on a physical machine, following the prompts to partition the disk, select the installation sets, and configure the network.
- After the installation is complete, you can log in to the OpenBSD virtual machine and configure it as needed.
