.\" Automatically generated by Pod::Man 4.10 (Pod::Simple 3.35) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" Set up some character translations and predefined strings. \*(-- will .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left .\" double quote, and \*(R" will give a right double quote. \*(C+ will .\" give a nicer C++. Capital omega is used to do unbreakable dashes and .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, .\" nothing in troff, for use with C<>. .tr \(*W- .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' .ie n \{\ . ds -- \(*W- . ds PI pi . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch . ds L" "" . ds R" "" . ds C` "" . ds C' "" 'br\} .el\{\ . ds -- \|\(em\| . ds PI \(*p . ds L" `` . ds R" '' . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" .\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2). .\" Fear. Run. Save yourself. No user-serviceable parts. . \" fudge factors for nroff and troff .if n \{\ . ds #H 0 . ds #V .8m . ds #F .3m . ds #[ \f1 . ds #] \fP .\} .if t \{\ . ds #H ((1u-(\\\\n(.fu%2u))*.13m) . ds #V .6m . ds #F 0 . ds #[ \& . ds #] \& .\} . \" simple accents for nroff and troff .if n \{\ . ds ' \& . ds ` \& . ds ^ \& . ds , \& . ds ~ ~ . ds / .\} .if t \{\ . ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u" . ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u' . ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u' . ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u' . ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u' . ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u' .\} . \" troff and (daisy-wheel) nroff accents .ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V' .ds 8 \h'\*(#H'\(*b\h'-\*(#H' .ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#] .ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H' .ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u' .ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#] .ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#] .ds ae a\h'-(\w'a'u*4/10)'e .ds Ae A\h'-(\w'A'u*4/10)'E . \" corrections for vroff .if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u' .if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u' . \" for low resolution devices (crt and lpr) .if \n(.H>23 .if \n(.V>19 \ \{\ . ds : e . ds 8 ss . ds o a . ds d- d\h'-1'\(ga . ds D- D\h'-1'\(hy . ds th \o'bp' . ds Th \o'LP' . ds ae ae . ds Ae AE .\} .rm #[ #] #H #V #F C .\" ======================================================================== .\" .IX Title "VIRT-CONVERT 1" .TH VIRT-CONVERT 1 "2019-01-19" "2.0.0" "Virtual Machine Manager" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH "NAME" virt\-convert \- convert ovf/vmx to native libvirt guests .SH "SYNOPSIS" .IX Header "SYNOPSIS" \&\fBvirt-convert\fR \s-1INPUT\s0.vmx|INPUT.ovf|INPUT\-DIR|INPUT.zip [\s-1OPTIONS\s0] .SH "DESCRIPTION" .IX Header "DESCRIPTION" \&\fBvirt-convert\fR is a command line tool for converting \s-1VMX\s0 or \s-1OVF\s0 virtual machines to native libvirt \s-1XML.\s0 Disk format conversion can also be done at the same time. .PP The simplest invocation is simply: virt-convert \s-1INPUT. INPUT\s0 might be a .vmx or .ovf file, a directory containing a .vmx or .ovf file (and likely 1 or more disk images), or an appliance archive like .zip, .tar.gz, or .ova. virt-convert will try to do the right thing in each case. .PP By default, the virt-convert will convert all encountered disk images to 'raw' format, sending the output to a new directory location. So the original disk images are _not_ altered in place. .SH "OPTIONS" .IX Header "OPTIONS" .IP "\fB\-\-connect\fR \s-1URI\s0" 4 .IX Item "--connect URI" Connect to a non-default hypervisor. See \fBvirt\-install\fR\|(1) for details .SH "CONVERSION OPTIONS" .IX Header "CONVERSION OPTIONS" .IP "\fB\-i\fR INPUT-FORMAT" 4 .IX Item "-i INPUT-FORMAT" .PD 0 .IP "\fB\-\-input\-format\fR INPUT-FORMAT" 4 .IX Item "--input-format INPUT-FORMAT" .PD Input format. This should be auto-detected, but can be forced if necessary. Currently \f(CW\*(C`vmx\*(C'\fR and \f(CW\*(C`ovf\*(C'\fR are supported. .IP "\fB\-D\fR OUTPUT-FORMAT" 4 .IX Item "-D OUTPUT-FORMAT" .PD 0 .IP "\fB\-\-disk\-format\fR OUTPUT-FORMAT" 4 .IX Item "--disk-format OUTPUT-FORMAT" .PD Output disk format. The default is 'raw', so any encountered disk images will be converted to 'raw' format using \fBqemu\-img\fR\|(1). Pass \f(CW\*(C`none\*(C'\fR if no conversion should be performed: in this case the images will just be copied to the specified \-\-destination. .IP "\fB\-\-destination\fR \s-1DIRECTORY\s0" 4 .IX Item "--destination DIRECTORY" The directory to send converted/copied disk images. If not specified, the hypervisor default is used, typically /var/lib/libvirt/images. .SH "MISCELLANEOUS OPTIONS" .IX Header "MISCELLANEOUS OPTIONS" .IP "\fB\-\-noautoconsole\fR" 4 .IX Item "--noautoconsole" Don't automatically try to connect to the guest console. The default behaviour is to launch \fBvirt\-viewer\fR\|(1) to display the graphical console, or to run the \&\f(CW\*(C`virsh\*(C'\fR \f(CW\*(C`console\*(C'\fR command to display the text console. Use of this parameter will disable this behaviour. .IP "\fB\-\-print\-xml\fR" 4 .IX Item "--print-xml" Print the generated libvirt \s-1XML,\s0 but do not perform any disk conversions or install/start the guest. This option implies \-\-dry\-run. .IP "\fB\-\-dry\-run\fR" 4 .IX Item "--dry-run" Proceed through the conversion process, but don't convert disks or actually write any converted files. .IP "\fB\-h\fR" 4 .IX Item "-h" .PD 0 .IP "\fB\-\-help\fR" 4 .IX Item "--help" .PD Show the help message and exit .IP "\fB\-\-version\fR" 4 .IX Item "--version" Show program's version number and exit .IP "\fB\-q\fR" 4 .IX Item "-q" .PD 0 .IP "\fB\-\-quiet\fR" 4 .IX Item "--quiet" .PD Avoid verbose output. .IP "\fB\-d\fR" 4 .IX Item "-d" .PD 0 .IP "\fB\-\-debug\fR" 4 .IX Item "--debug" .PD Print debugging information .SH "EXAMPLES" .IX Header "EXAMPLES" Run a fedora18 \s-1OVA\s0 archive: .PP .Vb 1 \& # virt\-convert fedora18.ova .Ve .PP Run an extracted zip archive containing a centos6 .vmx and .vmdk file, converting the images to qcow2 format .PP .Vb 1 \& # virt\-convert centos6/ \-\-disk\-format qcow2 .Ve .PP Convert the specified .vmx file. Any references disk images must be in the same directory. Don't change the disk format. Move the disk images to /tmp .PP .Vb 1 \& # virt\-convert foo.vmx \-\-disk\-format none \-\-destination /tmp .Ve .SH "BUGS" .IX Header "BUGS" Please see https://virt\-manager.org/page/BugReporting .SH "COPYRIGHT" .IX Header "COPYRIGHT" Copyright (C) Red Hat, Inc, and various contributors. This is free software. You may redistribute copies of it under the terms of the \s-1GNU\s0 General Public License \f(CW\*(C`https://www.gnu.org/licenses/gpl.html\*(C'\fR. There is \s-1NO WARRANTY,\s0 to the extent permitted by law. .SH "SEE ALSO" .IX Header "SEE ALSO" \&\fBvirt\-install\fR\|(1), the project website \f(CW\*(C`https://virt\-manager.org\*(C'\fR