Alexandre Derumier
00b095caba
vm_clone : add running vm drive mirror
...
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2013-05-03 08:37:18 +02:00
Alexandre Derumier
cfad42afd4
add qemu_drive_mirror
...
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2013-05-03 08:37:03 +02:00
Dietmar Maurer
90995a781b
bump version to 3.0-6
2013-05-03 07:55:19 +02:00
Dietmar Maurer
f9bfceefa6
restore: allow to overwrite existing VMs if user has VM.Backup permissions
...
The requirement to have VM.Allocate it non-obvious and confusing
if the VM already exists. If the user can backup, he should also be able
to restore that backup.
2013-05-03 07:47:08 +02:00
Dietmar Maurer
9418baad81
remane copy to clone
2013-05-02 11:42:22 +02:00
Dietmar Maurer
dba198b05e
check has_feature copy for full clone
2013-05-02 07:17:15 +02:00
Dietmar Maurer
829967a93b
copy_vm: re-structure code to allow more checks before fork
2013-05-02 07:10:46 +02:00
Alexandre Derumier
c6d0c8a702
fix : signal interrupt don't delete volume on full copy
...
Currently we push newvolid to newvollist after qemu-img convert,
so if signal interrupt occur during qemu-img convert, the newvollist is empty and we can't free the volume
Instead, We need to push newvolid to newvollist just after volume creation
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2013-05-02 06:49:12 +02:00
Alexandre Derumier
751cc556dc
fix "Use of uninitialized value $target"
...
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2013-05-02 06:40:01 +02:00
Dietmar Maurer
75466c4fa6
white-space cleanups
2013-04-30 11:46:38 +02:00
Dietmar Maurer
55173c6bd4
copy_vm: new option to move final VM to other node (option target)
...
This only works if the VM is on shared storage.
2013-04-30 11:44:39 +02:00
Alexandre Derumier
42a19c87bc
vm_copy : add optional format parameter
...
can be qcow2,raw,vmdk
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2013-04-30 10:46:44 +02:00
Dietmar Maurer
a60ab1a6a2
copy_vm: add name and description option
2013-04-30 09:54:34 +02:00
Dietmar Maurer
9076d880a8
copy_vm: allow to copy from snapshot
2013-04-30 09:31:23 +02:00
Dietmar Maurer
4e4f83fea0
copy_vm: use exclusive lock for running VM
...
Because we can only run one block job to copy data.
2013-04-30 07:40:43 +02:00
Alexandre Derumier
81f043ebc0
copy_vm : add optional storage parameter
...
Optionnal target storage for full copy
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2013-04-30 07:16:54 +02:00
Alexandre Derumier
15b1fc9395
don't send qmp balloon commands if vm is started with a state file
...
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2013-04-30 07:01:58 +02:00
Alexandre Derumier
bdf3f36209
parse_drive : return correct format
...
Currently format is always empty, we need to parse file extension
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2013-04-30 06:55:33 +02:00
Alexandre Derumier
3732918544
vm_copy : fix typo in description
...
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2013-04-30 06:55:18 +02:00
Dietmar Maurer
b83e0181f1
implement copy_vm
...
This is based on patches from Alexandre Derumier <aderumier@odiso.com>.
It just implements copy/clone for stopped VMs and Templates. Copying
running VMs or copy from snapshots is not implemented.
2013-04-29 10:53:03 +02:00
Alexandre Derumier
5133de429e
add qemu_img_convert
...
also work with snapshot as source for qcow2,rbd,sheepdog.
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2013-04-29 09:30:58 +02:00
Dietmar Maurer
6116f72902
implement shared file locks
...
and add a first prototype for copy_vm
2013-04-29 09:30:15 +02:00
Dietmar Maurer
6fa741fcc3
bump version to 3.0-4
2013-04-24 08:00:13 +02:00
Dietmar Maurer
218cab9a3a
use correct package prefix
2013-04-22 10:57:24 +02:00
Dietmar Maurer
b91c2aae28
fix assertion
2013-04-22 09:43:54 +02:00
Dietmar Maurer
35c5fdefce
move assertion so that we have all checks at the same place.
2013-04-22 07:10:58 +02:00
Dietmar Maurer
75e7e997e7
set template flag earlier
2013-04-22 07:08:51 +02:00
Dietmar Maurer
0402a80b77
do not allow template creation if there are snapshots.
2013-04-22 07:05:54 +02:00
Dietmar Maurer
bef4463b61
fix wrong comment
2013-04-22 07:02:10 +02:00
Alexandre Derumier
bbd560974a
template_create : add template:1 option.
...
Also allow template create of non base-xxx renamable storage
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2013-04-22 06:59:18 +02:00
Stefan Priebe
b02691d817
use vm create permissions for templates
...
Signed-off-by: Stefan Priebe <s.priebe@profihost.ag>
2013-04-19 11:38:57 +02:00
Dietmar Maurer
03da3f0d46
fix bug 377: make qm rescan work properly
2013-04-19 10:45:46 +02:00
Alexandre Derumier
96d695c08a
is_template : return 1 if template option == 1
...
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2013-04-19 06:56:30 +02:00
Alexandre Derumier
68eda3abc4
add template config option
...
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2013-04-19 06:56:03 +02:00
Dietmar Maurer
b006e70b68
avoid endless loop in QMPClient
2013-04-18 10:34:44 +02:00
Dietmar Maurer
f4fde4d376
do not delete unmatched content from $$input
2013-04-18 08:26:23 +02:00
Dietmar Maurer
194d171e6c
bump version to 3.0-3
2013-04-18 06:22:19 +02:00
Dietmar Maurer
013d52755f
allow sparse restore for sheepdog and rbd
2013-04-18 06:14:50 +02:00
Dietmar Maurer
e061bcce22
bump version to 3.0-2
2013-03-22 06:25:26 +01:00
Dietmar Maurer
92f0fedcce
parse_net: fix warning about uninitialized value
2013-03-22 06:23:22 +01:00
Dietmar Maurer
405b913a01
add better checks to test if backup was successful
2013-03-15 06:32:14 +01:00
Alexandre Derumier
1f219ef546
virtio disk hot-unplug: drive_del after device_del
...
we need to remove drive after device has correctly by remove.
With this patch:
Windows : if drive is locked/"mounted", the hot-unplug fail and disk is accessible (100% safe)
Linux: without hotplug module : the hot-unplug fail and disk is accessible (100% safe)
Linux : with hotplug module : the hot-unplug work, but no verification is done is the drive is mounted
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2013-03-07 08:37:49 +01:00
Alexandre Derumier
750886f87a
nic hot-unplug: delete netdev after device removal
...
Currently we delete netdev before acpi hot-unplug.
if guest don't support hotplug, this break network.
We need to remove netdev after the device had be correctly unplug.(we check that device has been correctly removed)
So, If guest don't support hotplug, It's simply thrown a unplug error message without breaking the network
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2013-03-07 08:37:23 +01:00
Alexandre Derumier
de8f60b252
dynamic bridge rate/vlan change on nic update
...
if model change : we try to unplug like before
if bridge/nat change : we try to unplug like before
else if bridge, but rate/vlan/bridge change, we dynamicly change them without need hotplug
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2013-03-05 12:10:06 +01:00
Alexandre Derumier
9d79146669
pve-bridge : move tap_plug code in PVE::Network::tap_plug
...
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2013-03-05 12:08:00 +01:00
Alexandre Derumier
56ccc25d44
pve-bridge : move tap creation code in PVE::Network::tap_create
...
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2013-03-05 12:07:29 +01:00
Alexandre Derumier
041dd2d8c7
pve-bridge : move rate limit code to PVE::Network:tap_rate_limit
...
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2013-03-05 12:06:56 +01:00
Dietmar Maurer
1849bae63a
start 3.0 development
...
bump version to 3.0-1
2013-03-05 11:40:03 +01:00
Dietmar Maurer
fc97ae2788
fix backup-cancel timeout
2013-03-01 10:59:19 +01:00
Dietmar Maurer
cff3c02e51
bump version to 2.3-16
2013-03-01 06:43:10 +01:00