]> git.proxmox.com Git - qemu-server.git/log
qemu-server.git
7 years agobump version to 3.4-9 stable-3
Dietmar Maurer [Thu, 9 Jun 2016 16:00:26 +0000 (18:00 +0200)]
bump version to 3.4-9

7 years agosplit old style pipe open call
Wolfgang Bumiller [Thu, 9 Jun 2016 14:54:36 +0000 (16:54 +0200)]
split old style pipe open call

8 years agobump version to 3.4-8
Dietmar Maurer [Wed, 9 Mar 2016 12:29:22 +0000 (13:29 +0100)]
bump version to 3.4-8

8 years agofix #909: pass rate to tap_plug()
Wolfgang Bumiller [Tue, 8 Mar 2016 13:15:20 +0000 (14:15 +0100)]
fix #909: pass rate to tap_plug()

When using OVS tap_plug() resets rate limiting so we need
to pass it along to reapply it.

The rate on its own can still be hot-plugged with the
regular tap_rate_limit() call.

8 years agobump version to 3.4-7
Dietmar Maurer [Sat, 20 Feb 2016 09:30:32 +0000 (10:30 +0100)]
bump version to 3.4-7

8 years agodeactivate volumes if vm start command fails
Dominik Csapak [Fri, 19 Feb 2016 09:43:57 +0000 (10:43 +0100)]
deactivate volumes if vm start command fails

prevents volumes to be active when they are not actually in use
this is a cleanup of Dhaussy Alexandre's patch from 02/15/2016

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
8 years agobump version to 3.4-6
Dietmar Maurer [Tue, 12 May 2015 05:36:56 +0000 (07:36 +0200)]
bump version to 3.4-6

8 years agoqmp drive-mirror : set big timeout
Alexandre Derumier [Mon, 11 May 2015 13:55:22 +0000 (15:55 +0200)]
qmp drive-mirror : set big timeout

drive-mirror is doing lseek on source image before starting, and this can take a lot of time for big nfs volume
during this time, qmp socket is hanging
http://lists.nongnu.org/archive/html/qemu-devel/2015-05/msg01838.html
so we need to setup a big timeout

qemu devs are currently working to fix this

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
8 years agoqemu-mirror : block job complete : use ready flag
Alexandre Derumier [Mon, 11 May 2015 13:55:21 +0000 (15:55 +0200)]
qemu-mirror : block job complete : use ready flag

Since qemu 2.2, a new "ready" flag has been added to blockjob
http://git.qemu.org/?p=qemu.git;a=commit;h=ef6dbf1e46ebd1d41ab669df5bba0bbdec6bd374
to known if we can complete it.

we can't use len==offset to known if all block are mirrored, because behaviour will change soon in qemu 2.3

http://git.qemu.org/?p=qemu.git;a=commit;h=b21c76529d55bf7bb02ac736b312f5f8bf033ea2
"block/mirror: Improve progress report

Instead of taking the total length of the block device as the block
job's length, use the number of dirty sectors. The progress is now the
number of sectors mirrored to the target block device. Note that this
may result in the job's length increasing during operation, which is
however in fact desirable.
"

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
8 years agobump version to 3.4-5
Dietmar Maurer [Mon, 27 Apr 2015 08:38:06 +0000 (10:38 +0200)]
bump version to 3.4-5

8 years agoimplement offline migration on zfs
Wolfgang Link [Fri, 24 Apr 2015 11:27:27 +0000 (13:27 +0200)]
implement offline migration on zfs

Signed-off-by: Wolfgang Link <w.link@proxmox.com>
9 years agofix bug #618: correct typo
Wolfgang Link [Wed, 8 Apr 2015 06:05:13 +0000 (08:05 +0200)]
fix bug #618: correct typo

Signed-off-by: Wolfgang Link <w.link@proxmox.com>
9 years agobump version to 3.4-4
Dietmar Maurer [Fri, 10 Apr 2015 05:01:57 +0000 (07:01 +0200)]
bump version to 3.4-4

9 years agofix bug #617: change command arrangement
Wolfgang Link [Tue, 7 Apr 2015 12:01:13 +0000 (14:01 +0200)]
fix bug #617: change command arrangement

the ovs-vsctl del-port flush the tc settings.
So we have to change the arrangement of setting up the network.

Signed-off-by: Wolfgang Link <w.link@proxmox.com>
9 years agouse aio=native only with O_DIRECT (cache=none|directsync)
Alexandre Derumier [Thu, 2 Apr 2015 06:11:25 +0000 (08:11 +0200)]
use aio=native only with O_DIRECT (cache=none|directsync)

Currently qemu auto fallback to aio=threads if cache=none|directsync
It's better to handle that correctly

see:
https://bugzilla.redhat.com/show_bug.cgi?id=1086704

http://wiki.qemu.org/ChangeLog/2.3
Future incompatible changes:
Block device parameter aio=native has no effect without cache.direct=on. It will be made an error.

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
9 years agoupdate changelog
Dietmar Maurer [Mon, 9 Mar 2015 07:28:39 +0000 (08:28 +0100)]
update changelog

9 years agoalways setup balloon polling interval.
Alexandre Derumier [Mon, 9 Mar 2015 07:22:12 +0000 (08:22 +0100)]
always setup balloon polling interval.

we always need to enable pooling interval, because it doesn't seem to be setup with -machine option

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
9 years agobump version to 3.4-3
Dietmar Maurer [Mon, 9 Mar 2015 07:20:45 +0000 (08:20 +0100)]
bump version to 3.4-3

9 years agovmstatus : use vcpus if defined
Alexandre Derumier [Sun, 8 Mar 2015 13:07:41 +0000 (14:07 +0100)]
vmstatus : use vcpus if defined

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
9 years agoRevert "balloon: use qom-get for guest balloon statistics V5"
Dietmar Maurer [Mon, 9 Mar 2015 07:10:40 +0000 (08:10 +0100)]
Revert "balloon: use qom-get for guest balloon statistics V5"

This reverts commit 09f7c4dfbc5de3e4c63f7e54e198bf2eb3374c02.

9 years agobump version to 3.4-2
Dietmar Maurer [Fri, 6 Mar 2015 08:55:18 +0000 (09:55 +0100)]
bump version to 3.4-2

9 years agoballoon: use qom-get for guest balloon statistics V5
Alexandre Derumier [Fri, 6 Mar 2015 08:11:28 +0000 (09:11 +0100)]
balloon: use qom-get for guest balloon statistics V5

changelog:

we use MB, not bytes

$d->{balloon} = int($info->{stats}->{"stat-total-memory"}/1024/1024);
$d->{freemem} = int($info->{stats}->{"stat-free-memory"}/1024/1024);

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
9 years agodrive_add : escape \ character
Alexandre Derumier [Thu, 5 Mar 2015 09:34:10 +0000 (10:34 +0100)]
drive_add : escape \ character

storage.cfg
-----------
rbd mystorage
    monhost 10.5.0.11:6789; 10.5.0.12:6789; 10.5.0.13:6789

drive_add auto "file=rbd:poolceph1/vm-101-disk-8:mon_host=10.5.0.11\\:6789; 10.5.0.12\\:6789; 10.5.0.13\\:6789:id=admin:auth_supported=cephx:keyring=/etc/pve/priv/ceph/cephzimbra.keyring,if=none,id=drive-virtio2,aio=native,cache=none,detect-zeroes=on"

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
9 years agobugfix : allow manual balloning if shares = 0
Alexandre Derumier [Mon, 2 Mar 2015 15:03:22 +0000 (16:03 +0100)]
bugfix : allow manual balloning if shares = 0

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
9 years agobump version to 3.4-1
Dietmar Maurer [Mon, 2 Mar 2015 05:51:19 +0000 (06:51 +0100)]
bump version to 3.4-1

9 years agofix max allowed vcpus error message
Dietmar Maurer [Mon, 2 Mar 2015 05:45:57 +0000 (06:45 +0100)]
fix max allowed vcpus error message

9 years agocorrect use hash with keys
Dietmar Maurer [Fri, 27 Feb 2015 11:56:38 +0000 (12:56 +0100)]
correct use hash with keys

9 years agobump version to 3.3-20
Dietmar Maurer [Sun, 15 Feb 2015 08:06:30 +0000 (09:06 +0100)]
bump version to 3.3-20

9 years agocorrectly set and remove lock
Dietmar Maurer [Sun, 15 Feb 2015 08:04:30 +0000 (09:04 +0100)]
correctly set and remove lock

9 years agobump version to 3.3-19
Dietmar Maurer [Sat, 14 Feb 2015 08:24:41 +0000 (09:24 +0100)]
bump version to 3.3-19

9 years agocommit pending values when changing CDROM
Dietmar Maurer [Sat, 14 Feb 2015 08:20:41 +0000 (09:20 +0100)]
commit pending values when changing CDROM

9 years agobump version to 3.3-18
Dietmar Maurer [Fri, 13 Feb 2015 08:05:44 +0000 (09:05 +0100)]
bump version to 3.3-18

9 years agobugfix : add missing queues nic option in print_net
Alexandre Derumier [Thu, 12 Feb 2015 12:49:54 +0000 (13:49 +0100)]
bugfix : add missing queues nic option in print_net

Currently the nic queues option is removed when we try to update config

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
9 years agobump version to 3.3-17
Dietmar Maurer [Thu, 12 Feb 2015 07:19:19 +0000 (08:19 +0100)]
bump version to 3.3-17

9 years agoQemuServer: check snapshot befor rollback
Wolfgang Link [Thu, 12 Feb 2015 07:41:34 +0000 (08:41 +0100)]
QemuServer: check snapshot befor rollback

this will check, if it is possibel to rollback a snapshot befor VM will shutdown and get locked.

Signed-off-by: Wolfgang Link <w.link@proxmox.com>
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
9 years agovm_devices_list: make sure $device->{'qdev_id'} is set
Dietmar Maurer [Thu, 12 Feb 2015 07:30:16 +0000 (08:30 +0100)]
vm_devices_list: make sure $device->{'qdev_id'} is set

9 years agovm_devices_list : list devices behind pci bridge
Alexandre Derumier [Tue, 10 Feb 2015 16:23:09 +0000 (17:23 +0100)]
vm_devices_list : list devices behind pci bridge

This fix hotplug for devices behind bridges, like nic6->24 for example

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
9 years agofix CDROM hotplug
Dietmar Maurer [Thu, 12 Feb 2015 07:00:14 +0000 (08:00 +0100)]
fix CDROM hotplug

9 years agocleanup error messages
Dietmar Maurer [Thu, 12 Feb 2015 06:11:17 +0000 (07:11 +0100)]
cleanup error messages

9 years agobump version to 3.3-16
Dietmar Maurer [Wed, 11 Feb 2015 05:32:40 +0000 (06:32 +0100)]
bump version to 3.3-16

9 years agoQemuServer: fix wrong binding of pci root ports, bridges or switches to vfio
Stefan Priebe [Sun, 1 Feb 2015 19:46:46 +0000 (20:46 +0100)]
QemuServer: fix wrong binding of pci root ports, bridges or switches to vfio

Signed-off-by: Stefan Priebe <s.priebe@profihost.ag>
9 years agoupdate changelog
Dietmar Maurer [Tue, 10 Feb 2015 12:01:54 +0000 (13:01 +0100)]
update changelog

9 years agobug 597: hotplug fix
Wolfgang Link [Tue, 10 Feb 2015 11:59:22 +0000 (12:59 +0100)]
bug 597: hotplug fix

wrap params in dopple quotes, so spaces will accept.

Signed-off-by: Wolfgang Link <w.link@proxmox.com>
9 years agomemory hotplug option is not hotpluggable
Alexandre Derumier [Mon, 9 Feb 2015 15:47:52 +0000 (16:47 +0100)]
memory hotplug option is not hotpluggable

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
9 years agobump version to 3.3-15
Dietmar Maurer [Mon, 9 Feb 2015 06:05:29 +0000 (07:05 +0100)]
bump version to 3.3-15

9 years agoadd foreach_dimm sub
Alexandre Derumier [Sun, 8 Feb 2015 13:53:07 +0000 (14:53 +0100)]
add foreach_dimm sub

and use it in memory hotplug and config_to_cmd

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
9 years agobump version to 3.3-14
Dietmar Maurer [Wed, 28 Jan 2015 06:12:11 +0000 (07:12 +0100)]
bump version to 3.3-14

9 years agomemory hotplug patch v10
Alexandre Derumier [Wed, 28 Jan 2015 05:47:24 +0000 (06:47 +0100)]
memory hotplug patch v10

This patch allow to hotplug memory dimm modules
though a new option : dimm_memory

The dimm modules are generated from a map

     dimmid       size  dimm_memory
     dimm0        512        512     100.00 0
     dimm1        512       1024      50.00 1
     dimm2        512       1536      33.33 2
     dimm3        512       2048      25.00 3
     dimm4        512       2560      20.00 0
     dimm5        512       3072      16.67 1
     dimm6        512       3584      14.29 2
     dimm7        512       4096      12.50 3
     dimm8        512       4608      11.11 0
     dimm9        512       5120      10.00 1
    dimm10        512       5632       9.09 2
    dimm11        512       6144       8.33 3
    dimm12        512       6656       7.69 0
    dimm13        512       7168       7.14 1
    dimm14        512       7680       6.67 2
    dimm15        512       8192       6.25 3
    dimm16        512       8704       5.88 0
    dimm17        512       9216       5.56 1
    dimm18        512       9728       5.26 2
    dimm19        512      10240       5.00 3
    dimm20        512      10752       4.76 0
    ...

   dimm241      65536    3260416       2.01 1
   dimm242      65536    3325952       1.97 2
   dimm243      65536    3391488       1.93 3
   dimm244      65536    3457024       1.90 0
   dimm245      65536    3522560       1.86 1
   dimm246      65536    3588096       1.83 2
   dimm247      65536    3653632       1.79 3
   dimm248      65536    3719168       1.76 0
   dimm249      65536    3784704       1.73 1
   dimm250      65536    3850240       1.70 2
   dimm251      65536    3915776       1.67 3
   dimm252      65536    3981312       1.65 0
   dimm253      65536    4046848       1.62 1
   dimm254      65536    4112384       1.59 2
   dimm255      65536    4177920       1.57 3

max dimm_memory size is 4TB, which is the current qemu limit

If the dimm_memory value is not aligned on memory module, we align the dimm_memory on the next module.

vmid.conf
---------
memory: 1024
numa:1
hotplug: memmory

when hotplug memory option is enabled, the minimum memory value must be 1GB, and also numa need to be enabled.

we assign the first 1GB as static memory, splitted on each numa nodes.
The remaining memory is assigned on hotpluggable dimm devices.

The static memory need to be also 128MB aligned, to have other dimm devices aligned too.

This 128MB alignment is a linux limitation, windows can align on 2MB size.

Numa need to be aligned, as linux guest don't boot on some setup with multi sockets,
and windows need numa to be able to hotplug memory

hotplug
----
qm set <vmid> -memory X    (where X is bigger than current value)

unplug (not yet implemented in qemu)
------
qm set <vmid> -memory X  (where X is lower than current value)

linux guest
-----------
-acpi hotplug module should be loaded in guest
-need a recent kernel. (tested with 3.10)

can be enable automaticaly, adding:

/lib/udev/rules.d/80-hotplug-cpu-mem.rules
SUBSYSTEM=="cpu", ACTION=="add", TEST=="online", ATTR{online}=="0", \
 ATTR{online}="1"

SUBSYSTEM=="memory", ACTION=="add", TEST=="state", ATTR{state}=="offline", \
 ATTR{state}="online"

windows guest
-------------

tested with:

- windows 2012 standard
- windows 2008 enterprise/datacenter

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
9 years agobump version to 3.3-13
Dietmar Maurer [Tue, 27 Jan 2015 11:39:48 +0000 (12:39 +0100)]
bump version to 3.3-13

9 years agouse PVE::Tools::split_list
Dietmar Maurer [Tue, 27 Jan 2015 10:05:36 +0000 (11:05 +0100)]
use PVE::Tools::split_list

9 years agohotplug config: allow to enable specific features
Dietmar Maurer [Tue, 27 Jan 2015 06:16:22 +0000 (07:16 +0100)]
hotplug config: allow to enable specific features

9 years agobump version to 3.3-12
Dietmar Maurer [Fri, 23 Jan 2015 07:05:07 +0000 (08:05 +0100)]
bump version to 3.3-12

9 years agoenable vcpus hotplug
Alexandre Derumier [Fri, 9 Jan 2015 15:30:36 +0000 (16:30 +0100)]
enable vcpus hotplug

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
9 years agoadd vcpus option
Alexandre Derumier [Fri, 9 Jan 2015 15:30:35 +0000 (16:30 +0100)]
add vcpus option

vcpus = current allocate vpus to virtual machine

maxcpus is now compute from $sockets*cores
vcpus = maxcpus if not defined

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
9 years agoapply pending changes at vm_stop
Dietmar Maurer [Wed, 21 Jan 2015 09:42:43 +0000 (10:42 +0100)]
apply pending changes at vm_stop

9 years agobump version to 3.3-11
Dietmar Maurer [Wed, 21 Jan 2015 07:53:17 +0000 (08:53 +0100)]
bump version to 3.3-11

9 years agoenable hotplug by default
Dietmar Maurer [Wed, 21 Jan 2015 07:52:37 +0000 (08:52 +0100)]
enable hotplug by default

9 years agoAdd link_down flag to network config
Dietmar Maurer [Tue, 20 Jan 2015 10:47:11 +0000 (11:47 +0100)]
Add link_down flag to network config

Original patch by Wolfgang, adopted for new hotplug implementation.

I do not verify link status, because that patch was rejected upstream.

Signed-off-by: Wolfgang Link <wolfgang@linksystems.org>
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
9 years agoChange check for better understanding!
Wolfgang Link [Mon, 29 Dec 2014 09:56:07 +0000 (10:56 +0100)]
Change check for better understanding!

Signed-off-by: Wolfgang Link <wolfgang@linksystems.org>
9 years agobump version to 3.3-10
Dietmar Maurer [Tue, 20 Jan 2015 06:16:14 +0000 (07:16 +0100)]
bump version to 3.3-10

9 years agoSupport additional e1000 variants for VM machines
Kamil Trzcinski [Sat, 17 Jan 2015 12:46:32 +0000 (13:46 +0100)]
Support additional e1000 variants for VM machines

It is required for OS X on qemu

Signed-off-by: Kamil Trzcinski <ayufan@ayufan.eu>
9 years agobump version to 3.3-9
Dietmar Maurer [Thu, 15 Jan 2015 05:23:36 +0000 (06:23 +0100)]
bump version to 3.3-9

9 years agopending api : fix parsing 0 value
Alexandre Derumier [Mon, 12 Jan 2015 14:32:17 +0000 (15:32 +0100)]
pending api : fix parsing 0 value

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
9 years agofix test for ballon hotplug
Dietmar Maurer [Mon, 12 Jan 2015 14:04:31 +0000 (15:04 +0100)]
fix test for ballon hotplug

9 years agoset boot strict=on to prevent booting from not listed boot devices
Stefan Priebe [Fri, 9 Jan 2015 05:56:15 +0000 (06:56 +0100)]
set boot strict=on to prevent booting from not listed boot devices

Signed-off-by: Stefan Priebe <s.priebe@profihost.ag>
9 years agodo not set romfile= if network is not in boot order
Stefan Priebe [Fri, 9 Jan 2015 05:56:14 +0000 (06:56 +0100)]
do not set romfile= if network is not in boot order

Signed-off-by: Stefan Priebe <s.priebe@profihost.ag>
9 years agobump version to 3.3-8
Dietmar Maurer [Thu, 8 Jan 2015 12:35:07 +0000 (13:35 +0100)]
bump version to 3.3-8

9 years agofix previous commit: forgot API definitions
Dietmar Maurer [Thu, 8 Jan 2015 08:04:18 +0000 (09:04 +0100)]
fix previous commit: forgot API definitions

9 years agoupdate_vm api : add optionnal revert option
Dietmar Maurer [Wed, 7 Jan 2015 10:09:30 +0000 (11:09 +0100)]
update_vm api : add optionnal revert option

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
9 years agocode cleanup
Dietmar Maurer [Wed, 7 Jan 2015 09:02:32 +0000 (10:02 +0100)]
code cleanup

9 years agofix balloon pending update
Alexandre Derumier [Fri, 2 Jan 2015 14:16:01 +0000 (15:16 +0100)]
fix balloon pending update

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
9 years agodon't try to hotplug|unplug ide && sata drive
Alexandre Derumier [Fri, 2 Jan 2015 14:16:00 +0000 (15:16 +0100)]
don't try to hotplug|unplug ide && sata drive

We can't hotplug theses devices,
so we can avoid to throw always an error when adding them

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
9 years agoadd optionnal current param to config api
Dietmar Maurer [Wed, 7 Jan 2015 07:31:32 +0000 (08:31 +0100)]
add optionnal current param to config api

config api return by default the pending config, like this it don't break current behaviour

Add an optionnal current param to get to current running config

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
9 years agoAPI: list new 'pending' method
Dietmar Maurer [Wed, 7 Jan 2015 07:14:14 +0000 (08:14 +0100)]
API: list new 'pending' method

9 years agopending : add disk hot-unplug
Alexandre Derumier [Fri, 2 Jan 2015 14:15:58 +0000 (15:15 +0100)]
pending : add disk hot-unplug

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
9 years agoremove unused code
Dietmar Maurer [Tue, 25 Nov 2014 11:19:52 +0000 (12:19 +0100)]
remove unused code

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
9 years agovmconfig_update_net: do not call vm_deviceplug() if hotplug == 0
Dietmar Maurer [Tue, 25 Nov 2014 11:07:02 +0000 (12:07 +0100)]
vmconfig_update_net: do not call vm_deviceplug() if hotplug == 0

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
9 years agovmconfig_hotplug_pending : add update_disk
Dietmar Maurer [Tue, 25 Nov 2014 10:37:37 +0000 (11:37 +0100)]
vmconfig_hotplug_pending : add update_disk

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
9 years agovm_deviceplug: always raise exception on error
Dietmar Maurer [Tue, 25 Nov 2014 08:13:37 +0000 (09:13 +0100)]
vm_deviceplug: always raise exception on error

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
9 years agovm_deviceunplug: raise expection if something fail
Dietmar Maurer [Tue, 25 Nov 2014 07:29:12 +0000 (08:29 +0100)]
vm_deviceunplug: raise expection if something fail

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
9 years agovmconfig_hotplug_pending : add update_net
Dietmar Maurer [Tue, 25 Nov 2014 05:58:33 +0000 (06:58 +0100)]
vmconfig_hotplug_pending : add update_net

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
9 years agovmconfig_hotplug_pending: correctly skip values
Dietmar Maurer [Mon, 24 Nov 2014 09:33:51 +0000 (10:33 +0100)]
vmconfig_hotplug_pending: correctly skip values

Do not use $skip variable (simply raise an exception)

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
9 years agorename qemu_bridgeadd to qemu_add_pci_bridge
Dietmar Maurer [Mon, 24 Nov 2014 09:13:21 +0000 (10:13 +0100)]
rename qemu_bridgeadd to qemu_add_pci_bridge

To make it obvious that we add a PCI device, and not a network bridge.

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
9 years agoimplement API/CLI to get pending changes
Dietmar Maurer [Fri, 21 Nov 2014 10:25:45 +0000 (11:25 +0100)]
implement API/CLI to get pending changes

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
9 years agovmconfig_hotplug_pending: improve hotplug error handling
Dietmar Maurer [Wed, 19 Nov 2014 11:59:02 +0000 (12:59 +0100)]
vmconfig_hotplug_pending: improve hotplug error handling

Simplify code, and allow to partially apply pending changes using
a new $selection parameter.

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
9 years agocode cleanup, delete trailing white space
Dietmar Maurer [Wed, 19 Nov 2014 09:43:42 +0000 (10:43 +0100)]
code cleanup, delete trailing white space

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
9 years agovmconfig_cleanup_pending: new method to clenup setting in [PENDING]
Dietmar Maurer [Wed, 19 Nov 2014 08:20:09 +0000 (09:20 +0100)]
vmconfig_cleanup_pending: new method to clenup setting in [PENDING]

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
9 years agovmconfig_hotplug_pending: implement tablet hotplug
Dietmar Maurer [Tue, 18 Nov 2014 12:29:21 +0000 (13:29 +0100)]
vmconfig_hotplug_pending: implement tablet hotplug

Remove special case: now, we only hotplug if 'hotplug' is enabled.

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
9 years agoimplement trivial hotplug
Dietmar Maurer [Mon, 17 Nov 2014 08:50:31 +0000 (09:50 +0100)]
implement trivial hotplug

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
9 years agofix balloon consistency check (consider pending changes)
Dietmar Maurer [Mon, 17 Nov 2014 08:37:11 +0000 (09:37 +0100)]
fix balloon consistency check (consider pending changes)

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
9 years agovm_start: apply pending changes
Dietmar Maurer [Mon, 17 Nov 2014 06:08:44 +0000 (07:08 +0100)]
vm_start: apply pending changes

I move related helper methods into PVE::QemuServer.

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
9 years agoimplement vmconfig_apply_pending for stopped VM
Dietmar Maurer [Fri, 14 Nov 2014 10:45:14 +0000 (11:45 +0100)]
implement vmconfig_apply_pending for stopped VM

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
9 years agoupdate_vm_api: always write into pending section
Dietmar Maurer [Fri, 14 Nov 2014 09:33:27 +0000 (10:33 +0100)]
update_vm_api: always write into pending section

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
9 years agowrite_vm_config : write pending change
Dietmar Maurer [Tue, 11 Nov 2014 06:40:07 +0000 (07:40 +0100)]
write_vm_config : write pending change

example:

$conf->{pending}->{virtio1}
$conf->{pending}->{delete} = "net0,net1"

[PENDING]
virtio1: ...
delete: net0,net1

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
9 years agoparse_vm_config: only allow 'delete' inside [PENDING]
Dietmar Maurer [Tue, 11 Nov 2014 06:01:01 +0000 (07:01 +0100)]
parse_vm_config: only allow 'delete' inside [PENDING]

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
9 years agoparse_vm_config: correctly handle $descr
Dietmar Maurer [Tue, 11 Nov 2014 05:52:10 +0000 (06:52 +0100)]
parse_vm_config: correctly handle $descr

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
9 years agoparse_vm_config : parse pending changes
Alexandre Derumier [Thu, 30 Oct 2014 12:40:22 +0000 (13:40 +0100)]
parse_vm_config : parse pending changes

example:

[PENDING]
virtio1:...
delete:net0,net1

$conf->{pending}->{virtio1}
$conf->{pending}->{del}->{net0}
$conf->{pending}->{del}->{net1}

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
9 years agobump version to 3.3-7
Dietmar Maurer [Mon, 22 Dec 2014 16:24:45 +0000 (17:24 +0100)]
bump version to 3.3-7

9 years agothis commit:
Stefan Priebe [Sun, 21 Dec 2014 20:04:13 +0000 (21:04 +0100)]
this commit:

commit 1c0c1c17b020710fd841c399c1e147ccc10007cd
Author: Wolfgang Link <wolfgang@linksystems.org>
Date:   Wed Nov 26 11:11:40 2014 +0100

    shutdown by Qemu Guest Agent if the agent flag in the config is set

    Important: "guest-shutdown" returns only by error a message.

Signed-off-by: Wolfgang Link <wolfgang@linksystems.org>
breaks live migration as it always tries to load the vm config - even in case of $nocheck. Also it double loads the config ($conf && $config)
Signed-off-by: Stefan Priebe <s.priebe@profihost.ag>
9 years agowhite space cleanups
Dietmar Maurer [Wed, 10 Dec 2014 05:40:21 +0000 (06:40 +0100)]
white space cleanups