Source code pulled from OpenBSD for OpenNTPD. The place to contribute to this code is via the OpenBSD CVS tree.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

50 lines
1005 B

# $OpenBSD: vm.conf,v 1.10 2020/05/17 17:04:29 deraadt Exp $
#
# Macros
#
sets="/var/www/htdocs/pub/OpenBSD/snapshots/amd64/"
#
# Virtual machines
#
switch "uplink" {
# This switch will use bridge0, defined by /etc/hostname.bridge0, as
# the underlying interface. switch(4) is also supported
#interface switch0
interface bridge0
}
switch "local" {
interface bridge1
down
}
# OpenBSD snapshot install test
vm "openbsd.vm" {
boot $sets "bsd.rd"
# First disk from 'vmctl create -s 4G "/home/vm/OpenBSD.img"'
disk "/home/vm/OpenBSD.img"
# Second disk from OpenBSD contains the install sets
disk $sets "install60.img"
# 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
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
}
}