CVSROOT: /cvs
Module name: src
Changes by: [email protected] 2018/10/19 04:12:39
Modified files:
usr.sbin/vmd : config.c vioqcow2.c virtio.c virtio.h vmd.h
usr.sbin/vmctl : Makefile main.c vmctl.8 vmctl.c vmctl.h
Log message:
Add support to create and convert disk images from existing images
The -i option to vmctl create (eg. vmctl create output.qcow2 -i input.img)
lets you create a new image from an input file and convert it if it is a
different format. This allows to convert qcow2 images from raw images,
raw from qcow2, or even qcow2 from qcow2 and raw from raw to re-optimize
the disk.
This re-uses Ori's vioqcow2.c from vmd by reaching into it and
compiling it in. The API has been adjust to be used from both vmctl
and vmd accordingly.
OK mlarkin@