virt-format(1) | Virtualization Support | virt-format(1) |
virt-format - ディスクの消去および空のディスクの作成
virt-format [--options] -a disk.img [-a disk.img ...]
Virt-format takes an existing disk file (or it can be a host partition, LV etc), erases all data on it, and formats it as a blank disk. It can optionally create partition tables, empty filesystems, logical volumes and more.
To create a disk containing data, you may be better to use virt-make-fs(1). If you are creating a blank disk to use in guestfish(1), you should instead use the guestfish -N option.
通常の使用方法はこのようになります:
virt-format -a disk.qcow
または、このようになります:
virt-format -a /dev/VG/LV
disk.qcow or /dev/VG/LV must exist already. Any data on these disks will be erased by these commands. These commands will create a single empty partition covering the whole disk, with no filesystem inside it.
Additional parameters can be used to control the creation of partitions, filesystems, etc. The most commonly used options are:
For more information about these and other options, see "OPTIONS" below.
The format of the disk is normally auto-detected, but you can also force it by using the --format option (q.v.). In situations where you do not trust the existing content of the disk, then it is advisable to use this option to avoid possible exploits.
ディスクイメージの形式は自動検知されます。 これを上書きして強制的に特定の形式を使用する場合、 --format=.. オプションを使用します。
ディスクにある既存のデータはすべて削除されます。
例:
virt-format --format=raw -a disk.img
forces raw format (no auto-detection) for disk.img.
virt-format --format=raw -a disk.img --format -a another.img
forces raw format (no auto-detection) for disk.img and reverts to auto-detection for another.img.
仮想マシンのディスクイメージが信頼できない raw 形式である場合、 ディスク形式を指定するためにこのオプションを使用すべきです。 これにより、悪意のある仮想マシンにより起こり得る セキュリティ問題を回避できます (CVE-2010-3851)。
これがデフォルトです。
If you use this option, virt-format writes zeroes over the whole disk so that previous data is not recoverable.
このプログラムは、成功すると 0、失敗すると 1 を返します。
guestfs(3), guestfish(1), virt-filesystems(1), virt-make-fs(1), virt-rescue(1), virt-resize(1), http://libguestfs.org/.
Richard W.M. Jones http://people.redhat.com/~rjones/
Copyright (C) 2012 Red Hat Inc.
To get a list of bugs against libguestfs, use this link: https://bugzilla.redhat.com/buglist.cgi?component=libguestfs&product=Virtualization+Tools
To report a new bug against libguestfs, use this link: https://bugzilla.redhat.com/enter_bug.cgi?component=libguestfs&product=Virtualization+Tools
When reporting a bug, please supply:
2024-01-04 | guestfs-tools-1.52.0 |