vm.conf revision 1.4
1# $OpenBSD: vm.conf,v 1.4 2016/01/06 09:59:30 reyk Exp $
2
3#
4# Macros
5#
6sets="/var/www/htdocs/pub/OpenBSD/snapshots/amd64/"
7
8#
9# Virtual machines
10#
11
12# OpenBSD snapshot install test
13vm "openbsd.vm" {
14	memory 512M
15	kernel $sets "bsd.rd"
16
17	# First disk from 'vmctl create "/home/vm/OpenBSD.img" -s 4G'
18	disk "/home/vm/OpenBSD.img"
19
20	# Second disk from OpenBSD contains the install sets
21	disk $sets "install59.fs"
22
23	# Interface will show up as tap(4) on the host and as vio(4) in the VM
24	interfaces 1
25}
26
27# Another VM that is disabled on startup
28vm "vm1.example.com" {
29	disable
30	memory 1G
31	interfaces 2
32	kernel "/bsd"
33	disk "/home/vm/vm1-disk.img"
34}
35