diff options
author | ccardenas <ccardenas@cvs.openbsd.org> | 2018-09-09 04:09:33 +0000 |
---|---|---|
committer | ccardenas <ccardenas@cvs.openbsd.org> | 2018-09-09 04:09:33 +0000 |
commit | 9f2c0e3fb65afa1963763a3a22dd2774e36dc916 (patch) | |
tree | e66ae6aff2b0227618e488358a821fb7e5c88c0d /usr.sbin/vmctl/vmctl.8 | |
parent | 7d42cfcc16b5d221c1973708cc2354bac29244e5 (diff) |
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/vmctl/vmctl.8')
-rw-r--r-- | usr.sbin/vmctl/vmctl.8 | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/usr.sbin/vmctl/vmctl.8 b/usr.sbin/vmctl/vmctl.8 index 81ecbeb6c1d..0c0ed779e2b 100644 --- a/usr.sbin/vmctl/vmctl.8 +++ b/usr.sbin/vmctl/vmctl.8 @@ -1,4 +1,4 @@ -.\" $OpenBSD: vmctl.8,v 1.44 2018/07/29 14:11:05 anton Exp $ +.\" $OpenBSD: vmctl.8,v 1.45 2018/09/09 04:09:32 ccardenas Exp $ .\" .\" Copyright (c) 2015 Mike Larkin <mlarkin@openbsd.org> .\" @@ -14,7 +14,7 @@ .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" -.Dd $Mdocdate: July 29 2018 $ +.Dd $Mdocdate: September 9 2018 $ .Dt VMCTL 8 .Os .Sh NAME @@ -55,7 +55,15 @@ Creates a VM disk image file with the specified .Ar path and .Ar size , -rounded to megabytes. +rounded to megabytes. The disk +.Ar format +may be specified as either +.Ar raw +or +.Ar qcow2 , +defaulting to +.Ar raw +if left unspecified. .It Cm load Ar filename Load additional configuration from the specified file. .It Cm log brief @@ -107,6 +115,14 @@ If not specified, the default is to boot using the BIOS image in Automatically connect to the VM console. .It Fl d Ar path Disk image file (may be specified multiple times to add multiple disk images). +The disk +.Ar path +may be prefixed with a format prefix ( +.Pa raw: +or +.Pa qcow2: +) in order to specify the disk format. If left unspecified, the default format is +.Pa raw . .It Fl i Ar count Number of network interfaces to add to the VM. .It Fl L |