]> git.proxmox.com Git - qemu-server.git/log
qemu-server.git
8 years agoimprove bash completion
Dietmar Maurer [Mon, 7 Sep 2015 06:13:07 +0000 (08:13 +0200)]
improve bash completion

8 years agoimplement a few bash completion helpers
Dietmar Maurer [Sun, 6 Sep 2015 14:01:59 +0000 (16:01 +0200)]
implement a few bash completion helpers

8 years agocovert qm into a PVE::CLI class, enable bash completions
Dietmar Maurer [Sun, 6 Sep 2015 13:44:53 +0000 (15:44 +0200)]
covert qm into a PVE::CLI class, enable bash completions

8 years agoVM protection mode added
Alen Grizonic [Thu, 3 Sep 2015 13:35:37 +0000 (15:35 +0200)]
VM protection mode added

used to prevent an unintended virtual machine remove operation

v3 changes:

- changed man page message
- removed protection parameter (where not needed)

8 years agofix move_disk on RBD
Wolfgang Link [Thu, 3 Sep 2015 11:12:13 +0000 (13:12 +0200)]
fix move_disk on RBD

activating the disk when use RBD is necessary to have the given path.

8 years agocleanup previous patch
Dietmar Maurer [Fri, 28 Aug 2015 16:16:08 +0000 (18:16 +0200)]
cleanup previous patch

8 years agoHA resources check before destroying vm
Alen Grizonic [Fri, 28 Aug 2015 11:26:40 +0000 (13:26 +0200)]
HA resources check before destroying vm

8 years agobump version to 4.0-20
Dietmar Maurer [Fri, 28 Aug 2015 09:40:01 +0000 (11:40 +0200)]
bump version to 4.0-20

8 years agofix: start kvm with os type other
Dietmar Maurer [Fri, 28 Aug 2015 09:10:44 +0000 (11:10 +0200)]
fix: start kvm with os type other

this check is necessary, because we do not set ostype in qemu config when type is other

Seem that x2apic is now enabled by default when kvm is used

since this commit
http://git.qemu.org/?p=qemu.git;a=commit;h=ef02ef5f4536dba090b12360a6c862ef0e57e3bc

So we just need to disable it for solaris

8 years agofix 'uninitialized value in concat' due to unnamed VM
Thomas Lamprecht [Thu, 27 Aug 2015 12:56:36 +0000 (14:56 +0200)]
fix 'uninitialized value in concat' due to unnamed VM

This is an minor fix which let's you start the spice console on an
unnamed VM without getting the 'Use of uninitialized value in
concatenation' error.
Also changes the trailing comma from the $conf definition lineto an
semicolon.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
8 years agobump version to 4.0-19
Dietmar Maurer [Tue, 25 Aug 2015 04:50:20 +0000 (06:50 +0200)]
bump version to 4.0-19

8 years agoclone vm firewall config file
Alen Grizonic [Fri, 21 Aug 2015 15:13:58 +0000 (17:13 +0200)]
clone vm firewall config file

Signed-off-by: Alen Grizonic <a.grizonic@proxmox.com>
8 years agobump version to 4.0-18
Dietmar Maurer [Thu, 20 Aug 2015 10:31:07 +0000 (12:31 +0200)]
bump version to 4.0-18

8 years agofix bug #688: if vm is not owner of this disk remove from config
Wolfgang Link [Thu, 20 Aug 2015 08:34:59 +0000 (10:34 +0200)]
fix bug #688: if vm is not owner of this disk remove from config

8 years agofix bug #688: prevent copy unused disks in the config.
Wolfgang Link [Thu, 20 Aug 2015 07:14:34 +0000 (09:14 +0200)]
fix bug #688: prevent copy unused disks in the config.

8 years agobump version to 4.0-17
Dietmar Maurer [Wed, 19 Aug 2015 13:45:09 +0000 (15:45 +0200)]
bump version to 4.0-17

8 years agofix bug #603: vmid.fw file not deleted
Alen Grizonic [Wed, 19 Aug 2015 08:33:05 +0000 (10:33 +0200)]
fix bug #603: vmid.fw file not deleted

Signed-off-by: Alen Grizonic <a.grizonic@proxmox.com>
8 years agofix bug #517: improve error message
Wolfgang Link [Mon, 17 Aug 2015 12:27:11 +0000 (14:27 +0200)]
fix bug #517: improve error message

Get a understandble message,
if someone try to increase a qcow2 image where one or more snapshots reside

8 years agoadapt /config and /pending API calls to force-delete
Wolfgang Bumiller [Tue, 18 Aug 2015 07:36:09 +0000 (09:36 +0200)]
adapt /config and /pending API calls to force-delete

8 years agobump version to 4.0-16
Dietmar Maurer [Fri, 14 Aug 2015 06:09:56 +0000 (08:09 +0200)]
bump version to 4.0-16

8 years agoremove vm access permissions after destroy
Alen Grizonic [Thu, 13 Aug 2015 10:21:36 +0000 (12:21 +0200)]
remove vm access permissions after destroy

removed duplicated code which was used in
PVE::AccessControl -> now in PVE::API2::Qemu

Signed-off-by: Alen Grizonic <a.grizonic@proxmox.com>
8 years agomerge delete_drive into try_deallocate_drive
Wolfgang Bumiller [Thu, 13 Aug 2015 09:15:56 +0000 (11:15 +0200)]
merge delete_drive into try_deallocate_drive

It used to be private and is only used once.

8 years agopending-delete: remember force-deletes
Wolfgang Bumiller [Wed, 12 Aug 2015 11:38:36 +0000 (13:38 +0200)]
pending-delete: remember force-deletes

The -force flag didn't have any effect since the pending
changes didn't carry over the the flag.
Now forced deletes have an exclamation mark prepended to the
option name.

8 years agocorrectly handle empty description in pending section
Dietmar Maurer [Tue, 11 Aug 2015 09:24:41 +0000 (11:24 +0200)]
correctly handle empty description in pending section

So that we can delete descriptions with

 qm set <vmid> --descr ''

8 years agobump version to 4.0-15
Dietmar Maurer [Thu, 30 Jul 2015 09:33:14 +0000 (11:33 +0200)]
bump version to 4.0-15

8 years agoFixed wrong UUID in Qemu VZDump backup
Thomas Lamprecht [Wed, 29 Jul 2015 09:00:35 +0000 (11:00 +0200)]
Fixed wrong UUID in Qemu VZDump backup

As the format of the uuid which the qemu monitor returned changed,
it is here adapted to fix errors with not matching uuids.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
8 years agoadd memory_unplug support V2
Alexandre Derumier [Wed, 29 Jul 2015 03:12:12 +0000 (05:12 +0200)]
add memory_unplug support V2

qemu 2.4 feature

changelog: rebase on last git

Note that currently linux guest don't support unplug of dimm when it'sused by kernel memory.
They are some tunning to do with memory zone movable.
http://events.linuxfoundation.org/sites/events/files/lcjp13_chen.pdf

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
8 years agobump version to 4.0-14
Dietmar Maurer [Mon, 27 Jul 2015 11:24:56 +0000 (13:24 +0200)]
bump version to 4.0-14

8 years agofixed bug 662, wrong subroutine for parsing startup order
Thomas Lamprecht [Thu, 16 Jul 2015 11:46:27 +0000 (13:46 +0200)]
fixed bug 662, wrong subroutine for parsing startup order

Changed from old, now missing, subroutine parse_startup() to new
pve_parse_startup_order() in qemu-server and pve-manager

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
8 years agocpuflags : don't enforce with tcg mode
Alexandre Derumier [Mon, 20 Jul 2015 10:30:58 +0000 (12:30 +0200)]
cpuflags : don't enforce with tcg mode

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
8 years agocpuflags : remove enforce for cpumodel=host
Alexandre Derumier [Wed, 8 Jul 2015 08:49:07 +0000 (10:49 +0200)]
cpuflags : remove enforce for cpumodel=host

Currently enforce with cpumodel=host on amd cpus don't work,
because amd cpus have unsupported flags in qemu.

This is a protection, and this is good.

but cpumodel host should be never use by users for production (only for testing).
For production and stability, users need to choose a true cpu model which filter
the supported cpuflags by qemu.

So I think we can remove the enforce for host model as for testing it's ok.

warning: host doesn't support requested feature: CPUID.80000001H:EDX [bit 0]
warning: host doesn't support requested feature: CPUID.80000001H:EDX [bit 1]
warning: host doesn't support requested feature: CPUID.80000001H:EDX [bit 2]
warning: host doesn't support requested feature: CPUID.80000001H:EDX [bit 3]
warning: host doesn't support requested feature: CPUID.80000001H:EDX [bit 4]
warning: host doesn't support requested feature: CPUID.80000001H:EDX [bit 5]
warning: host doesn't support requested feature: CPUID.80000001H:EDX [bit 6]
warning: host doesn't support requested feature: CPUID.80000001H:EDX [bit 7]
warning: host doesn't support requested feature: CPUID.80000001H:EDX [bit 8]
warning: host doesn't support requested feature: CPUID.80000001H:EDX [bit 9]
warning: host doesn't support requested feature: CPUID.80000001H:EDX [bit 12]
warning: host doesn't support requested feature: CPUID.80000001H:EDX [bit 13]
warning: host doesn't support requested feature: CPUID.80000001H:EDX [bit 14]
warning: host doesn't support requested feature: CPUID.80000001H:EDX [bit 15]
warning: host doesn't support requested feature: CPUID.80000001H:EDX [bit 16]
warning: host doesn't support requested feature: CPUID.80000001H:EDX [bit 17]
warning: host doesn't support requested feature: CPUID.80000001H:EDX [bit 23]
warning: host doesn't support requested feature: CPUID.80000001H:EDX [bit 24]
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
8 years agocpuflags : remove -rdtscp for Opteron cpu models
Alexandre Derumier [Wed, 8 Jul 2015 08:49:06 +0000 (10:49 +0200)]
cpuflags : remove -rdtscp for Opteron cpu models

rdtscp is not supported by qemu and with enforce it's not starting
warning: host doesn't support requested feature: CPUID.80000001H:EDX.rdtscp [bit 27]

from to qemu wiki
http://wiki.qemu.org/Features/CPUModels#Disabling_features_that_were_always_disabled_on_KVM
"Fact: currently libvirt runs CPU models having rdtscp without the "enforce" flag, and rdtscp is silently disabled
Consequence: libvirt SHOULD use something like "-cpu Opteron_G5,-rdtscp",
especially when it starts using (or emulating) enforce mode
This will require a solution on libvirt side. QEMU will just provide the mechanisms to report CPU model information
and check what the host and QEMU supports, but the decision to disable rdtscp to be able
to run Opteron_G[2345] needs to be taken by libvirt."

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
8 years agovzdump : abord backup if disk have iothread enabled.
Alexandre Derumier [Tue, 21 Jul 2015 13:14:36 +0000 (15:14 +0200)]
vzdump : abord backup if disk have iothread enabled.

Currently backup don't work with iothread feature, and crash qemu

For now, abord the backup if one of the vm drives have iothread enabled until backup code is fixed.

Upstream qemu backup cde already support iothread.
http://git.qemu.org/?p=qemu.git;a=commit;h=761731b1805f6ef64eb615e5b82a0801db3cde78

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
8 years agobump version to 4.0-13
Dietmar Maurer [Wed, 1 Jul 2015 04:41:30 +0000 (06:41 +0200)]
bump version to 4.0-13

8 years agoqemu-server : drive-mirror : allow to interrupts at the scanning bitmap phase
Alexandre Derumier [Wed, 1 Jul 2015 04:01:42 +0000 (06:01 +0200)]
qemu-server : drive-mirror : allow to interrupts at the scanning bitmap phase

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
8 years agoqemuserver : vm_status : add extended stats (disks, nics, memory) V3
Alexandre Derumier [Tue, 16 Jun 2015 10:44:49 +0000 (12:44 +0200)]
qemuserver : vm_status : add extended stats (disks, nics, memory) V3

Add extended stats results for each nics,disks and memory on full stats mode only.

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
8 years agobump version to 4.0-12
Dietmar Maurer [Wed, 10 Jun 2015 08:33:23 +0000 (10:33 +0200)]
bump version to 4.0-12

8 years agoremove outdated host_device format
Dietmar Maurer [Wed, 10 Jun 2015 08:29:30 +0000 (10:29 +0200)]
remove outdated host_device format

Newer qemu does not need it.

https://lists.nongnu.org/archive/html/qemu-devel/2011-06/msg02790.html

8 years agoparse_drive: do not overwrite configured format
Dietmar Maurer [Wed, 10 Jun 2015 08:22:42 +0000 (10:22 +0200)]
parse_drive: do not overwrite configured format

Instead, we use qemu_img_format() to query the format when we need it.
We also pass the format to qemu in print_drive_full to avoid qemu warnings.

8 years agofix aio O_DIRECT check for cdrom drives
Wolfgang Bumiller [Tue, 2 Jun 2015 14:04:26 +0000 (16:04 +0200)]
fix aio O_DIRECT check for cdrom drives

Only non-cdrom drives default to cache=none, so the check
for whether to default to aio=native needs to take the same
condition into account.
I combined them close together to make their relation more
visible.

8 years agocpulimit: use number instead of integer
Dietmar Maurer [Tue, 2 Jun 2015 14:03:25 +0000 (16:03 +0200)]
cpulimit: use number instead of integer

8 years agoimplement cpuunit with cgroups
Alexandre Derumier [Tue, 2 Jun 2015 06:06:45 +0000 (08:06 +0200)]
implement cpuunit with cgroups

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
8 years agobump version to 4.0-11
Dietmar Maurer [Mon, 1 Jun 2015 10:36:31 +0000 (12:36 +0200)]
bump version to 4.0-11

8 years agouse noawait triggers for pve-api-updates
Dietmar Maurer [Mon, 1 Jun 2015 10:35:16 +0000 (12:35 +0200)]
use noawait triggers for pve-api-updates

8 years agobump version to 4.0-10
Dietmar Maurer [Fri, 29 May 2015 06:24:44 +0000 (08:24 +0200)]
bump version to 4.0-10

8 years agocode cleanup
Dietmar Maurer [Fri, 29 May 2015 06:23:13 +0000 (08:23 +0200)]
code cleanup

8 years agoremove old openvz fairscheduler code
Alexandre Derumier [Thu, 28 May 2015 13:59:23 +0000 (15:59 +0200)]
remove old openvz fairscheduler code

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
8 years agoimplement hotplug for cpuunits
Alexandre Derumier [Thu, 28 May 2015 13:59:22 +0000 (15:59 +0200)]
implement hotplug for cpuunits

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
8 years agoimplement cgroups through systemd-run
Alexandre Derumier [Thu, 28 May 2015 13:59:21 +0000 (15:59 +0200)]
implement cgroups through systemd-run

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
8 years agolocalhost instead of 127.0.0.1 makes ipv6 life easier
Wolfgang Bumiller [Tue, 26 May 2015 14:08:53 +0000 (16:08 +0200)]
localhost instead of 127.0.0.1 makes ipv6 life easier

8 years agomigration: put the source address in brackets
Wolfgang Bumiller [Thu, 21 May 2015 13:19:35 +0000 (15:19 +0200)]
migration: put the source address in brackets

Always adding brackets around the address works. They're required for
ipv6 and qemu also accepts them for ipv4 and hostnames.

8 years agopass port family to next_*_port() calls
Wolfgang Bumiller [Tue, 12 May 2015 10:14:03 +0000 (12:14 +0200)]
pass port family to next_*_port() calls

8 years agobump version to 4.0-9
Dietmar Maurer [Tue, 12 May 2015 06:19:56 +0000 (08:19 +0200)]
bump version to 4.0-9

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 agoSwitch from netcat-traditional to netcat6
Wolfgang Bumiller [Mon, 11 May 2015 12:29:19 +0000 (14:29 +0200)]
Switch from netcat-traditional to netcat6

netcat6 supports both ipv4 and ipv6, contrary to netcat-traditional.
Additionally rather than using the alternatives-managed /bin/nc path,
/bin/nc6 is now used which always points to the netcat6 implementation,
allowing us to drop the netcat-openbsd conflict entry.

9 years agoremove running from Storage and check it in QemuServer
Wolfgang Link [Wed, 6 May 2015 07:57:34 +0000 (09:57 +0200)]
remove running from Storage and check it in QemuServer

It is better to check if a VM is running in QemuServer then in Storage.
for the Storage there is no difference if it is running or not.

Signed-off-by: Wolfgang Link <w.link@proxmox.com>
9 years agobump version to 4.0-8
Dietmar Maurer [Tue, 5 May 2015 12:58:16 +0000 (14:58 +0200)]
bump version to 4.0-8

9 years agotrigger pve-api-updates event
Dietmar Maurer [Tue, 5 May 2015 12:57:00 +0000 (14:57 +0200)]
trigger pve-api-updates event

9 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 4.0-7
Dietmar Maurer [Wed, 22 Apr 2015 08:04:20 +0000 (10:04 +0200)]
bump version to 4.0-7

9 years agouse new standard option 'pve-startup-order'
Dietmar Maurer [Wed, 22 Apr 2015 08:02:33 +0000 (10:02 +0200)]
use new standard option 'pve-startup-order'

9 years agobump version to 4.0-6
Dietmar Maurer [Fri, 17 Apr 2015 11:11:48 +0000 (13:11 +0200)]
bump version to 4.0-6

9 years agofix ha resource names
Dietmar Maurer [Fri, 17 Apr 2015 11:10:32 +0000 (13:10 +0200)]
fix ha resource names

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 agoimplement virtio-scsi multiqueues
Alexandre Derumier [Thu, 2 Apr 2015 04:10:54 +0000 (06:10 +0200)]
implement virtio-scsi multiqueues

Signed-off-by: Alexandre Derumier <aderumier@odiso.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 agoforbid hot-unplug of virtioscsi + iothread drive
Alexandre Derumier [Wed, 1 Apr 2015 03:11:44 +0000 (05:11 +0200)]
forbid hot-unplug of virtioscsi + iothread drive

qemu (<=2.3) currently segfault on drive_del

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
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