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

📄 qemu-img.texi

📁 qemu虚拟机代码
💻 TEXI
字号:
@example@c man begin SYNOPSISusage: qemu-img command [command options]@c man end@end example@c man begin OPTIONSThe following commands are supported:@table @option@item create [-e] [-b @var{base_image}] [-f @var{fmt}] @var{filename} [@var{size}]@item commit [-f @var{fmt}] @var{filename}@item convert [-c] [-e] [-f @var{fmt}] @var{filename} [-O @var{output_fmt}] @var{output_filename}@item info [-f @var{fmt}] @var{filename}@end tableCommand parameters:@table @var@item filename is a disk image filename@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@item fmt is the disk image format. It is guessed automatically in most cases. The following formats are supported:@table @code@item rawRaw disk image format (default). This format has the advantage ofbeing simple and easily exportable to all other emulators. If your filesystem supports @emph{holes} (for example in ext2 or ext3 on Linux),then only the written sectors will reserve space. Use @code{qemu-imginfo} to know the real size used by the image or @code{ls -ls} onUnix/Linux.@item qcowQEMU image format, the most versatile format. Use it to have smallerimages (useful if your filesystem does not supports holes, for exampleon Windows), optional AES encryption and zlib based compression.@item cowUser Mode Linux Copy On Write image format. Used to be the only growableimage format in QEMU. It is supported only for compatibility withprevious versions. It does not work on win32.@item vmdkVMware 3 and 4 compatible image format.@item cloopLinux Compressed Loop image, useful only to reuse directly compressedCD-ROM images present for example in the Knoppix CD-ROMs.@end table@item size is the disk image size in kilobytes. Optional suffixes @code{M}(megabyte) and @code{G} (gigabyte) are supported @item output_filenameis the destination disk image filename @item output_fmt is the destination format@item -cindicates that target image must be compressed (qcow format only)@item -e indicates that the target image must be encrypted (qcow format only)@end tableCommand description:@table @option@item create [-e] [-b @var{base_image}] [-f @var{fmt}] @var{filename} [@var{size}]Create the new disk image @var{filename} of size @var{size} and format@var{fmt}. If @var{base_image} is specified, then the image will record only thedifferences from @var{base_image}. No size needs to be specified inthis case. @var{base_image} will never be modified unless you use the@code{commit} monitor command.@item commit [-f @var{fmt}] @var{filename}Commit the changes recorded in @var{filename} in its base image.@item convert [-c] [-e] [-f @var{fmt}] @var{filename} [-O @var{output_fmt}] @var{output_filename}Convert the disk image @var{filename} to disk image @var{output_filename}using format @var{output_fmt}. It can be optionnaly encrypted(@code{-e} option) or compressed (@code{-c} option).Only the format @code{qcow} supports encryption or compression. Thecompression is read-only. It means that if a compressed sector isrewritten, then it is rewritten as uncompressed data.Encryption uses the AES format which is very secure (128 bit keys). Usea long password (16 characters) to get maximum protection.Image conversion is also useful to get smaller image when using agrowable format such as @code{qcow} or @code{cow}: the empty sectorsare detected and suppressed from the destination image.@item info [-f @var{fmt}] @var{filename}Give information about the disk image @var{filename}. Use it inparticular to know the size reserved on disk which can be differentfrom the displayed size.@end table@c man end@ignore@setfilename qemu-img@settitle QEMU disk image utility@c man begin SEEALSOThe HTML documentation of QEMU for more precise information and Linuxuser mode emulator invocation.@c man end@c man begin AUTHORFabrice Bellard@c man end@end ignore

⌨️ 快捷键说明

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