[libvirt] [PATCH 5/5] parallels: create container from existing image

2014-12-26 Thread Dmitry Guryanov
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 a container with the followi

[libvirt] [PATCH 2/5] parallels: dump info about container filesystems

2014-12-26 Thread Dmitry Guryanov
Obtain information about container's filesystems and store it in virDomainDef structure. Signed-off-by: Dmitry Guryanov --- src/parallels/parallels_sdk.c | 63 --- 1 file changed, 60 insertions(+), 3 deletions(-) diff --git a/src/parallels/parallels_sdk.c

[libvirt] [PATCH 3/5] parallels: commit with PVCF_DETACH_HDD_BUNDLE flag

2014-12-26 Thread Dmitry Guryanov
PCS removes disk image from filesystem, if you remove it from config. There is a special flag PVCF_DETACH_HDD_BUNDLE which allow to remove disk only from VM/CT config. If you call virDomainDefine and remove some disk from config it should be preserved, so call PrlVm_CommitEx always with flag PVCF_

[libvirt] [PATCH 4/5] parallels: allow to add filesystems to container

2014-12-26 Thread Dmitry Guryanov
Handle information about filesystems in domain config and add corresponding devices to container via parallels sdk. Signed-off-by: Dmitry Guryanov --- src/parallels/parallels_sdk.c | 109 +- 1 file changed, 107 insertions(+), 2 deletions(-) diff --git a/s

[libvirt] [PATCH 1/5] add ploop fs driver type

2014-12-26 Thread Dmitry Guryanov
Ploop is a pseudo device which makes possible to access to an image in a file via block device, like loop devices, but with additional features: snapshots, write tracker and without double-caching. It used in PCS for containers and in OpenVZ. You can manage ploop devices and images with ploop util

[libvirt] [PATCH 0/5] parallels: manage container's filesystems

2014-12-26 Thread Dmitry Guryanov
This patch series adds ability to manage container's filesystems: you can add or remove fs from existing container or create new one, based on existing disk image. Dmitry Guryanov (5): add ploop fs driver type parallels: dump info about container filesystems parallels: commit with PVCF_DETAC

[libvirt] [PATCH] Firewall : let libvirtd proceed after verifying locking args

2014-12-26 Thread Prerna Saxena
I recently encountered a situation where an unclean ebtables shutdown caused /var/lib/ebtables/lock to be left behind. When libvirtd was started on such a system, it caused libvirtd to "hang". Reason: While probing to check if locking was supported, libvirt runs this command synchronously : # /u