# $OpenBSD: vm.conf,v 1.6 2016/10/05 18:01:52 reyk Exp $ # # Macros # sets="/var/www/htdocs/pub/OpenBSD/snapshots/amd64/" # # Virtual machines # switch "uplink" { # This interface will default to bridge0, but switch(4) is supported #interface switch0 # Add additional members add em0 } switch "local" { add vether0 down } # OpenBSD snapshot install test vm "openbsd.vm" { memory 512M kernel $sets "bsd.rd" # First disk from 'vmctl create "/home/vm/OpenBSD.img" -s 4G' disk "/home/vm/OpenBSD.img" # Second disk from OpenBSD contains the install sets disk $sets "install60.fs" # Interface will show up as tap(4) on the host and as vio(4) in the VM interface { switch "uplink" } interface { switch "local" } } # Another VM that is disabled on startup vm "vm1.example.com" { disable memory 1G kernel "/bsd" disk "/home/vm/vm1-disk.img" # Use a specific tap(4) interface with a hardcoded MAC address interface tap3 { lladdr 00:11:22:aa:bb:cc down } }