]> git.proxmox.com Git - qemu-server.git/log
qemu-server.git
9 years agowhite space cleanups
Dietmar Maurer [Thu, 4 Dec 2014 12:07:59 +0000 (13:07 +0100)]
white space cleanups

9 years agoadd custom numa topology support
Alexandre Derumier [Wed, 3 Dec 2014 15:23:48 +0000 (16:23 +0100)]
add custom numa topology support

numaX: cpus=<id[-id],memory=<mb>[[,hostnodes=<id[-id]>][,policy=<preferred|bind|interleave>]]

example:
-------
sockets:4
cores:2
memory:4096
numa: 1
numa0: cpus=0-1,memory=1024,hostnodes=0-1,policy=interleave
numa1: cpus=2-3,memory=3072,hostnodes=2,policy=bind

qemu command line
-----------------
-object memory-backend-ram,size=1024M,policy=interleave,host-nodes=0-1,id=ram-node0
-numa node,nodeid=0,cpus=0-1,memdev=ram-node0

-object memory-backend-ram,size=3072M,policy=bind,host-nodes=2,id=ram-node1
-numa node,nodeid=1,cpus=2-3,memdev=ram-node1

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
9 years agoadd numa options v3
Alexandre Derumier [Wed, 3 Dec 2014 15:23:47 +0000 (16:23 +0100)]
add numa options v3

This enable numa support inside the guest, and share the memory and cores across the sockets numa nodes.

numa: 0|1

example:
-------
sockets:2
cores:2
memory:4096
numa: 1

qemu command line
-----------------
-object memory-backend-ram,size=2048,id=ram-node0
-numa node,nodeid=0,cpus=0-1,memdev=ram-node0
-object memory-backend-ram,size=2048,id=ram-node1
-numa node,nodeid=1,cpus=2-3,memdev=ram-node1

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
9 years agobump version to 3.3-6
Dietmar Maurer [Thu, 4 Dec 2014 11:35:10 +0000 (12:35 +0100)]
bump version to 3.3-6

9 years agoFix in PVE::QemuServer::snapshot_create
Wolfgang Link [Wed, 3 Dec 2014 14:40:33 +0000 (15:40 +0100)]
Fix in PVE::QemuServer::snapshot_create

remove the freezefs flag.
If Qemu Guest Agent flag is set in config the vm filesystem will always be frozen,
unless we save RAM.

also remove param freezefs in PVE::API2 snapshot,
because there is no use for it.

Signed-off-by: Wolfgang Link <wolfgang@linksystems.org>
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
9 years agosnapshot_create: fix bug from prev. commit, consider $freezefs parameter
Dietmar Maurer [Tue, 2 Dec 2014 12:42:51 +0000 (13:42 +0100)]
snapshot_create: fix bug from prev. commit, consider $freezefs parameter

9 years agosnapshot_create: use guest-fsfreeze-freeze if possible
Wolfgang Link [Tue, 2 Dec 2014 10:42:17 +0000 (11:42 +0100)]
snapshot_create: use guest-fsfreeze-freeze if possible

Signed-off-by: Wolfgang Link <wolfgang@linksystems.org>
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
9 years agoqmpclient: use guest-sync-delimited
Dietmar Maurer [Tue, 2 Dec 2014 12:03:55 +0000 (13:03 +0100)]
qmpclient: use guest-sync-delimited

9 years agobump version to 3.3-5
Dietmar Maurer [Mon, 1 Dec 2014 08:31:43 +0000 (09:31 +0100)]
bump version to 3.3-5

9 years agodrive-mirror: avoid division by zero bug
Dietmar Maurer [Mon, 1 Dec 2014 08:27:01 +0000 (09:27 +0100)]
drive-mirror: avoid division by zero bug

9 years agoqmpclient: fix mux_input regex
Dietmar Maurer [Fri, 28 Nov 2014 09:42:12 +0000 (10:42 +0100)]
qmpclient: fix mux_input regex

9 years agoqmpclient: improve error handling
Dietmar Maurer [Fri, 28 Nov 2014 09:32:40 +0000 (10:32 +0100)]
qmpclient: improve error handling

9 years agosimplify code by using vm_qmp_command() directly
Dietmar Maurer [Thu, 27 Nov 2014 12:29:51 +0000 (13:29 +0100)]
simplify code by using vm_qmp_command() directly

9 years agoqmpclient: code cleanup, execute qga and qmp in parallel
Dietmar Maurer [Thu, 27 Nov 2014 10:56:52 +0000 (11:56 +0100)]
qmpclient: code cleanup, execute qga and qmp in parallel

9 years agoshutdown by Qemu Guest Agent if the agent flag in the config is set
Wolfgang Link [Wed, 26 Nov 2014 10:11:40 +0000 (11:11 +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>
9 years agoqmpclient: now if the QMP command starts with guest-+ , it will bind dynamicly to...
Wolfgang Link [Wed, 26 Nov 2014 10:11:39 +0000 (11:11 +0100)]
qmpclient: now if the QMP command starts with guest-+ , it will bind dynamicly to the VMID.qga socket

Signed-off-by: Wolfgang Link <wolfgang@linksystems.org>
9 years agoqmpclient-qga : mux_input : parse qga result
Alexandre Derumier [Sun, 17 Mar 2013 15:09:07 +0000 (16:09 +0100)]
qmpclient-qga : mux_input : parse qga result

result sample:

first json is guest-sync result, second json is command result

{ "return": 123456}\n{"return": {}}

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
9 years agoqmpclient-qga : build qga command
Alexandre Derumier [Sun, 17 Mar 2013 15:09:06 +0000 (16:09 +0100)]
qmpclient-qga : build qga command

example of command:

first json is guest-sync to sync and flush the client, second json is the command

{ "execute": "guest-sync", "arguments": { "id": 123456 } }{"execute":"guest-ping"}

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
9 years agoqmpclient-qga : do not sent qmp_capabilities for qga
Alexandre Derumier [Sun, 17 Mar 2013 15:09:05 +0000 (16:09 +0100)]
qmpclient-qga : do not sent qmp_capabilities for qga

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
9 years agoqmpclient-qga : cmdid : use integer instead string
Alexandre Derumier [Sun, 17 Mar 2013 15:09:04 +0000 (16:09 +0100)]
qmpclient-qga : cmdid : use integer instead string

qga client use only integer as id

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
9 years agoqmpclient-qga : add qga param to qmp_socket
Alexandre Derumier [Sun, 17 Mar 2013 15:09:03 +0000 (16:09 +0100)]
qmpclient-qga : add qga param to qmp_socket

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
9 years agoqmpclient-qga : add qga option at object creation
Alexandre Derumier [Sun, 17 Mar 2013 15:09:02 +0000 (16:09 +0100)]
qmpclient-qga : add qga option at object creation

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
9 years agoadd vm_qga_command
Alexandre Derumier [Sun, 17 Mar 2013 15:09:01 +0000 (16:09 +0100)]
add vm_qga_command

and reuse vm_qmp_command && qmp_socket with $qga param

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
9 years agocode cleanups
Dietmar Maurer [Fri, 21 Nov 2014 11:31:56 +0000 (12:31 +0100)]
code cleanups

9 years agosavevm-end : wait that savevm is finished
Alexandre Derumier [Thu, 20 Nov 2014 13:54:10 +0000 (14:54 +0100)]
savevm-end : wait that savevm is finished

savevm-end is async, we need to wait that savevm is finished, before continue.

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
9 years agoserial: allow to pass arbitrary device names
Dietmar Maurer [Mon, 1 Dec 2014 08:47:36 +0000 (09:47 +0100)]
serial: allow to pass arbitrary device names

10 years agoAdd check if host has enough real CPUs for starting VM
Wolfgang Link [Mon, 17 Nov 2014 08:52:30 +0000 (09:52 +0100)]
Add check if host has enough real CPUs for starting VM

To prevent a Qemu CPU emualtion!

Signed-off-by: Wolfgang Link <wolfgang@linksystems.org>
10 years agoqemu_drive_mirror: cleanup, avoid code duplication
Dietmar Maurer [Mon, 10 Nov 2014 07:18:39 +0000 (08:18 +0100)]
qemu_drive_mirror: cleanup, avoid code duplication

10 years agoqemu_drive_mirror: raise exception if we cannot parse $dst_volid
Dietmar Maurer [Mon, 10 Nov 2014 06:55:09 +0000 (07:55 +0100)]
qemu_drive_mirror: raise exception if we cannot parse $dst_volid

10 years agobump version to 3.3-3
Dietmar Maurer [Mon, 10 Nov 2014 05:32:31 +0000 (06:32 +0100)]
bump version to 3.3-3

10 years agodelete trailing whitespace
Dietmar Maurer [Mon, 10 Nov 2014 05:31:08 +0000 (06:31 +0100)]
delete trailing whitespace

10 years agoblock-job-complete : retry if block job cannot be complete
Alexandre Derumier [Sun, 9 Nov 2014 14:13:01 +0000 (15:13 +0100)]
block-job-complete : retry if block job cannot be complete

Even if we check the busy flag, we can have sometime race condition if new write
are coming between the query-block-job and the block-job-complete.

block-job-complete throw an error "The active block job for device '%(name)' cannot be completed"

we just need to retry in this case.

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
10 years agobump version to 3.3-2
Dietmar Maurer [Fri, 7 Nov 2014 14:45:56 +0000 (15:45 +0100)]
bump version to 3.3-2

10 years agocleanup: do not entry wait loop if block-job-cancel() fails.
Dietmar Maurer [Fri, 7 Nov 2014 14:31:56 +0000 (15:31 +0100)]
cleanup: do not entry wait loop if block-job-cancel() fails.

10 years agodrive-mirror : wait that busy eq false before block-job-complete
Alexandre Derumier [Fri, 7 Nov 2014 09:10:48 +0000 (10:10 +0100)]
drive-mirror : wait that busy eq false before block-job-complete

When the drive-mirror is at 100%, and write occurs, the busy flag can change from false->true

- 100% no new writes

transferred: 1073741824 bytes remaining: 0 bytes total: 1073741824 bytes progression: 100.00 % busy: false
transferred: 1073741824 bytes remaining: 0 bytes total: 1073741824 bytes progression: 100.00 % busy: false
transferred: 1073741824 bytes remaining: 0 bytes total: 1073741824 bytes progression: 100.00 % busy: false

- 100% new writes

transferred: 1073741824 bytes remaining: 0 bytes total: 1073741824 bytes progression: 100.00 % busy: true
transferred: 1073741824 bytes remaining: 0 bytes total: 1073741824 bytes progression: 100.00 % busy: true
transferred: 1073741824 bytes remaining: 0 bytes total: 1073741824 bytes progression: 100.00 % busy: true

- 100% no new writes

transferred: 1073741824 bytes remaining: 0 bytes total: 1073741824 bytes progression: 100.00 % busy: false
transferred: 1073741824 bytes remaining: 0 bytes total: 1073741824 bytes progression: 100.00 % busy: false
transferred: 1073741824 bytes remaining: 0 bytes total: 1073741824 bytes progression: 100.00 % busy: false

So, we need to check that busy is false before doing the block-job-complete.

Also, we force the vm to pause, if it's busy for more than 120s when drive-mirror is at 100%

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
10 years agoblock-job-cancel : wait that jobs is really finished
Alexandre Derumier [Fri, 7 Nov 2014 09:10:47 +0000 (10:10 +0100)]
block-job-cancel : wait that jobs is really finished

block-job-cancel is async, we need to check that job is really finished

before try to free the volume

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
10 years agobump version to 3.3-1
Dietmar Maurer [Mon, 13 Oct 2014 08:36:23 +0000 (10:36 +0200)]
bump version to 3.3-1

10 years agoenable write zeroes optimisations
Alexandre Derumier [Mon, 13 Oct 2014 07:45:30 +0000 (09:45 +0200)]
enable write zeroes optimisations

This enable write zeroes optimisation inside guest.

(I have tested them with qcow2,raw (ext4|xfs) , zfs|iscsi and nfs too.

No impact if the block driver don't support it yet (like rbd)

https://lists.nongnu.org/archive/html/qemu-devel/2014-04/msg00009.html

> a) mkfs.ext4 -E lazy_itable_init=0,lazy_journal_init=0 /dev/vdX
>
> QCOW2         [off]     [on]     [unmap]
> -----
> runtime:       14secs    1.1secs  1.1secs
> filesize:      937M      18M      18M
>
> iSCSI         [off]     [on]     [unmap]
> ----
> runtime:       9.3s      0.9s     0.9s
>
> b) dd if=/dev/zero of=/dev/vdX bs=1M oflag=direct
>
> QCOW2         [off]     [on]     [unmap]
> -----
> runtime:       246secs   18secs   18secs
> filesize:      51G       192K     192K
> throughput:    203M/s    2.3G/s   2.3G/s
>
> iSCSI*        [off]     [on]     [unmap]
> ----
> runtime:       8mins     45secs   33secs
> throughput:    106M/s    1.2G/s   1.6G/s
> allocated:     100%      100%     0%

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
10 years agoadd iothread/dataplane support
Alexandre Derumier [Fri, 10 Oct 2014 02:05:44 +0000 (04:05 +0200)]
add iothread/dataplane support

new config option:

iothread: 1|0

This enable iothread/dataplane support, to improve io performance on fast storages

Currently block jobs don't work yet, it's planned for qemu 2.2.
So it's better to not expose yet this option in gui.

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
10 years agobump version to 3.1-35
Dietmar Maurer [Wed, 17 Sep 2014 13:53:02 +0000 (15:53 +0200)]
bump version to 3.1-35

10 years agofix bug #542: return VMID as integer
Dietmar Maurer [Wed, 17 Sep 2014 13:51:47 +0000 (15:51 +0200)]
fix bug #542: return VMID as integer

10 years agobump version to 3.1-34
Dietmar Maurer [Mon, 1 Sep 2014 09:36:07 +0000 (11:36 +0200)]
bump version to 3.1-34

10 years agovm_devices_list : also list block devices
Alexandre Derumier [Fri, 29 Aug 2014 13:04:15 +0000 (15:04 +0200)]
vm_devices_list : also list block devices

This allow scsi disk to be plug|unplug

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
10 years agoCurrently,if we don't have a "machine" option in running config, and we take a vmstat...
Dietmar Maurer [Fri, 29 Aug 2014 09:27:27 +0000 (11:27 +0200)]
Currently,if we don't have a "machine" option in running config, and we take a vmstate snapshot

the machine option is write in the snapshot (ok), but also in the running config (bad)

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
10 years agoallow hotplug of virtio-scsi disks
Alexandre Derumier [Wed, 27 Aug 2014 13:48:30 +0000 (15:48 +0200)]
allow hotplug of virtio-scsi disks

It was an old protection, it's working fine now

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
10 years agobump version to 3.1-33
Dietmar Maurer [Tue, 26 Aug 2014 07:24:29 +0000 (09:24 +0200)]
bump version to 3.1-33

10 years agoclone_vm: auto generate new uuid
Dietmar Maurer [Tue, 26 Aug 2014 07:20:09 +0000 (09:20 +0200)]
clone_vm: auto generate new uuid

10 years agobump version to 3.1-32
Dietmar Maurer [Wed, 20 Aug 2014 10:21:28 +0000 (12:21 +0200)]
bump version to 3.1-32

10 years agoadd Broadwell cpu model
Alexandre Derumier [Mon, 18 Aug 2014 13:56:35 +0000 (15:56 +0200)]
add Broadwell cpu model

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
10 years agobump version to 3.1-31
Dietmar Maurer [Wed, 13 Aug 2014 04:17:31 +0000 (06:17 +0200)]
bump version to 3.1-31

10 years agogenerate spice devices cmd line after pci bridge
Alexandre Derumier [Tue, 12 Aug 2014 23:04:31 +0000 (01:04 +0200)]
generate spice devices cmd line after pci bridge

we should push to $devices array instead $cmd array,

because pci bridges need to be create before spice devices

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
10 years agobump version to 3.1-30
Dietmar Maurer [Wed, 6 Aug 2014 07:41:43 +0000 (09:41 +0200)]
bump version to 3.1-30

10 years agobump max hostpci to 4
Alexandre Derumier [Wed, 6 Aug 2014 05:39:33 +0000 (07:39 +0200)]
bump max hostpci to 4

user need to passthough 3 devices here
http://forum.proxmox.com/threads/19134-KVM-passtrought-PciExpress-3-card

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
10 years agovga=none if x-vga passthrough is enabled
Alexandre Derumier [Wed, 6 Aug 2014 05:27:29 +0000 (07:27 +0200)]
vga=none if x-vga passthrough is enabled

we need to disable virtual vga card if we passthrough a physical gpu

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
10 years agobump version to 3.1-29
Dietmar Maurer [Tue, 29 Jul 2014 04:53:27 +0000 (06:53 +0200)]
bump version to 3.1-29

10 years agovm_stop: do not use ha commands if $migratedfrom is set
Dietmar Maurer [Tue, 29 Jul 2014 04:51:02 +0000 (06:51 +0200)]
vm_stop: do not use ha commands if $migratedfrom is set

10 years agobump version to 3.1-28
Dietmar Maurer [Thu, 24 Jul 2014 04:52:43 +0000 (06:52 +0200)]
bump version to 3.1-28

10 years agodisable kvm cpu signature if x-vga is enabled
Alexandre Derumier [Wed, 23 Jul 2014 12:38:00 +0000 (14:38 +0200)]
disable kvm cpu signature if x-vga is enabled

see
http://git.qemu.org/?p=qemu.git;a=commit;h=f522d2acc549dd11f495048330aa5f3f424a7dfa

last nvdia drivers don't install in kvm machine if they detect kvm signature.

This patch hide kvm signature in cpuflags (but don't disable kvm)

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
10 years agobump version to 3.1-27
Dietmar Maurer [Wed, 23 Jul 2014 04:12:40 +0000 (06:12 +0200)]
bump version to 3.1-27

10 years agoReset device only if has_fl_reset is defined
Kamil Trzciński [Sun, 29 Jun 2014 19:41:37 +0000 (21:41 +0200)]
Reset device only if has_fl_reset is defined

Signed-off-by: Kamil Trzciński <ayufan@ayufan.eu>
10 years agobump version to 3.1-26
Dietmar Maurer [Thu, 17 Jul 2014 07:29:01 +0000 (09:29 +0200)]
bump version to 3.1-26

10 years agosnapshot_delete: reorder parent "connection" after prepare
Stefan Priebe [Fri, 4 Jul 2014 08:25:49 +0000 (10:25 +0200)]
snapshot_delete: reorder parent "connection" after prepare

Signed-off-by: Stefan Priebe <s.priebe@profihost.ag>
10 years agoAPI2: remove require full parameter for snapshot cloning
Stefan Priebe [Fri, 4 Jul 2014 08:25:48 +0000 (10:25 +0200)]
API2: remove require full parameter for snapshot cloning

Signed-off-by: Stefan Priebe <s.priebe@profihost.ag>
10 years agopass snapname to PVE::Storage::vdisk_clone
Stefan Priebe [Fri, 4 Jul 2014 08:25:47 +0000 (10:25 +0200)]
pass snapname to PVE::Storage::vdisk_clone

Signed-off-by: Stefan Priebe <s.priebe@profihost.ag>
10 years agobump version to 3.1-25
Dietmar Maurer [Wed, 16 Jul 2014 10:48:10 +0000 (12:48 +0200)]
bump version to 3.1-25

10 years agoallow resize of virtio windows boot disk
Alexandre Derumier [Wed, 16 Jul 2014 08:36:19 +0000 (10:36 +0200)]
allow resize of virtio windows boot disk

virtio-win-0.1-74  have fixed the resize bug of virtio boot disk

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
10 years agoauto generate uuid on VM create
Dietmar Maurer [Thu, 26 Jun 2014 09:51:52 +0000 (11:51 +0200)]
auto generate uuid on VM create

Other VM environments also generates an UUID by default.

10 years agorequire 'VM.Config.HWType' priviledge to change new smbios1 option
Dietmar Maurer [Thu, 26 Jun 2014 09:17:10 +0000 (11:17 +0200)]
require 'VM.Config.HWType' priviledge to change new smbios1 option

10 years agobump version to 3.1-24
Dietmar Maurer [Thu, 26 Jun 2014 09:13:50 +0000 (11:13 +0200)]
bump version to 3.1-24

10 years agonew option smbios1: specify SMBIOS type 1 fields (uuid, ...)
Dietmar Maurer [Thu, 26 Jun 2014 09:12:25 +0000 (11:12 +0200)]
new option smbios1: specify SMBIOS type 1 fields (uuid, ...)

10 years agobump version to 3.1-23
Dietmar Maurer [Wed, 25 Jun 2014 07:56:24 +0000 (09:56 +0200)]
bump version to 3.1-23

10 years agovncproxy: remove check if VM is running
Dietmar Maurer [Wed, 25 Jun 2014 07:54:23 +0000 (09:54 +0200)]
vncproxy: remove check if VM is running

Because this does not work when VM is on other cluster node.

10 years agobump version to 3.1-22
Dietmar Maurer [Wed, 25 Jun 2014 07:31:59 +0000 (09:31 +0200)]
bump version to 3.1-22

10 years agoadd pci multifunction unbind support
Alexandre Derumier [Mon, 23 Jun 2014 15:41:55 +0000 (17:41 +0200)]
add pci multifunction unbind support

we need to unbind each functions of a multifunction pci device

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
10 years agoadd pci multifunction support
Alexandre Derumier [Mon, 23 Jun 2014 15:41:54 +0000 (17:41 +0200)]
add pci multifunction support

multifunction device should be define without the .function

hostpci0: 00:00

example
-------
if 00:00.0
   00:00.1
   00:00.2

exists,

then we generate the multifunction devices

-device (pci-assign|vfio-pci),host=00:00.0,id=hostpci0.0,bus=...,addr=0x0.0,multifunction=on
-device (pci-assign|vfio-pci),host=00:00.1,id=hostpci0.1,bus=...,addr=0x0.1
-device (pci-assign|vfio-pci),host=00:00.2,id=hostpci0.2,bus=...,addr=0x0.2

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
10 years agoadd pcie and x-vga passthrough
Alexandre Derumier [Mon, 23 Jun 2014 15:41:53 +0000 (17:41 +0200)]
add pcie and x-vga passthrough

hostpci0:  .....,x-vga=on,pcie=1

x-vga require kernel 3.10 with vfio-vga support enable
if x-vga=on, we force vfio-pci device

pcie=1 choose the pciexpress bus (need q35 machine model)

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
10 years agovncproxy: add check if VM is running
Dietmar Maurer [Wed, 25 Jun 2014 05:20:23 +0000 (07:20 +0200)]
vncproxy: add check if VM is running

To provide better eror message for console task.

10 years agobump version to 3.1-21
Dietmar Maurer [Tue, 24 Jun 2014 15:43:54 +0000 (17:43 +0200)]
bump version to 3.1-21

10 years agoprotect websocket API with vncticket
Dietmar Maurer [Tue, 24 Jun 2014 14:10:30 +0000 (16:10 +0200)]
protect websocket API with vncticket

10 years agofix a typo
Dietmar Maurer [Tue, 24 Jun 2014 05:44:17 +0000 (07:44 +0200)]
fix a typo

10 years agobump version to 3.1-20
Dietmar Maurer [Wed, 18 Jun 2014 10:46:02 +0000 (12:46 +0200)]
bump version to 3.1-20

10 years agovncwebsocket: do not proxy connection
Dietmar Maurer [Wed, 18 Jun 2014 10:44:46 +0000 (12:44 +0200)]
vncwebsocket: do not proxy connection

10 years agobump version to 3.1-19
Dietmar Maurer [Wed, 18 Jun 2014 09:05:05 +0000 (11:05 +0200)]
bump version to 3.1-19

10 years agodo not use novnc wsproxy
Dietmar Maurer [Wed, 18 Jun 2014 09:02:57 +0000 (11:02 +0200)]
do not use novnc wsproxy

Instead, we use new HTTPServer features.

10 years agoadded support for vfio-pci passthrough
Stefan Priebe [Thu, 13 Feb 2014 20:12:29 +0000 (21:12 +0100)]
added support for vfio-pci passthrough

Signed-off-by: Stefan Priebe <s.priebe@profihost.ag>
10 years agocleanup previous patch
Dietmar Maurer [Wed, 18 Jun 2014 04:54:45 +0000 (06:54 +0200)]
cleanup previous patch

10 years agoenable q35 machine support
Alexandre Derumier [Mon, 26 May 2014 07:49:56 +0000 (09:49 +0200)]
enable q35 machine support

q35 use pcie.0 root by default. so currently we can't start machine model q35.

we need to add 3 pci-bridge pci.0, pci.1, pci.2, to handle our devices.

pcie.0 does not support hotplug. so pci-bridge are defined at startup.

I use an pve-q35.cfg (mostly the same than q35-chipset.cfg from qemu docs).

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
10 years agobump version to 3.1-18
Dietmar Maurer [Tue, 17 Jun 2014 07:00:24 +0000 (09:00 +0200)]
bump version to 3.1-18

10 years agomigration : add setup state
Alexandre Derumier [Tue, 17 Jun 2014 05:44:05 +0000 (07:44 +0200)]
migration : add setup state

since qemu 1.5, they are a new migration state : "setup"

it's mainly use for rdma migration, but slow vm can it see and hang on migration

http://git.qemu.org/?p=qemu.git;a=commit;h=3b6959506831193f37cc830c8e111b437c0d1380

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
10 years agodepend on novnc-pve
Dietmar Maurer [Tue, 17 Jun 2014 06:54:23 +0000 (08:54 +0200)]
depend on novnc-pve

10 years agocleanup VNC websocket patch
Dietmar Maurer [Tue, 17 Jun 2014 06:02:43 +0000 (08:02 +0200)]
cleanup VNC websocket patch

Pass ticket via ENV{LC_PVE_TICKET} to vncproxy. Also remove 'unsecure' option, because
this is implied if we want a websocket connection.

10 years agoAPI2/Qemu: add unsecure and websocket options to vncpoxy also set qemu vnc server...
Stefan Priebe [Tue, 3 Jun 2014 08:22:00 +0000 (10:22 +0200)]
API2/Qemu: add unsecure and websocket options to vncpoxy also set qemu vnc server properties on the fly

Signed-off-by: Stefan Priebe <s.priebe@profihost.ag>
10 years agoadd virtio-net multiqueue support
Alexandre Derumier [Tue, 10 Jun 2014 06:30:31 +0000 (08:30 +0200)]
add virtio-net multiqueue support

this a new option queue=(\d+) to net interface

Allow to use more than 1 cpu for network stream, so this can improve network bandwidth,
when vhost-net cpu is the bottleneck

http://www.linux-kvm.org/page/Multiqueue#Enable_MQ_feature

-netdev tap,vhost=on,queues=N -device virtio-net-pci,mq=on,vectors=2N+2

host requirement
----------------
this require host kernel >= 3.8 (or qemu die at start)

linux guest requirement
-----------------------
kernel >= 3.8

manual enabling multiqueue

windows guest requierement
--------------------------
recent virtio-net driver

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
10 years agoadd option iscsi only once
Dietmar Maurer [Sat, 17 May 2014 07:14:58 +0000 (09:14 +0200)]
add option iscsi only once

We simply add option iscsi if we have an initiator name. So we
never add this option multiple times, and it works with hotplug
in case someone plugs an 'iscsi:' drive later.

10 years agocleanup previous commit - use IO::File
Dietmar Maurer [Sat, 17 May 2014 07:07:18 +0000 (09:07 +0200)]
cleanup previous commit - use IO::File

10 years agoadd initiator-name to iscsi drives if configured
Michael Rasmussen [Tue, 13 May 2014 01:10:40 +0000 (03:10 +0200)]
add initiator-name to iscsi drives if configured

Signed-off-by: Michael Rasmussen <mir@datanom.net>
10 years agoprint_net : add firewall option
Alexandre Derumier [Fri, 9 May 2014 09:18:58 +0000 (11:18 +0200)]
print_net : add firewall option

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
10 years agodo not ignore errors on tap_unplug
Dietmar Maurer [Thu, 8 May 2014 13:45:25 +0000 (15:45 +0200)]
do not ignore errors on tap_unplug

10 years agoadd pve-bridgedown script
Alexandre Derumier [Wed, 7 May 2014 08:42:43 +0000 (10:42 +0200)]
add pve-bridgedown script

This allow to delete fwbr bridge, link interfaces, cleanup ovs
when vm is shutdown

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
10 years agoadd firewall option to qemu network interface
Alexandre Derumier [Wed, 7 May 2014 08:42:42 +0000 (10:42 +0200)]
add firewall option to qemu network interface

this allow to disable firewall for a specific interface

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