5
0
mirror of git://git.proxmox.com/git/qemu-server.git synced 2025-03-14 00:58:26 +03:00

1378 Commits

Author SHA1 Message Date
Wolfgang Bumiller
830be45b01 bump version to 4.0-115
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2018-01-16 14:26:12 +01:00
Fabian Grünbichler
e7c307991d CPU flags: add spec-ctrl
to allow VMs to use IBRS/IBPB on systems with patched microcode

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2018-01-16 14:22:03 +01:00
Fabian Grünbichler
006e7601c2 CPU types: add missing types
Skylake-Server is the Xeon variant of Skylake

max is "all features supported by the accelerator in the current host"

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2018-01-16 14:22:03 +01:00
Fabian Grünbichler
1b9f7afcf0 CPU types: add -IBRS variants
this have the 'spec-ctrl' flag by default to allow IBRS based Spectre
mitigation by the guest kernel.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2018-01-16 14:22:03 +01:00
Fabian Grünbichler
7a506664ee bump version to 4.0-114 2018-01-09 15:53:33 +01:00
Wolfgang Bumiller
484262894f add 'flags' property to cpu option
Currently this only allows specifying '+pcid' or '-pcid'
but might be extended in the future.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
(cherry picked from commit 39fd79e2ad17e2e73bcf93d795413b7365f2a5e2)
2018-01-09 15:51:41 +01:00
Dominik Csapak
77539e629d make ssh connection transparent
do not use an escape character for vncproxy

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-11-17 10:38:31 +01:00
Fabian Grünbichler
7e6a0cbacb bump version to 4.0-133 2017-10-04 11:19:27 +02:00
Alexandre Derumier
08f918daab live storage migration : fix check of target storage availability
if we define a different target storeid for remote node,
and that storage is not available on source node

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
(cherry picked from commit d80ad67f9d3be88cb0775865ef3ef06b82907752)
2017-10-04 08:56:05 +02:00
Fabian Grünbichler
59c2b3a8ca migrate: clarify comment
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
(cherry picked from commit 877e2ea746616237f4a8d7169d23193a73c5a142)
2017-10-04 08:56:05 +02:00
Fabian Grünbichler
9e53898bd2 fix #1338: migrate: stop nbd before resuming
since Qemu 2.9, block device write access is limited to one
writer unless shared_rw is set to true. there is an
exception for live-migrating local disks via NBD as long as
the VM is suspended.

stop the NBD server before resuming the VM accordingly to
unbreak local disk live-migration.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
(cherry picked from commit 504105c638f2234c9d4a00109c9bb41e36c47ca3)
2017-10-03 10:27:20 +02:00
Thomas Lamprecht
9373a5b0d4 restore_vma_archive: do not overwrite global signal handlers
perls 'local' must be either used in front of each $SIG{...}
assignments or they must be put in a list, else it affects only the
first variable and the rest are *not* in local context.

This may cause weird behaviour where daemons seemingly do not get
terminating signals delivered correctly and thus may not shutdown
gracefully anymore.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2017-09-07 10:40:09 +02:00
Thomas Lamprecht
d3395ba8c5 API/clone: do not overwrite global signal handlers
perls 'local' must be either used in front of each $SIG{...}
assignments or they must be put in a list, else it affects only the
first variable and the rest are *not* in local context.

This may cause weird behaviour where daemons seemingly do not get
terminating signals delivered correctly and thus may not shutdown
gracefully anymore.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2017-09-07 10:40:08 +02:00
Fabian Grünbichler
fd9d316423 update_vm: sort logged parameters
otherwise the (log) output looks really strange when mass-updating VMs, e.g.:
update VM 400001: -scsi1 somestore:64 -scsi0 somestore:64 -ide2 isostore:iso/somefile.iso,media=cdrom
update VM 400002: -ide2 isostore:iso/somefile.iso,media=cdrom -scsi1 somestore:64 -scsi0 somestore:64
update VM 400003: -scsi0 somestore:64 -ide2 isostore:iso/somefile.iso,media=cdrom -scsi1 somestore:64

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2017-09-07 10:22:48 +02:00
Fabian Grünbichler
e5c6234912 bump version to 4.0-112 2017-08-22 13:58:50 +02:00
Fabian Grünbichler
b2e4d3982f start: keep VM paused when migrating via unix socket
this (correctly!) errored out with Qemu 2.9 when live-migrating
local disks, because the NBD server blocks the VM from being
resumed. was probably missed when migrating via unix domains
was originally introduced..

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
(cherry picked from commit b37ecfe6ae7f7b557db7712ee6988cb0397306e9)
2017-08-22 12:16:56 +02:00
Wolfgang Link
0f79fc1da8 Fix freeze_needed
We want freeze the filesystem if the vmstate is not saved, because when we save the state we need not to freeze the filesystem.
2017-07-31 08:30:04 +02:00
Wolfgang Bumiller
0cd0bcd23a bump version to 4.0-111 2017-07-14 13:33:33 +02:00
Thomas Lamprecht
f39957acea use machine version in vga default type selection
If we get an VM machine older than 2.9 we use the old selection
expression for the VGA type. This allows to live migrate VMs to PVE
5.0.
Also once kvm gets updated to 2.9 in PVE 4.4 newly started VMs will
use "std" as default VGA instead of cirrus.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2017-07-14 13:20:24 +02:00
Wolfgang Bumiller
cdad9f1500 config: has_feature() take default for backup into account 2017-07-14 13:20:24 +02:00
Wolfgang Bumiller
bffd56d372 fix #1405: sort pci ids by functions
QemuServer::lspci() iterates over /sys/bus/pci/devices which
doesn't guarantee any order which means functions sometimes
ended up in the wrong order and it was never clear which
one would get the additional options such as x-vga passed
to them.
2017-07-14 13:20:24 +02:00
Wolfgang Bumiller
047122f352 fix #1229: more explicit spice port allocation
We cannot look for ports on "any" wildcard address while
letting qemu bind to "localhost", this may lead to a qemu
process occupying ::1 while the next search successfully
finds the same port available for IPv4's '*' address.

Instead, we now lookup the IP of the desired family for
'localhost'. Note that while we could simply be hardcoding
::1 or 127.0.0.1, with this code we are protocol agnostic.
2017-07-14 13:20:24 +02:00
Dominik Csapak
81df48c940 fix #1417: check if storage has 'images' set in content
otherwise, qm and the api ignore this setting completely when creating
a vm

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-06-30 09:31:55 +02:00
Dominik Csapak
d463d03bba check also pending changes when reverting/deleting
otherwise we are not able to revert/delete pending changes which
introduce a new config line

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
(cherry picked from commit af6d2db4b3dd54dee517a3ae6a49eac43c068af9)
2017-05-31 11:47:46 +02:00
Thomas Lamprecht
ff8df3fb67 improve error on '{full, linked} clone not available' error
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2017-05-24 11:30:36 +02:00
Fabian Grünbichler
59f6c311f0 print_cpu_device: remove unused variable
(cherry picked from commit df58868200447066dfc8fc3de87238407699c3fc)
2017-05-23 14:25:23 +02:00
Tobias Böhm
5c5581d772 Fix #1384: add missing decrement to calculation of socket-id
For calculation of "current_core" the input variable id is decremented.
For calculation of "current_socket" this decrement was missing resulting
in a wrong value when "cores" is set to 1.

Signed-off-by: Tobias Böhm <tb@robhost.de>
(cherry picked from commit 7032e08c858e99963009bec98984f94fd2ed4ed7)
2017-05-23 14:25:23 +02:00
Wolfgang Bumiller
5b794c373a build: run tests on build
rebased 35c78505d7373a6 from master
2017-05-17 14:00:37 +02:00
Fabian Grünbichler
28b396fe84 tests: fix broken snapshot create tests
by mocking de/activate vmstate volumes. these were broken by
3a8deb551f2c7648865437961b3593d11bf0591b, which introduced
activating/deactivating vmstate volumes for KRBD

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2017-05-17 13:59:53 +02:00
Fabian Grünbichler
941997a10d tests: fix broken snapshot delete tests
these broke when the additional "snapshot-delete" lock was
introduced

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2017-05-17 13:59:53 +02:00
Fabian Grünbichler
8cab75a755 tests: exit with -1 in case of failures
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2017-05-17 13:59:53 +02:00
Dominik Csapak
1c575af531 use ReuseAddr for vncproxy
to avoid "Socket already in use" errors, when quickly opening/closing
console sessions on the webinterface

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-05-17 13:39:48 +02:00
Alexandre Derumier
c9321683a6 add rerror for all drives
it was missing for scsi, and it's supported for all kind of drive

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2017-04-28 10:04:17 +02:00
Dominik Csapak
81242b19d8 turn off alarm timer after accepting a vnc connection
else we always get a failed task when the vnc connection is
running longer than $timeout

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-04-18 14:14:34 +02:00
Fabian Grünbichler
1bb8f00999 update_vm: check whether opt is set before deleting
otherwise we get lots uninitialized warnings:

update VM 600: -delete unused7
Use of uninitialized value $data in split at /usr/share/perl5/PVE/JSONSchema.pm line 533.
Use of uninitialized value in concatenation (.) or string at /usr/share/perl5/PVE/API2/Qemu.pm line 1012.
Use of uninitialized value $volid in pattern match (m//) at /usr/share/perl5/PVE/QemuServer.pm line 1824.
Use of uninitialized value $volid in pattern match (m//) at /usr/share/perl5/PVE/Storage/Plugin.pm line 201.
Use of uninitialized value $volid in concatenation (.) or string at /usr/share/perl5/PVE/Storage/Plugin.pm line 205.

vs:

update VM 600: -delete unused7
cannot delete 'unused7' - not set in current configuration!

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2017-03-23 11:41:47 +01:00
Wolfgang Bumiller
0d830d2461 bump version to 4.0-110 2017-03-13 11:57:13 +01:00
Emmanuel Kasper
e248477e92 Use backticks instead of single quotes in qm resize description
Single quoted text in asciidoc is rendered in man pages
with underlines, which makes the '+' symbol very similar to '+/-'

Backticks are rendered with monospace text in HTML, normal text
in man pages, and still readable in raw format.
2017-03-02 10:38:19 +01:00
Fabian Grünbichler
8b54f4b8db defined() style cleanup 2017-02-28 12:46:47 +01:00
Wolfgang Link
9045f57a27 Check array existed before use.
This triggers if a qemu guest has a local unused disk.
The disk will migrate by offline disk migration, so it is not in the target_drives.
2017-02-28 12:33:27 +01:00
Wolfgang Bumiller
655d746212 remove netcat6 dependency
By simply using a socket.
2017-02-28 12:23:42 +01:00
Dominik Csapak
3db920fc13 add Skylake to CPU Models
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-02-28 12:19:14 +01:00
Emmanuel Kasper
9a478b17c0 Improve error message when trying to shrink a volume, fix typo 2017-02-17 09:09:49 +01:00
Wolfgang Bumiller
7fe1b688b6 fix bad scsihw default value check
This was checking for scsihw being set in both branches
whereas lsi is also the default. Added the missing 'not'.

Fixes a bug where a VM with a disk with a scsi index >= 7
refused to start due to an invalid scsi id.

Reported-by: Friedrich Ramberger <f.ramberger@proxmox.com>
2017-02-13 14:10:00 +01:00
Wolfgang Bumiller
791219d4dd fix dependency 2017-02-09 11:48:03 +01:00
Wolfgang Bumiller
2e44a8c801 bump version to 4.0-109 2017-02-09 11:41:01 +01:00
Wolfgang Bumiller
1e4fb053d3 skiplock standard option was moved to pve-common
this now need libpve-common-perl >= 4.0-92
2017-02-08 09:56:02 +01:00
Wolfgang Bumiller
9f11fc5fa2 don't pull HA modules for doc-generation 2017-02-06 16:13:30 +01:00
Wolfgang Bumiller
265faf1f21 buildsys: use fakeroot for dpkg-deb 2017-02-06 16:13:08 +01:00
Wolfgang Bumiller
befb7c4662 buildsys: use gzip -n to disable timestamps 2017-02-06 16:12:48 +01:00
Wolfgang Bumiller
3227a1013a buildsys: set PVE_GENERATING_DOCS for completions 2017-02-06 16:12:35 +01:00