[Libguestfs] [PATCH] New tool: virt-format

Richard W.M. Jones rjones at redhat.com
Tue Jan 17 18:11:30 UTC 2012


On Tue, Jan 17, 2012 at 07:58:15PM +0200, Török Edwin wrote:
> - does it autodetect when disk is too large for MBR and GPT would be
>    needed?

No, but you're right that it should do.  I'll make this change.

> - does it align partitions to SSD erase block size? (LVM is
>    particularly tricky to get right manually)

It aligns to 64K at the moment, for partitions.  For LVM we just use
the defaults, whatever they are.  I don't know if it is possible to
pass the SSD erase block size up through the virt stack.

CC'd to Paolo Bonzini: Will virtio-scsi make this easier for us in
future?

>  - can I specify a backing-file for qemu disks? (qcow, and qed I think)

Yes, in the sense that it just uses the qcow2 disk and doesn't attempt
to create one, so whatever backing-file etc settings are already on
the qcow2 disk are not modified in any way.

>  - can --wipe use TRIM on SSDs instead of writing zeroes?

No.  This is a missing qemu feature which I've asked about a few
times, but until qemu and the rest of the virt stack implements it, we
won't have it in libguestfs (and conversely when it is implemented,
we'll most likely get it for free).

Paolo Bonzini: ^^ same question about virtio-scsi ^^

>  - can I setup LVM striping and mirror with it?

No.  In general these are not exposed through libguestfs, although
they should be, and could be easily enough if someone wrote the patch.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
New in Fedora 11: Fedora Windows cross-compiler. Compile Windows
programs, test, and build Windows installers. Over 70 libraries supprt'd
http://fedoraproject.org/wiki/MinGW http://www.annexia.org/fedora_mingw




More information about the Libguestfs mailing list