]> git.ipfire.org Git - thirdparty/libvirt.git/commit
parallels: create container from existing image
authorDmitry Guryanov <dguryanov@parallels.com>
Tue, 13 Jan 2015 11:27:40 +0000 (14:27 +0300)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 16 Jan 2015 13:07:47 +0000 (14:07 +0100)
commit2bc460d3c1422ff931d3eea8defbef224c8b6483
tree2924b24315c18771a218bc83c8798949f6b64437
parentaba95c287c58213335d43c4d2fea7ac42281ecd0
parallels: create container from existing image

It's possible to create a container with existing
disk image as root filesystem. You need to remove
existing disks from PCS VM config and then add a new
one, pointing to your image. And then call PrlVm_RegEx
with PRNVM_PRESERVE_DISK flag.

With this patch you can create such container with
something like this for new domain XML config:

    <filesystem type='file' accessmode='passthrough'>
      <driver type='ploop' format='ploop'/>
      <source file='/path-to-image'/>
      <target dir='/'/>
    </filesystem>

Signed-off-by: Dmitry Guryanov <dguryanov@parallels.com>
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
src/parallels/parallels_sdk.c