OpenBSD is a UNIX like system based on Berkeley Software Distribution (BSD). It was forked form NetBSD and created by Theo de Raadt in 1995. OpenBSD is famous for quality code and documentation without compromising position on software licensing. OpenBSD is also well know for focus on security features such as Memory protection, cryptography, randomization and much more in default base installation.
You need to first download OpenBSD iso image by visiting this page. You can use the wget command to grab the same as follows. The following command will download OpenBSD v4.7 64 bit (AMD64) iso file:
Install OpeBSD 4.7 AMD64
Type the following command to install OpenBSD v4.7 64 bit with 512 MB RAM, 1 vcore cpu, 5GB disk space, br0 and br1 network interface:
virt-install \ -n openbsd1 \ -r 512 \ --vcpus=1 \ --os-variant=openbsd4 \ --accelerate \ -v -c /tmp/install47.iso \ -w bridge:br0 -w bridge:br1 \ --vnc \ --disk path=/raid10/kvm/openbsd1.img,size=5
Starting install... Creating domain... | 0 B 00:01 Domain installation still in progress. You can reconnect to the console to complete the installation process.
Use your local vnc viewer or type the following at server itself to view installer screen:
OR run it over the ssh session, enter:
# ssh -X -C firstname.lastname@example.org
# virt-viewer openbsd1
Now, just follow on screen installation instructions and install OpenBSD as per your requirements.
After Reboot My OpenBSD Guest Hangs At The Boot Screen...
- See Linux KVM: OpenBSD Guest Hangs At Starting tty Flags for more information.
Optional: Configure Serial Console Login and Redirection
This FAQ entry is 12 of 14 in the "CentOS / Redhat (RHEL) KVM Virtulization" series. Keep reading the rest of the series: