]> git.proxmox.com Git - qemu-server.git/log
qemu-server.git
9 years agoadd virtio-scsi iothread support
Alexandre Derumier [Wed, 1 Apr 2015 03:11:43 +0000 (05:11 +0200)]
add virtio-scsi iothread support

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
9 years agobump version to 4.0-5
Dietmar Maurer [Fri, 27 Mar 2015 11:48:59 +0000 (12:48 +0100)]
bump version to 4.0-5

9 years agodepend on pve-ha-manager
Dietmar Maurer [Fri, 27 Mar 2015 11:47:56 +0000 (12:47 +0100)]
depend on pve-ha-manager

9 years agodelete trailing white spaces
Dietmar Maurer [Fri, 27 Mar 2015 05:16:24 +0000 (06:16 +0100)]
delete trailing white spaces

9 years agocleanup: do not use regex
Dietmar Maurer [Fri, 27 Mar 2015 05:15:01 +0000 (06:15 +0100)]
cleanup: do not use regex

9 years agonew scsihw_infos sub : code factorization
Alexandre Derumier [Fri, 27 Mar 2015 02:41:54 +0000 (03:41 +0100)]
new scsihw_infos sub : code factorization

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
9 years agoimplement virtio-scsi-single hotplug
Alexandre Derumier [Fri, 27 Mar 2015 02:41:53 +0000 (03:41 +0100)]
implement virtio-scsi-single hotplug

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
9 years agoimplement virtio-scsi-single
Alexandre Derumier [Fri, 27 Mar 2015 02:41:52 +0000 (03:41 +0100)]
implement virtio-scsi-single

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
9 years agoimplement virtio iothread hotplug
Alexandre Derumier [Thu, 19 Mar 2015 10:06:12 +0000 (11:06 +0100)]
implement virtio iothread hotplug

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
9 years agoadd virtio iothread option
Alexandre Derumier [Thu, 19 Mar 2015 10:06:11 +0000 (11:06 +0100)]
add virtio iothread option

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
9 years agounplug scsi controller if no more disk exist
Alexandre Derumier [Wed, 18 Mar 2015 10:08:04 +0000 (11:08 +0100)]
unplug scsi controller if no more disk exist

we need to remove scsi controller, because live migration will crash,

as on migration target node, we'll start the vm without controller if no disk exist

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
9 years agoadd IvyBridge cpu model (qemu >= 2.3)
Alexandre Derumier [Wed, 18 Mar 2015 10:27:44 +0000 (11:27 +0100)]
add IvyBridge cpu model (qemu >= 2.3)

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
9 years agoadd pci bridges by default for qemu > 2.3
Alexandre Derumier [Tue, 17 Mar 2015 08:47:10 +0000 (09:47 +0100)]
add pci bridges by default for qemu > 2.3

pci bridge are not hot-unplugglable,
which can give us live migration problem,
if we hot-unplug a device on pcibridge 1 or 2, we don't create the pci bridge on target guest

and pci bridge hotplug is not working on all os (windows for example).

So it's better to always add them at startup.

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
9 years agobump version to 4.0-4
Dietmar Maurer [Tue, 17 Mar 2015 07:59:16 +0000 (08:59 +0100)]
bump version to 4.0-4

9 years agoenable cpu enforce
Alexandre Derumier [Mon, 16 Mar 2015 04:57:47 +0000 (05:57 +0100)]
enable cpu enforce

It wasn't working with 2.6.32,
now that 3.10 kernel is the default, we can enable it.

It's help to be sure that all cpu flags are supported by host && qemu,
to be sure that nothing break

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
9 years agoenable kvm_pv_eoi cpuflag
Alexandre Derumier [Mon, 16 Mar 2015 04:57:46 +0000 (05:57 +0100)]
enable kvm_pv_eoi cpuflag

Paravirtualized End-of-Interrupt Indication (PV-EOI)
Hosts and guests require two VM exits (context switches from a VM to a Hypervisor) for each interrupt:
one to inject the interrupt, and another to signal the end of the interrupt.

With pv_eoi , they can negotiate a paravirtualized end-of-interrupt feature and only require one switch per interrupt.
Number of exits is reduced by half for interrupt-intensive workloads,
such as incoming network traffic with a virtio network device.
This leads to significant reduction in host CPU utilization for such workloads.

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
9 years agoadd kvm_pv_unhalt cpu flag
Alexandre Derumier [Mon, 16 Mar 2015 04:57:45 +0000 (05:57 +0100)]
add kvm_pv_unhalt cpu flag

require pvticketlocks from kernel 3.12 (backported in redhat 3.10 kernel)

see:
http://lwn.net/Articles/493402/

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
9 years agoenable hv_time hyperv-v enlightment
Alexandre Derumier [Mon, 16 Mar 2015 04:57:44 +0000 (05:57 +0100)]
enable hv_time hyperv-v enlightment

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
9 years agoenable hv_vapic hyperv enlightment
Alexandre Derumier [Mon, 16 Mar 2015 04:57:43 +0000 (05:57 +0100)]
enable hv_vapic hyperv enlightment

works fine now with rhel 7.1 kernel
https://bugzilla.redhat.com/show_bug.cgi?id=1091818

(It's wasn't working on newer intel xeon)

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
9 years agohv_spinlocks : use 0x1fff instead 0xffff
Alexandre Derumier [Mon, 16 Mar 2015 04:57:42 +0000 (05:57 +0100)]
hv_spinlocks : use 0x1fff instead 0xffff

redhat use 0x1fff (8191)  vs 0xffff (65535)
This is the number of retries of spinlocks

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
9 years agoadd qemu_machine_feature_enabled sub
Alexandre Derumier [Mon, 16 Mar 2015 04:57:41 +0000 (05:57 +0100)]
add qemu_machine_feature_enabled sub

This sub compare current machine type to a specific version,
and return 1 if machinetype is bigger or equal to version

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
9 years agoupdate changelog
Dietmar Maurer [Mon, 9 Mar 2015 07:31:13 +0000 (08:31 +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 4.0-3
Dietmar Maurer [Mon, 9 Mar 2015 07:23:04 +0000 (08:23 +0100)]
bump version to 4.0-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:14:03 +0000 (08:14 +0100)]
Revert "balloon: use qom-get for guest balloon statistics V5"

This reverts commit 0ea19b9cf7e92e5f4259caff80454a215b6b7189.

9 years agobump version to 4.0-2
Dietmar Maurer [Fri, 6 Mar 2015 09:22:03 +0000 (10:22 +0100)]
bump version to 4.0-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 agouse new PVE::Cluster::vm_is_ha_managed
Dietmar Maurer [Mon, 2 Mar 2015 09:31:46 +0000 (10:31 +0100)]
use new PVE::Cluster::vm_is_ha_managed

9 years agoremove unnecessary init.d, postint, postrm and qmupdate scripts
Dietmar Maurer [Fri, 27 Feb 2015 15:01:51 +0000 (16:01 +0100)]
remove unnecessary init.d, postint, postrm and qmupdate scripts

KVM modules are autoloaded with recent udev, and vhost_net can
be loaded with modules-load.d configuration

9 years agoupdates for debian jessie
Dietmar Maurer [Fri, 27 Feb 2015 12:01:18 +0000 (13:01 +0100)]
updates for debian jessie

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>