⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 qemu-img.1

📁 qemu虚拟机代码
💻 1
字号:
.\" Automatically generated by Pod::Man v1.34, Pod::Parser v1.13.\".\" Standard preamble:.\" ========================================================================.de Sh \" Subsection heading.br.if t .Sp.ne 5.PP\fB\\$1\fR.PP...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.  | will give a.\" real vertical bar.  \*(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-|\(bv\*(Tr.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" '''br\}.\".\" If the F register is turned on, we'll generate index entries on stderr for.\" titles (.TH), headers (.SH), subsections (.Sh), items (.Ip), and index.\" entries marked with X<> in POD.  Of course, you'll have to process the.\" output yourself in some meaningful fashion..if \nF \{\.    de IX.    tm Index:\\$1\t\\n%\t"\\$2"...    nr % 0.    rr F.\}.\".\" For nroff, turn off justification.  Always turn off hyphenation; it makes.\" way too many mistakes in technical documents..hy 0.if n .na.\".\" 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 "QEMU-IMG 1".TH QEMU-IMG 1 "2006-05-03" " " " ".SH "NAME"qemu\-img \- QEMU disk image utility.SH "SYNOPSIS".IX Header "SYNOPSIS"usage: qemu-img command [command options].SH "OPTIONS".IX Header "OPTIONS"The following commands are supported:.IP "\fBcreate [\-e] [\-b\fR \fIbase_image\fR\fB] [\-f\fR \fIfmt\fR\fB]\fR \fIfilename\fR \fB[\fR\fIsize\fR\fB]\fR" 4.IX Item "create [-e] [-b base_image] [-f fmt] filename [size]".PD 0.IP "\fBcommit [\-f\fR \fIfmt\fR\fB]\fR \fIfilename\fR" 4.IX Item "commit [-f fmt] filename".IP "\fBconvert [\-c] [\-e] [\-f\fR \fIfmt\fR\fB]\fR \fIfilename\fR \fB[\-O\fR \fIoutput_fmt\fR\fB]\fR \fIoutput_filename\fR" 4.IX Item "convert [-c] [-e] [-f fmt] filename [-O output_fmt] output_filename".IP "\fBinfo [\-f\fR \fIfmt\fR\fB]\fR \fIfilename\fR" 4.IX Item "info [-f fmt] filename".PD.PPCommand parameters:.IP "\fIfilename\fR" 4.IX Item "filename".Vb 1\& is a disk image filename.Ve.IP "\fIbase_image\fR" 4.IX Item "base_image"is the read-only disk image which is used as base for a copy on    write image; the copy on write image only stores the modified data.IP "\fIfmt\fR" 4.IX Item "fmt"is the disk image format. It is guessed automatically in most cases. The following formats are supported:.RS 4.ie n .IP """raw""" 4.el .IP "\f(CWraw\fR" 4.IX Item "raw"Raw disk image format (default). This format has the advantage ofbeing simple and easily exportable to all other emulators. If your filesystem supports \fIholes\fR (for example in ext2 or ext3 on Linux),then only the written sectors will reserve space. Use \f(CW\*(C`qemu\-imginfo\*(C'\fR to know the real size used by the image or \f(CW\*(C`ls \-ls\*(C'\fR onUnix/Linux..ie n .IP """qcow""" 4.el .IP "\f(CWqcow\fR" 4.IX Item "qcow"\&\s-1QEMU\s0 image format, the most versatile format. Use it to have smallerimages (useful if your filesystem does not supports holes, for exampleon Windows), optional \s-1AES\s0 encryption and zlib based compression..ie n .IP """cow""" 4.el .IP "\f(CWcow\fR" 4.IX Item "cow"User Mode Linux Copy On Write image format. Used to be the only growableimage format in \s-1QEMU\s0. It is supported only for compatibility withprevious versions. It does not work on win32..ie n .IP """vmdk""" 4.el .IP "\f(CWvmdk\fR" 4.IX Item "vmdk"VMware 3 and 4 compatible image format..ie n .IP """cloop""" 4.el .IP "\f(CWcloop\fR" 4.IX Item "cloop"Linux Compressed Loop image, useful only to reuse directly compressedCD-ROM images present for example in the Knoppix CD\-ROMs..RE.RS 4.RE.IP "\fIsize\fR" 4.IX Item "size"is the disk image size in kilobytes. Optional suffixes \f(CW\*(C`M\*(C'\fR(megabyte) and \f(CW\*(C`G\*(C'\fR (gigabyte) are supported .IP "\fIoutput_filename\fR" 4.IX Item "output_filename"is the destination disk image filename .IP "\fIoutput_fmt\fR" 4.IX Item "output_fmt".Vb 1\& is the destination format.Ve.IP "\fI\-c\fR" 4.IX Item "-c"indicates that target image must be compressed (qcow format only).IP "\fI\-e\fR" 4.IX Item "-e"indicates that the target image must be encrypted (qcow format only).PPCommand description:.IP "\fBcreate [\-e] [\-b\fR \fIbase_image\fR\fB] [\-f\fR \fIfmt\fR\fB]\fR \fIfilename\fR \fB[\fR\fIsize\fR\fB]\fR" 4.IX Item "create [-e] [-b base_image] [-f fmt] filename [size]"Create the new disk image \fIfilename\fR of size \fIsize\fR and format\&\fIfmt\fR. .SpIf \fIbase_image\fR is specified, then the image will record only thedifferences from \fIbase_image\fR. No size needs to be specified inthis case. \fIbase_image\fR will never be modified unless you use the\&\f(CW\*(C`commit\*(C'\fR monitor command..IP "\fBcommit [\-f\fR \fIfmt\fR\fB]\fR \fIfilename\fR" 4.IX Item "commit [-f fmt] filename"Commit the changes recorded in \fIfilename\fR in its base image..IP "\fBconvert [\-c] [\-e] [\-f\fR \fIfmt\fR\fB]\fR \fIfilename\fR \fB[\-O\fR \fIoutput_fmt\fR\fB]\fR \fIoutput_filename\fR" 4.IX Item "convert [-c] [-e] [-f fmt] filename [-O output_fmt] output_filename"Convert the disk image \fIfilename\fR to disk image \fIoutput_filename\fRusing format \fIoutput_fmt\fR. It can be optionnaly encrypted(\f(CW\*(C`\-e\*(C'\fR option) or compressed (\f(CW\*(C`\-c\*(C'\fR option)..SpOnly the format \f(CW\*(C`qcow\*(C'\fR supports encryption or compression. Thecompression is read\-only. It means that if a compressed sector isrewritten, then it is rewritten as uncompressed data..SpEncryption uses the \s-1AES\s0 format which is very secure (128 bit keys). Usea long password (16 characters) to get maximum protection..SpImage conversion is also useful to get smaller image when using agrowable format such as \f(CW\*(C`qcow\*(C'\fR or \f(CW\*(C`cow\*(C'\fR: the empty sectorsare detected and suppressed from the destination image..IP "\fBinfo [\-f\fR \fIfmt\fR\fB]\fR \fIfilename\fR" 4.IX Item "info [-f fmt] filename"Give information about the disk image \fIfilename\fR. Use it inparticular to know the size reserved on disk which can be differentfrom the displayed size..SH "SEE ALSO".IX Header "SEE ALSO"The \s-1HTML\s0 documentation of \s-1QEMU\s0 for more precise information and Linuxuser mode emulator invocation..SH "AUTHOR".IX Header "AUTHOR"Fabrice Bellard

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -