Pages

Wednesday, January 21, 2009

Create .vmdk with QEmu

QEmu-Img, a tool that comes with QEmu package, can create new .vmdk virtual drive images. This should be enough to satisfy most of the functionality needed to work with virtual machines yet to keep all the software free (Open Source).
Together with VirtualBox, this makes a strong VM combination. VirtualBox supports all its functionality while using .vmdk drive images.

The command parameteres are listed below:
qemu-img version 0.9.1, Copyright (c) 2004-2008 Fabrice Bellard
usage: qemu-img command [command options]
QEMU disk image utility

Command syntax:
  create [-e] [-6] [-b base_image] [-f fmt] filename [size]
  commit [-f fmt] filename
  convert [-c] [-e] [-6] [-f fmt] [-O output_fmt] filename [filename2 [...]] out
put_filename
  info [-f fmt] filename

Command parameters:
  'filename' is a disk image filename
  '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
  'fmt' is the disk image format. It is guessed automatically in most cases
  'size' is the disk image size in kilobytes. Optional suffixes 'M' (megabyte)
    and 'G' (gigabyte) are supported
  'output_filename' is the destination disk image filename
  'output_fmt' is the destination format
  '-c' indicates that target image must be compressed (qcow format only)
  '-e' indicates that the target image must be encrypted (qcow format only)
  '-6' indicates that the target image must use compatibility level 6 (vmdk form
at only)

Supported format: parallels qcow2 vvfat vpc bochs dmg cloop vmdk qcow host_devic
e raw

No comments: