diff options
author | 2018-09-09 04:09:32 +0000 | |
---|---|---|
committer | 2018-09-09 04:09:32 +0000 | |
commit | f224f92ab31c90476a30c119e655f312fe004b8a (patch) | |
tree | 863895041c5f323519b12a1126582b9aac7f194f /usr.sbin/vmd/Makefile | |
parent | Bump NMBCLUSTERS to a more reasonable 256MB instead of the tiny 4MB. (diff) | |
download | wireguard-openbsd-f224f92ab31c90476a30c119e655f312fe004b8a.tar.xz wireguard-openbsd-f224f92ab31c90476a30c119e655f312fe004b8a.zip |
Add initial qcow2 image support.
Users are able to declare disk images as 'raw' or 'qcow2' using either
vmctl and vm.conf. The default disk image format is 'raw' if not specified.
Examples of using disk format:
vmctl start bsd -Lc -r cd64.iso -d qcow2:current.qc2
or
vmctl start bsd -Lc -r cd64.iso -d raw:current.raw
is equivalent to
vmctl start bsd -Lc -r cd64.iso -d current.raw
in vm.conf
vm "current" {
disable
memory 2G
disk "/home/user/vmm/current.qc2" format "qcow2"
interface { switch "external" }
}
or
vm "current" {
disable
memory 2G
disk "/home/user/vmm/current.raw" format "raw"
interface { switch "external" }
}
is equivlanet to
vm "current" {
disable
memory 2G
disk "/home/user/vmm/current.raw"
interface { switch "external" }
}
Tested by many.
Big Thanks to Ori Bernstein.
Diffstat (limited to 'usr.sbin/vmd/Makefile')
-rw-r--r-- | usr.sbin/vmd/Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/vmd/Makefile b/usr.sbin/vmd/Makefile index 60616d39167..33e10f55ea5 100644 --- a/usr.sbin/vmd/Makefile +++ b/usr.sbin/vmd/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.19 2018/08/25 04:16:09 ccardenas Exp $ +# $OpenBSD: Makefile,v 1.20 2018/09/09 04:09:32 ccardenas Exp $ .if ${MACHINE} == "amd64" || ${MACHINE} == "i386" @@ -6,7 +6,7 @@ PROG= vmd SRCS= vmd.c control.c log.c priv.c proc.c config.c vmm.c SRCS+= vm.c loadfile_elf.c pci.c virtio.c i8259.c mc146818.c SRCS+= ns8250.c i8253.c vmboot.c ufs.c disklabel.c dhcp.c packet.c -SRCS+= parse.y atomicio.c vioscsi.c vioraw.c +SRCS+= parse.y atomicio.c vioscsi.c vioraw.c vioqcow2.c CFLAGS+= -Wall -I${.CURDIR} CFLAGS+= -Wstrict-prototypes -Wmissing-prototypes |