Dietmar Maurer
86b8228b59
new vga_conf_has_spice() helper
...
code cleanups
2013-07-24 12:01:03 +02:00
Dietmar Maurer
1d794448fc
return spice_port from config_to_command()
...
That way we do not need to run qmp command to get the port.
Set spice ticket expire time to 30 (5 seconds seems a bit too short).
Coding style cleanups.
2013-07-24 11:24:20 +02:00
Alexandre Derumier
95a4b4a98b
add spice migration
...
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2013-07-24 10:54:20 +02:00
Alexandre Derumier
1481f3f23c
add read_x509_subject_spice
...
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2013-07-24 09:45:32 +02:00
Dietmar Maurer
26d63c8c69
bump version to 3.0-26
2013-07-23 10:11:43 +02:00
Dietmar Maurer
d685bd1de8
remove spice cert paths
...
And depend on pve-qemu-kvm (>= 1.4-16), which automatically uses the correct
certs by default.
2013-07-23 10:05:36 +02:00
Dietmar Maurer
5acbfe9eea
disable tablet for spice
2013-07-19 09:58:17 +02:00
Dietmar Maurer
eba883bee0
bump version to 3.0-25
2013-07-19 09:38:56 +02:00
Dietmar Maurer
80401dd861
support usb redirection for spice
2013-07-19 09:37:04 +02:00
Dietmar Maurer
31178e138f
fix docu
2013-07-18 08:29:12 +02:00
Dietmar Maurer
bcf1b404b1
bump version to 3.0-24
2013-07-18 08:15:21 +02:00
Dietmar Maurer
fb6c726010
spiceproxy: allow client to choose proxy address
2013-07-18 08:00:03 +02:00
Dietmar Maurer
451b2b815e
spice: read cert subject name directly using Net::SSLeay
...
We now depend on libnet-ssleay-perl
2013-07-18 07:28:35 +02:00
Dietmar Maurer
943340a628
spice: use TLS
...
we now use a local tcp port instead of a unix socket, because that is
implemented and works with current spice libraries.
2013-07-17 11:33:02 +02:00
Dietmar Maurer
82a87eb43a
bump version to 3.0-23
2013-07-16 06:50:34 +02:00
Dietmar Maurer
09984754a0
correctly return and use device type in scsi_inquiry
2013-07-15 13:46:41 +02:00
Dietmar Maurer
f334aa3e6e
fix scsi inquiry command
...
I got wrong results if command is longer than 6 bytes.
2013-07-15 13:12:18 +02:00
Dietmar Maurer
29b1952991
fix coding style
2013-07-15 13:11:28 +02:00
Dietmar Maurer
be19058305
bump version to 3.0-22
...
and delete trailing white spaces
2013-07-15 09:16:01 +02:00
Alexandre Derumier
462e8d19fe
add hyper-v enlightments for windows guests
...
This add special hyper-v cpu flags for windows guests.
This improve performance and avoid some bsod related to timer.
(I currently disable the hv_vapic flag because I can't get it working).
I have tested all theses flags with: win2003, win2008R2, winxp, linux debian 64bit, on intel and amd physicals processor
It doesn't break live migration, because new cpu flags are not see by guests until a vm reset.
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2013-07-15 09:09:08 +02:00
Alexandre Derumier
2e1a5389f7
add +sep cpuflags to kvm32 && kvm64 cpu models
...
Need for win8 boot.
This flag was missing from rhel < 6.4 host kernel. It's ok now.
But it's also missing from kvm64 model. (It's exist in other cpu models, amd or intel).
So it's pretty safe to enable it.
If the host kernel is older, qemu filter the flag.
This also improve performance of winxp && win7 32 bits guests.
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2013-07-15 09:08:50 +02:00
Alexandre Derumier
519ed28c96
enable x2apic by default for kvm machines
...
This reduce context switch with multicore guests.
Even if the host cpu don't have x2apic, it's working because qemu have an virtual x2apic implementation for guest.
We need in-kernel irqchip support for this, which is enable for kvm guest since qemu 1.3.
(I don't enable it if nokvm param is set)
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2013-07-15 09:08:34 +02:00
Dietmar Maurer
716a470c8c
spiceproxy: set delete-this-file
2013-06-27 09:28:13 +02:00
Alexandre Derumier
af32683a67
spiceconfig: port can't be 0
...
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2013-06-27 06:12:46 +02:00
Alexandre Derumier
e554e5b9a9
spice : fix proxy address
...
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2013-06-27 06:10:34 +02:00
Dietmar Maurer
46246f04e9
vm status API: return info about spice
2013-06-26 13:37:14 +02:00
Dietmar Maurer
013d8cacc6
bump version to 3.0-21
2013-06-26 13:16:19 +02:00
Dietmar Maurer
3309e65afa
spiceproxy: remove socat, and return data to access the new spiceproxy server
2013-06-26 13:13:58 +02:00
Dietmar Maurer
eb15737004
kill socat if we do not get any connection within $timeout seconds
2013-06-25 14:34:59 +02:00
Dietmar Maurer
d914737577
depend on socat (used for spice)
2013-06-25 13:14:00 +02:00
Dietmar Maurer
8bd0cbf5c3
spice proxy: try to cirrectly count open socat connections
2013-06-25 12:54:15 +02:00
Dietmar Maurer
5ecf258f2c
limit spice ticket length to 59 charachters
2013-06-25 12:47:33 +02:00
Dietmar Maurer
288eeea8ae
add spice proxy API
...
This is experimental code, spice connections are not encryped and thus insecure.
We use ticket passwords for spice auth, and do direct spice connections to
the nodes instead of using a tunnel.
2013-06-25 12:09:05 +02:00
Dietmar Maurer
1011b57090
add support for spice display driver (vga=qxl)
...
This is based on the patch from Alexandre, but we use vga=qlx instead
of introducing a new 'spice: 1' boolean flag.
2013-06-25 07:10:42 +02:00
Dietmar Maurer
9b2c0efbd6
correctly handle undef values when calling qemu_block_set_io_throttle
2013-06-12 07:08:02 +02:00
Alexandre Derumier
0e6165343a
qemu-server : bridge_add : fix uninitialized value
...
fix : Use of uninitialized value $bridgeid in numeric lt (<) at /usr/share/perl5/PVE/QemuServer.pm line 2774.
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2013-06-12 06:58:20 +02:00
Dietmar Maurer
7043d946fc
code cleanups
...
removed trailing white space
2013-06-11 07:27:31 +02:00
Dietmar Maurer
d52b8b77f8
simplify previous patch
2013-06-11 07:22:13 +02:00
Alexandre Derumier
09a8989501
create_disks : avoid storage scan v3
...
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2013-06-11 07:09:17 +02:00
Dietmar Maurer
89b0baa650
bump version to 3.0-20
2013-06-07 11:44:42 +02:00
Dietmar Maurer
5555edea95
update_vm_async: new asynchronous API
2013-06-07 11:41:58 +02:00
Dietmar Maurer
d8b916fdb0
snapshot rollback: use pc-i440fx-1.4 as default
2013-06-06 06:38:12 +02:00
Dietmar Maurer
6dbe8b459b
require VM.Config.HWType priviledges to modify 'machine' configuration
2013-06-06 06:22:32 +02:00
Dietmar Maurer
bf6d72aa13
bump version to 3.0-19
2013-06-05 10:28:08 +02:00
Dietmar Maurer
42668529e6
migrate: pass --machine parameter to remote 'qm start' command
2013-06-05 10:24:39 +02:00
Dietmar Maurer
4b15803dee
snapshot: save/restore 'machine' configuration
2013-06-05 10:17:49 +02:00
Dietmar Maurer
ff556cf2a0
implement get_current_qemu_machine
2013-06-05 09:52:22 +02:00
Dietmar Maurer
952958bc87
API extension: add 'machine' parameter to vm_start
...
This allows us to overwrite the machine type at start - useful for
migration to make sure we use the same machine at the target node.
2013-06-05 09:27:31 +02:00
Dietmar Maurer
3bafc5106e
add new 'machine' configuration
2013-06-05 09:18:23 +02:00
Dietmar Maurer
1a71fa73a4
fix typo
2013-06-04 13:33:35 +02:00