It is definitely a bug - feel free to file it at https://bugs.openvz.org

Workaround - please create VM without '-no-hdd' and replace the resulted HDD 
image by the coreos one.

Thank you,
Dmitry.

From: <users-boun...@openvz.org<mailto:users-boun...@openvz.org>> on behalf of 
Lee Briggs <l...@brig.gs<mailto:l...@brig.gs>>
Reply-To: OpenVZ users <users@openvz.org<mailto:users@openvz.org>>
Date: Wednesday 23 December 2015 23:06
To: "users@openvz.org<mailto:users@openvz.org>" 
<users@openvz.org<mailto:users@openvz.org>>
Subject: [Users] prlctl support for qcow2/img images?

I'm trying to create a VM with a qcow2 or img file as the HDD. I tried the 
following

prlctl create coreos -o linux --no-hdd
Creating the virtual machine...
Generate the VM configuration for centos.
Remove the hdd0 device.
prlctl set coreos --device-add hdd --image coreos1.qcow2
The folder /root/coreos1.qcow2 does not exist. Specify another folder and try 
again.
Creating hdd0 (+) scsi:0 image='/root/coreos1.qcow2' type='expanded' 65536Mb 
subtype=virtio-scsi

PrlVmDev_CreateImage: The hard disk image file cannot be created. The virtual 
hard disk image file named /root/coreos1.qcow2 already exists.
Failed to configure the virtual machine

Is there some trick to this that needs documenting?
_______________________________________________
Users mailing list
Users@openvz.org
https://lists.openvz.org/mailman/listinfo/users

Reply via email to