Dietmar Maurer
12c6aafb2c
bump version to 3.0-14
2013-05-22 07:17:53 +02:00
Dietmar Maurer
6e46ac079f
fix bug #389 : avoid error if balloon is undefined
2013-05-22 07:15:44 +02:00
Dietmar Maurer
a3dbf3b9b5
bump version to 3.0-13
2013-05-21 12:04:18 +02:00
Dietmar Maurer
8fd5743158
fix bug #391 - restore: test if requested format is supported
2013-05-21 12:02:41 +02:00
Dietmar Maurer
4f2df3bab1
bump version to 3.0-12
2013-05-14 12:04:55 +02:00
Dietmar Maurer
be51704915
use add_vm_to_pool/remove_vm_from_pool from PVE::AccessControl
2013-05-14 12:01:57 +02:00
Dietmar Maurer
c89dcd85bd
bump version to 3.0-11
2013-05-14 10:19:38 +02:00
Alexandre Derumier
b37558ca33
clone disk : keep source volume params
...
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2013-05-14 10:17:45 +02:00
Dietmar Maurer
4a5a259072
clone: check is we can clone to target storage
2013-05-13 11:17:38 +02:00
Dietmar Maurer
3cf5445809
bump version to 3.0-10
2013-05-13 07:32:56 +02:00
Dietmar Maurer
f9a971e0ee
fix bug #381 : use PVE::Tools::next_migrate_port()
2013-05-13 07:30:50 +02:00
Dietmar Maurer
046e410418
bump version to 3.0-9
2013-05-08 10:24:13 +02:00
Dietmar Maurer
ca3e4fa4e1
restore: do not restore template flag
...
A restored VM is never a template. Else we would need to create
base images after the restore, and not all storages supports base
images. Anyways, the user can easily convert the restored VM into a
template later.
2013-05-08 10:19:38 +02:00
Dietmar Maurer
ccfb9ffe7e
bump version to 3.0-8
2013-05-07 10:20:29 +02:00
Dietmar Maurer
ccb5c001d6
qemu_img_format: use 'raw' for lvm
...
With host_device we get the following error:
qemu-img: error while writing sector 0: Bad file descriptor
2013-05-07 10:15:57 +02:00
Alexandre Derumier
f6ab3bdbf9
drive-mirror : die if stats are empty.
...
If drive have bad sectors, the block job die.
we need to die if stats are empty to avoid this:
transferred: 21440086016 bytes remaining: 34668544 bytes total: 21474754560 bytes progression: 99.84 %
Use of uninitialized value $transferred in subtraction (-) at /usr/share/perl5/PVE/QemuServer.pm line 4611.
Use of uninitialized value $total in subtraction (-) at /usr/share/perl5/PVE/QemuServer.pm line 4611.
Use of uninitialized value $transferred in multiplication (*) at /usr/share/perl5/PVE/QemuServer.pm line 4612.
Use of uninitialized value $total in division (/) at /usr/share/perl5/PVE/QemuServer.pm line 4612.
clone failed: mirroring error: Illegal division by zero at /usr/share/perl5/PVE/QemuServer.pm line 4612.
Maybe it should be improved by catching qmp events, but doesn't seem to work for now
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2013-05-06 11:29:41 +02:00
Dietmar Maurer
4fca015325
set long timeout for query-block-jobs
...
Like we do for other block job query commands. Seems those commands
can hangs for some time.
2013-05-06 09:25:39 +02:00
Dietmar Maurer
10cbe3d441
bump version to 3.0-7
2013-05-06 08:58:55 +02:00
Dietmar Maurer
719893a944
has_features: also return a list of allowed nodes
...
This is useful if a feature is restricted to a limited set of nodes.
2013-05-06 08:56:17 +02:00
Dietmar Maurer
7758ce869d
has_feature: add 'copy' to enum
2013-05-03 12:30:43 +02:00
Dietmar Maurer
7af0a6c88d
create template: fix permission check
...
This function only works if the VM already exists. But pool permissions
are automatically inherited on existing VMs, so there is no need
to explicitly check pool permissions.
2013-05-03 09:14:25 +02:00
Dietmar Maurer
d703d4c010
clone: correctly add VM to pool
2013-05-03 09:08:39 +02:00
Dietmar Maurer
2dd530430b
fix typo, whitespace cleanups
2013-05-03 08:39:41 +02:00
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