]> git.proxmox.com Git - qemu-server.git/log
qemu-server.git
11 years agoimplement copy_vm
Dietmar Maurer [Mon, 29 Apr 2013 08:42:35 +0000 (10:42 +0200)]
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.

11 years agoadd qemu_img_convert
Alexandre Derumier [Mon, 29 Apr 2013 06:41:01 +0000 (08:41 +0200)]
add qemu_img_convert

also work with snapshot as source for qcow2,rbd,sheepdog.

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
11 years agoimplement shared file locks
Dietmar Maurer [Mon, 29 Apr 2013 07:30:15 +0000 (09:30 +0200)]
implement shared file locks

and add a first prototype for copy_vm

11 years agobump version to 3.0-4
Dietmar Maurer [Wed, 24 Apr 2013 06:00:13 +0000 (08:00 +0200)]
bump version to 3.0-4

11 years agouse correct package prefix
Dietmar Maurer [Mon, 22 Apr 2013 08:57:24 +0000 (10:57 +0200)]
use correct package prefix

11 years agofix assertion
Dietmar Maurer [Mon, 22 Apr 2013 07:43:54 +0000 (09:43 +0200)]
fix assertion

11 years agomove assertion so that we have all checks at the same place.
Dietmar Maurer [Mon, 22 Apr 2013 05:10:58 +0000 (07:10 +0200)]
move assertion so that we have all checks at the same place.

11 years agoset template flag earlier
Dietmar Maurer [Mon, 22 Apr 2013 05:08:51 +0000 (07:08 +0200)]
set template flag earlier

11 years agodo not allow template creation if there are snapshots.
Dietmar Maurer [Mon, 22 Apr 2013 05:05:54 +0000 (07:05 +0200)]
do not allow template creation if there are snapshots.

11 years agofix wrong comment
Dietmar Maurer [Mon, 22 Apr 2013 05:02:10 +0000 (07:02 +0200)]
fix wrong comment

11 years agotemplate_create : add template:1 option.
Alexandre Derumier [Thu, 18 Apr 2013 15:05:31 +0000 (17:05 +0200)]
template_create : add template:1 option.

Also allow template create of non base-xxx renamable storage

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
11 years agouse vm create permissions for templates
Stefan Priebe [Fri, 19 Apr 2013 06:37:32 +0000 (08:37 +0200)]
use vm create permissions for templates

Signed-off-by: Stefan Priebe <s.priebe@profihost.ag>
11 years agofix bug 377: make qm rescan work properly
Dietmar Maurer [Fri, 19 Apr 2013 08:45:46 +0000 (10:45 +0200)]
fix bug 377: make qm rescan work properly

11 years agois_template : return 1 if template option == 1
Alexandre Derumier [Thu, 18 Apr 2013 15:05:30 +0000 (17:05 +0200)]
is_template : return 1 if template option == 1

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
11 years agoadd template config option
Alexandre Derumier [Thu, 18 Apr 2013 15:05:29 +0000 (17:05 +0200)]
add template config option

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
11 years agoavoid endless loop in QMPClient
Dietmar Maurer [Thu, 18 Apr 2013 08:34:44 +0000 (10:34 +0200)]
avoid endless loop in QMPClient

11 years agodo not delete unmatched content from $$input
Dietmar Maurer [Thu, 18 Apr 2013 06:26:23 +0000 (08:26 +0200)]
do not delete unmatched content from $$input

11 years agobump version to 3.0-3
Dietmar Maurer [Thu, 18 Apr 2013 04:22:19 +0000 (06:22 +0200)]
bump version to 3.0-3

11 years agoallow sparse restore for sheepdog and rbd
Dietmar Maurer [Thu, 18 Apr 2013 04:14:50 +0000 (06:14 +0200)]
allow sparse restore for sheepdog and rbd

11 years agobump version to 3.0-2
Dietmar Maurer [Fri, 22 Mar 2013 05:25:26 +0000 (06:25 +0100)]
bump version to 3.0-2

11 years agoparse_net: fix warning about uninitialized value
Dietmar Maurer [Fri, 22 Mar 2013 05:23:22 +0000 (06:23 +0100)]
parse_net: fix warning about uninitialized value

11 years agoadd better checks to test if backup was successful
Dietmar Maurer [Tue, 12 Mar 2013 07:50:02 +0000 (08:50 +0100)]
add better checks to test if backup was successful

11 years agovirtio disk hot-unplug: drive_del after device_del
Alexandre Derumier [Wed, 6 Mar 2013 15:22:43 +0000 (16:22 +0100)]
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>
11 years agonic hot-unplug: delete netdev after device removal
Alexandre Derumier [Wed, 6 Mar 2013 14:48:59 +0000 (15:48 +0100)]
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>
11 years agodynamic bridge rate/vlan change on nic update
Alexandre Derumier [Tue, 5 Mar 2013 09:22:18 +0000 (10:22 +0100)]
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>
11 years agopve-bridge : move tap_plug code in PVE::Network::tap_plug
Alexandre Derumier [Tue, 5 Mar 2013 09:22:17 +0000 (10:22 +0100)]
pve-bridge : move tap_plug code in PVE::Network::tap_plug

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
11 years agopve-bridge : move tap creation code in PVE::Network::tap_create
Alexandre Derumier [Tue, 5 Mar 2013 09:22:16 +0000 (10:22 +0100)]
pve-bridge : move tap creation code in PVE::Network::tap_create

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
11 years agopve-bridge : move rate limit code to PVE::Network:tap_rate_limit
Alexandre Derumier [Tue, 5 Mar 2013 09:22:15 +0000 (10:22 +0100)]
pve-bridge : move rate limit code to PVE::Network:tap_rate_limit

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
11 years agostart 3.0 development
Dietmar Maurer [Tue, 5 Mar 2013 10:40:03 +0000 (11:40 +0100)]
start 3.0 development

bump version to 3.0-1

11 years agofix backup-cancel timeout
Dietmar Maurer [Fri, 1 Mar 2013 09:57:15 +0000 (10:57 +0100)]
fix backup-cancel timeout

11 years agobump version to 2.3-16
Dietmar Maurer [Fri, 1 Mar 2013 05:43:10 +0000 (06:43 +0100)]
bump version to 2.3-16

11 years agoqemu-server: vncproxy: qm: wait max 10s for the socket if it does not exist
Stefan Priebe [Thu, 28 Feb 2013 13:05:15 +0000 (14:05 +0100)]
qemu-server: vncproxy: qm: wait max 10s for the socket if it does not exist

Signed-off-by: Stefan Priebe <s.priebe@profihost.ag>
11 years agobump version to 2.3-15
Dietmar Maurer [Thu, 28 Feb 2013 11:54:21 +0000 (12:54 +0100)]
bump version to 2.3-15

11 years agoRevert "vncproxy: wait max 10s for the socket if it does not exist"
Dietmar Maurer [Thu, 28 Feb 2013 11:49:21 +0000 (12:49 +0100)]
Revert "vncproxy: wait max 10s for the socket if it does not exist"

This reverts commit 58504d5edfe531ace87c40258e1b15e1a9f21c06.

The patch only works if the VM is on local host.

11 years agovzdump: improve error reporting
Dietmar Maurer [Thu, 28 Feb 2013 09:47:55 +0000 (10:47 +0100)]
vzdump: improve error reporting

And use kill(9) instead of kill(-9), which simply hangs

11 years agofix changelog
Dietmar Maurer [Thu, 28 Feb 2013 05:54:49 +0000 (06:54 +0100)]
fix changelog

11 years agovncproxy: wait max 10s for the socket if it does not exist
Stefan Priebe [Mon, 25 Feb 2013 20:57:23 +0000 (21:57 +0100)]
vncproxy: wait max 10s for the socket if it does not exist

Signed-off-by: Stefan Priebe <s.priebe@profihost.ag>
11 years agofix check if a backing file exist
Dietmar Maurer [Thu, 28 Feb 2013 05:35:29 +0000 (06:35 +0100)]
fix check if a backing file exist

11 years agobump version to 2.3-14
Dietmar Maurer [Thu, 28 Feb 2013 05:21:52 +0000 (06:21 +0100)]
bump version to 2.3-14

11 years agobugfix #340 : don't set cache=none to cdrom
Alexandre Derumier [Wed, 27 Feb 2013 06:47:11 +0000 (07:47 +0100)]
bugfix #340 : don't set cache=none to cdrom

Cdrom devices don't works with cache=none and no reason to force cache mode on cdrom

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
11 years agodefault cpu type is kvm64 now
Dietmar Maurer [Mon, 25 Feb 2013 06:01:51 +0000 (07:01 +0100)]
default cpu type is kvm64 now

11 years agomigration : display qm resume error in task log
Alexandre Derumier [Sun, 24 Feb 2013 07:44:06 +0000 (08:44 +0100)]
migration : display qm resume error in task log

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
11 years agoforbid online resize a virtio windows bootdisk
Alexandre Derumier [Sat, 23 Feb 2013 09:25:52 +0000 (10:25 +0100)]
forbid online resize a virtio windows bootdisk

Currently is give us bsod, it's a windows virtio-blk driver bug.

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
11 years agobump version to 2.3-13
Dietmar Maurer [Mon, 25 Feb 2013 05:13:18 +0000 (06:13 +0100)]
bump version to 2.3-13

11 years agoset cache=none if option is not defined
Alexandre Derumier [Fri, 22 Feb 2013 13:35:51 +0000 (14:35 +0100)]
set cache=none if option is not defined

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
11 years agousb-tablet : always use uhci controller
Alexandre Derumier [Fri, 22 Feb 2013 10:39:14 +0000 (11:39 +0100)]
usb-tablet : always use uhci controller

- usb-tablet on ehci is buggy
- convert to -device syntax

info usb before
----------------
  Device 0.2, Port 1, Speed 12 Mb/s, Product QEMU USB Tablet

info usb after
--------------
  Device 0.2, Port 1, Speed 12 Mb/s, Product QEMU USB Tablet

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
11 years agouhci controller : use new -device syntax
Alexandre Derumier [Fri, 22 Feb 2013 10:39:13 +0000 (11:39 +0100)]
uhci controller : use new -device syntax

we need an id to allow hotplug

info pci before
---------------
  Bus  0, device   1, function 2:
    USB controller: PCI device 8086:7020
      IRQ 11.
      BAR4: I/O at 0xc040 [0xc05f].
      id ""

info pci after
--------------
  Bus  0, device   1, function 2:
    USB controller: PCI device 8086:7020
      IRQ 11.
      BAR4: I/O at 0xc040 [0xc05f].
      id "uhci"

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
11 years agofix changelog
Dietmar Maurer [Fri, 22 Feb 2013 09:10:34 +0000 (10:10 +0100)]
fix changelog

11 years agoRevert "enable usb2 controller by default"
Dietmar Maurer [Fri, 22 Feb 2013 09:08:10 +0000 (10:08 +0100)]
Revert "enable usb2 controller by default"

This reverts commit 42869ac07d4b899c7f6d09c7e0b2a0a6552246bb.

11 years agodisable hotplug by default
Dietmar Maurer [Fri, 22 Feb 2013 08:52:45 +0000 (09:52 +0100)]
disable hotplug by default

This reverts commit 6c52b6794e10fb5e4bdad2b417b60496afc067a5

Testing revealed that this has too many side effect, so we do not want
to change that for the 2.3 release.

11 years agoadd offline backup for templates
Dietmar Maurer [Fri, 22 Feb 2013 08:46:59 +0000 (09:46 +0100)]
add offline backup for templates

11 years agofix backup parameters for pve-qemu-kvm 1.4-4
Dietmar Maurer [Wed, 20 Feb 2013 09:48:52 +0000 (10:48 +0100)]
fix backup parameters for pve-qemu-kvm 1.4-4

bump version to 2.3-11

depend on pve-qemu-kvm 1.4-4

11 years agofix tablet hotplug
Alexandre Derumier [Tue, 19 Feb 2013 11:02:50 +0000 (12:02 +0100)]
fix tablet hotplug

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
11 years agobump version to 2.3-10
Dietmar Maurer [Tue, 19 Feb 2013 09:47:38 +0000 (10:47 +0100)]
bump version to 2.3-10

11 years agohotplug/unplug devices by default
Dietmar Maurer [Tue, 19 Feb 2013 09:43:22 +0000 (10:43 +0100)]
hotplug/unplug devices by default

11 years agohot-unplug : add some warnings for differents guest os
Alexandre Derumier [Tue, 19 Feb 2013 09:22:11 +0000 (10:22 +0100)]
hot-unplug : add some warnings for differents guest os

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
11 years agoqemu_netdevadd : convert to qmp
Alexandre Derumier [Tue, 19 Feb 2013 09:22:09 +0000 (10:22 +0100)]
qemu_netdevadd : convert to qmp

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
11 years agoqemu_netdevdel : convert to qmp
Alexandre Derumier [Tue, 19 Feb 2013 09:22:08 +0000 (10:22 +0100)]
qemu_netdevdel : convert to qmp

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
11 years agoqemu_deviceadd : convert to qmp
Alexandre Derumier [Tue, 19 Feb 2013 09:22:07 +0000 (10:22 +0100)]
qemu_deviceadd : convert to qmp

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
11 years agoqemu_devicedel : convert to qmp
Alexandre Derumier [Tue, 19 Feb 2013 09:22:06 +0000 (10:22 +0100)]
qemu_devicedel : convert to qmp

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
11 years agohotplug/unplug tablet on config update
Alexandre Derumier [Mon, 18 Feb 2013 12:44:34 +0000 (13:44 +0100)]
hotplug/unplug tablet on config update

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
11 years agoenable usb2 controller by default
Alexandre Derumier [Mon, 18 Feb 2013 12:44:33 +0000 (13:44 +0100)]
enable usb2 controller by default

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
11 years agovzdump : check if volid exist with volume_size_info
Alexandre Derumier [Sun, 17 Feb 2013 10:01:39 +0000 (11:01 +0100)]
vzdump : check if volid exist with volume_size_info

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
11 years agotemplate_create : check has_feature template
Alexandre Derumier [Sat, 16 Feb 2013 07:52:51 +0000 (08:52 +0100)]
template_create : check has_feature template

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
11 years agoadd missing newline
Dietmar Maurer [Fri, 15 Feb 2013 10:08:28 +0000 (11:08 +0100)]
add missing newline

11 years agoremove wrong permission check
Dietmar Maurer [Fri, 15 Feb 2013 07:45:42 +0000 (08:45 +0100)]
remove wrong permission check

11 years agotemplate_create: check for 'clone' feature
Dietmar Maurer [Fri, 15 Feb 2013 07:44:12 +0000 (08:44 +0100)]
template_create: check for 'clone' feature

11 years agois_template: always return a defined value
Dietmar Maurer [Fri, 15 Feb 2013 07:12:33 +0000 (08:12 +0100)]
is_template: always return a defined value

use 0 instead of undef

11 years agovmstatus : return template if vm is a template
Alexandre Derumier [Thu, 14 Feb 2013 10:58:56 +0000 (11:58 +0100)]
vmstatus : return template if vm is a template

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
11 years agomove template checks up one level
Dietmar Maurer [Fri, 15 Feb 2013 07:04:30 +0000 (08:04 +0100)]
move template checks up one level

To avoid multiple/repeated calls to load_config().

11 years agoforbid snapshot create if current it's a template
Alexandre Derumier [Thu, 14 Feb 2013 10:58:55 +0000 (11:58 +0100)]
forbid snapshot create if current it's a template

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
11 years agoforbid offline migration of a non shared volume if it's a clone
Alexandre Derumier [Thu, 14 Feb 2013 10:58:54 +0000 (11:58 +0100)]
forbid offline migration of a non shared volume if it's a clone

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
11 years agoforbid vm_start if current config is a template.
Alexandre Derumier [Thu, 14 Feb 2013 10:58:53 +0000 (11:58 +0100)]
forbid vm_start if current config is a template.

if files (raw,qcow2) are a template, we forbid vm_start.

note : the readonly protection do already the job, but we need a clear message for users

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
11 years agoforbid rollback if current config is a template.
Alexandre Derumier [Thu, 14 Feb 2013 10:58:52 +0000 (11:58 +0100)]
forbid rollback if current config is a template.

if a qcow2 current is a template, we can't rollback to a previous snapshot.

(note that file readonly protection do already the job, but we need a clear error message for user)

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
11 years agoforbid snapshot delete if it's a template
Alexandre Derumier [Thu, 14 Feb 2013 10:58:51 +0000 (11:58 +0100)]
forbid snapshot delete if it's a template

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
11 years agoadd is_template sub
Alexandre Derumier [Thu, 14 Feb 2013 10:58:50 +0000 (11:58 +0100)]
add is_template sub

return 1 if vm is a full template (all disks are base image)
return 2 if vm is a semi-tempalte (mix of base and non-base image)

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
11 years agoadd template_create
Alexandre Derumier [Thu, 14 Feb 2013 10:58:49 +0000 (11:58 +0100)]
add template_create

qm template <vmid> [-disk virtio0]

convert a full vm to a template (or only a disk if specify)

we orignal disk to /base (file) or base- (lvm,rbd,sheepdog,nexenta)
we create a snapshot @base if storage need it for clone
we protect the volume or snapshot

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
11 years agodo not set cache=none for .raw files
Dietmar Maurer [Thu, 14 Feb 2013 07:19:39 +0000 (08:19 +0100)]
do not set cache=none for .raw files

use qemu default instead (writeback)

11 years agoremove expected_downtime from migration status
Dietmar Maurer [Wed, 13 Feb 2013 09:47:54 +0000 (10:47 +0100)]
remove expected_downtime from migration status

11 years agobump version to 2.3-9
Dietmar Maurer [Wed, 13 Feb 2013 09:40:58 +0000 (10:40 +0100)]
bump version to 2.3-9

depend on pve-qemu-kvm >= 1.4-1

11 years agoqemu 1.4 fix : rename stats-polling-interval to guest-stats-polling-interval
Alexandre Derumier [Tue, 12 Feb 2013 13:10:11 +0000 (14:10 +0100)]
qemu 1.4 fix : rename stats-polling-interval to guest-stats-polling-interval

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
11 years agofix tar restore: correctly check if VM config already exists
Dietmar Maurer [Mon, 28 Jan 2013 08:54:00 +0000 (09:54 +0100)]
fix tar restore: correctly check if VM config already exists

11 years agoallow to suspend/resume VM during backup
Dietmar Maurer [Thu, 17 Jan 2013 09:25:39 +0000 (10:25 +0100)]
allow to suspend/resume VM during backup

bump version to 2.3-7

11 years agocancel backup before stopping the vm
Dietmar Maurer [Wed, 16 Jan 2013 12:21:27 +0000 (13:21 +0100)]
cancel backup before stopping the vm

bump version ro 2.3-6

11 years agoallow to run as qemu-system-x86_64
Dietmar Maurer [Wed, 16 Jan 2013 12:19:24 +0000 (13:19 +0100)]
allow to run as qemu-system-x86_64

This is usefull to debug.

11 years agofix bug #307: correctly restore disk settings
Dietmar Maurer [Mon, 7 Jan 2013 05:49:11 +0000 (06:49 +0100)]
fix bug #307: correctly restore disk settings

bump version to 2.3-5

11 years agoballoon: don't set balloon && polling interval at start when livemigrate
Alexandre Derumier [Fri, 4 Jan 2013 10:05:23 +0000 (11:05 +0100)]
balloon: don't set balloon && polling interval at start when livemigrate

We don't need to set balloon value and polling interval when a vm is coming from a livemigrate.
(Values are keep in guest memory)

So with autoballooning, this avoid to set the ballon size at ballon_min value when the vm is migrated

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
11 years agobump version to 2.3-4
Dietmar Maurer [Fri, 4 Jan 2013 06:03:14 +0000 (07:03 +0100)]
bump version to 2.3-4

11 years agovma restore: only delete disks contained in backup.
Dietmar Maurer [Fri, 4 Jan 2013 05:57:11 +0000 (06:57 +0100)]
vma restore: only delete disks contained in backup.

cleanup: remove unnecessary 'PVE::QemuServer::' prefix.

11 years agoQemuMigrate: phase2_cleanup misses migrate_cancel
Stefan Priebe [Tue, 1 Jan 2013 21:59:55 +0000 (22:59 +0100)]
QemuMigrate: phase2_cleanup misses migrate_cancel

Signed-off-by: Stefan Priebe <s.priebe@profihost.ag>
11 years agobump version to 2.3-3
Dietmar Maurer [Wed, 2 Jan 2013 05:34:51 +0000 (06:34 +0100)]
bump version to 2.3-3

11 years agofix Bug #293: CDROM size not reset when set to use no media
Alexandre Derumier [Mon, 31 Dec 2012 09:55:52 +0000 (10:55 +0100)]
fix Bug #293: CDROM size not reset when set to use no media

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
11 years agoadd set migrate_downtime default value to 0.1 && add number type
Alexandre Derumier [Sun, 30 Dec 2012 18:03:00 +0000 (19:03 +0100)]
add set migrate_downtime default value to 0.1 && add number type

can be integer or float

ex:

1
1.0
0.3

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
11 years agoimplement dynamic migration_downtime
Stefan Priebe [Sun, 30 Dec 2012 18:02:59 +0000 (19:02 +0100)]
implement dynamic migration_downtime

changelog:

- increment counter also if remaining memory equal 0 (qemu 1.4 migration code)
- only increment coutner and set down_time if memory transfert have occured. (to avoid too fast downtime increment)

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
11 years agoallow manual ballooning if shares is set to zero
Dietmar Maurer [Fri, 28 Dec 2012 13:06:46 +0000 (14:06 +0100)]
allow manual ballooning if shares is set to zero

11 years agocorrectly set shares (allow 0)
Dietmar Maurer [Fri, 28 Dec 2012 13:05:58 +0000 (14:05 +0100)]
correctly set shares (allow 0)

11 years agofix permission check for option 'shares'
Dietmar Maurer [Fri, 28 Dec 2012 12:04:19 +0000 (13:04 +0100)]
fix permission check for option 'shares'

11 years agoapi2: vm_feature
Alexandre Derumier [Thu, 27 Dec 2012 15:06:55 +0000 (16:06 +0100)]
api2: vm_feature

return true/false if vm has feature

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
11 years agoadd sub has_feature
Alexandre Derumier [Thu, 27 Dec 2012 15:06:54 +0000 (16:06 +0100)]
add sub has_feature

loop over each disk of the vm config file to find if feature is available.

If one of the disk doesn't have the feature, we return undef, else return 1

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
11 years agoadd downtime && expected_downtime query-migrate info
Alexandre Derumier [Thu, 27 Dec 2012 08:18:16 +0000 (09:18 +0100)]
add downtime && expected_downtime query-migrate info

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>