]> git.proxmox.com Git - qemu-server.git/log
qemu-server.git
11 years agoadd offline backup for templates
Dietmar Maurer [Fri, 22 Feb 2013 08:46:59 +0000 (09:46 +0100)]
add offline backup for templates

11 years agofix backup parameters for pve-qemu-kvm 1.4-4
Dietmar Maurer [Wed, 20 Feb 2013 09:48:52 +0000 (10:48 +0100)]
fix backup parameters for pve-qemu-kvm 1.4-4

bump version to 2.3-11

depend on pve-qemu-kvm 1.4-4

11 years agofix tablet hotplug
Alexandre Derumier [Tue, 19 Feb 2013 11:02:50 +0000 (12:02 +0100)]
fix tablet hotplug

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
11 years agobump version to 2.3-10
Dietmar Maurer [Tue, 19 Feb 2013 09:47:38 +0000 (10:47 +0100)]
bump version to 2.3-10

11 years agohotplug/unplug devices by default
Dietmar Maurer [Tue, 19 Feb 2013 09:43:22 +0000 (10:43 +0100)]
hotplug/unplug devices by default

11 years agohot-unplug : add some warnings for differents guest os
Alexandre Derumier [Tue, 19 Feb 2013 09:22:11 +0000 (10:22 +0100)]
hot-unplug : add some warnings for differents guest os

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
11 years agoqemu_netdevadd : convert to qmp
Alexandre Derumier [Tue, 19 Feb 2013 09:22:09 +0000 (10:22 +0100)]
qemu_netdevadd : convert to qmp

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
11 years agoqemu_netdevdel : convert to qmp
Alexandre Derumier [Tue, 19 Feb 2013 09:22:08 +0000 (10:22 +0100)]
qemu_netdevdel : convert to qmp

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
11 years agoqemu_deviceadd : convert to qmp
Alexandre Derumier [Tue, 19 Feb 2013 09:22:07 +0000 (10:22 +0100)]
qemu_deviceadd : convert to qmp

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
11 years agoqemu_devicedel : convert to qmp
Alexandre Derumier [Tue, 19 Feb 2013 09:22:06 +0000 (10:22 +0100)]
qemu_devicedel : convert to qmp

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
11 years agohotplug/unplug tablet on config update
Alexandre Derumier [Mon, 18 Feb 2013 12:44:34 +0000 (13:44 +0100)]
hotplug/unplug tablet on config update

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
11 years agoenable usb2 controller by default
Alexandre Derumier [Mon, 18 Feb 2013 12:44:33 +0000 (13:44 +0100)]
enable usb2 controller by default

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
11 years agovzdump : check if volid exist with volume_size_info
Alexandre Derumier [Sun, 17 Feb 2013 10:01:39 +0000 (11:01 +0100)]
vzdump : check if volid exist with volume_size_info

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
11 years agotemplate_create : check has_feature template
Alexandre Derumier [Sat, 16 Feb 2013 07:52:51 +0000 (08:52 +0100)]
template_create : check has_feature template

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
11 years agoadd missing newline
Dietmar Maurer [Fri, 15 Feb 2013 10:08:28 +0000 (11:08 +0100)]
add missing newline

11 years agoremove wrong permission check
Dietmar Maurer [Fri, 15 Feb 2013 07:45:42 +0000 (08:45 +0100)]
remove wrong permission check

11 years agotemplate_create: check for 'clone' feature
Dietmar Maurer [Fri, 15 Feb 2013 07:44:12 +0000 (08:44 +0100)]
template_create: check for 'clone' feature

11 years agois_template: always return a defined value
Dietmar Maurer [Fri, 15 Feb 2013 07:12:33 +0000 (08:12 +0100)]
is_template: always return a defined value

use 0 instead of undef

11 years agovmstatus : return template if vm is a template
Alexandre Derumier [Thu, 14 Feb 2013 10:58:56 +0000 (11:58 +0100)]
vmstatus : return template if vm is a template

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
11 years agomove template checks up one level
Dietmar Maurer [Fri, 15 Feb 2013 07:04:30 +0000 (08:04 +0100)]
move template checks up one level

To avoid multiple/repeated calls to load_config().

11 years agoforbid snapshot create if current it's a template
Alexandre Derumier [Thu, 14 Feb 2013 10:58:55 +0000 (11:58 +0100)]
forbid snapshot create if current it's a template

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
11 years agoforbid offline migration of a non shared volume if it's a clone
Alexandre Derumier [Thu, 14 Feb 2013 10:58:54 +0000 (11:58 +0100)]
forbid offline migration of a non shared volume if it's a clone

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
11 years agoforbid vm_start if current config is a template.
Alexandre Derumier [Thu, 14 Feb 2013 10:58:53 +0000 (11:58 +0100)]
forbid vm_start if current config is a template.

if files (raw,qcow2) are a template, we forbid vm_start.

note : the readonly protection do already the job, but we need a clear message for users

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
11 years agoforbid rollback if current config is a template.
Alexandre Derumier [Thu, 14 Feb 2013 10:58:52 +0000 (11:58 +0100)]
forbid rollback if current config is a template.

if a qcow2 current is a template, we can't rollback to a previous snapshot.

(note that file readonly protection do already the job, but we need a clear error message for user)

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
11 years agoforbid snapshot delete if it's a template
Alexandre Derumier [Thu, 14 Feb 2013 10:58:51 +0000 (11:58 +0100)]
forbid snapshot delete if it's a template

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
11 years agoadd is_template sub
Alexandre Derumier [Thu, 14 Feb 2013 10:58:50 +0000 (11:58 +0100)]
add is_template sub

return 1 if vm is a full template (all disks are base image)
return 2 if vm is a semi-tempalte (mix of base and non-base image)

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
11 years agoadd template_create
Alexandre Derumier [Thu, 14 Feb 2013 10:58:49 +0000 (11:58 +0100)]
add template_create

qm template <vmid> [-disk virtio0]

convert a full vm to a template (or only a disk if specify)

we orignal disk to /base (file) or base- (lvm,rbd,sheepdog,nexenta)
we create a snapshot @base if storage need it for clone
we protect the volume or snapshot

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
11 years agodo not set cache=none for .raw files
Dietmar Maurer [Thu, 14 Feb 2013 07:19:39 +0000 (08:19 +0100)]
do not set cache=none for .raw files

use qemu default instead (writeback)

11 years agoremove expected_downtime from migration status
Dietmar Maurer [Wed, 13 Feb 2013 09:47:54 +0000 (10:47 +0100)]
remove expected_downtime from migration status

11 years agobump version to 2.3-9
Dietmar Maurer [Wed, 13 Feb 2013 09:40:58 +0000 (10:40 +0100)]
bump version to 2.3-9

depend on pve-qemu-kvm >= 1.4-1

11 years agoqemu 1.4 fix : rename stats-polling-interval to guest-stats-polling-interval
Alexandre Derumier [Tue, 12 Feb 2013 13:10:11 +0000 (14:10 +0100)]
qemu 1.4 fix : rename stats-polling-interval to guest-stats-polling-interval

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
11 years agofix tar restore: correctly check if VM config already exists
Dietmar Maurer [Mon, 28 Jan 2013 08:54:00 +0000 (09:54 +0100)]
fix tar restore: correctly check if VM config already exists

11 years agoallow to suspend/resume VM during backup
Dietmar Maurer [Thu, 17 Jan 2013 09:25:39 +0000 (10:25 +0100)]
allow to suspend/resume VM during backup

bump version to 2.3-7

11 years agocancel backup before stopping the vm
Dietmar Maurer [Wed, 16 Jan 2013 12:21:27 +0000 (13:21 +0100)]
cancel backup before stopping the vm

bump version ro 2.3-6

11 years agoallow to run as qemu-system-x86_64
Dietmar Maurer [Wed, 16 Jan 2013 12:19:24 +0000 (13:19 +0100)]
allow to run as qemu-system-x86_64

This is usefull to debug.

11 years agofix bug #307: correctly restore disk settings
Dietmar Maurer [Mon, 7 Jan 2013 05:49:11 +0000 (06:49 +0100)]
fix bug #307: correctly restore disk settings

bump version to 2.3-5

11 years agoballoon: don't set balloon && polling interval at start when livemigrate
Alexandre Derumier [Fri, 4 Jan 2013 10:05:23 +0000 (11:05 +0100)]
balloon: don't set balloon && polling interval at start when livemigrate

We don't need to set balloon value and polling interval when a vm is coming from a livemigrate.
(Values are keep in guest memory)

So with autoballooning, this avoid to set the ballon size at ballon_min value when the vm is migrated

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
11 years agobump version to 2.3-4
Dietmar Maurer [Fri, 4 Jan 2013 06:03:14 +0000 (07:03 +0100)]
bump version to 2.3-4

11 years agovma restore: only delete disks contained in backup.
Dietmar Maurer [Fri, 4 Jan 2013 05:57:11 +0000 (06:57 +0100)]
vma restore: only delete disks contained in backup.

cleanup: remove unnecessary 'PVE::QemuServer::' prefix.

11 years agoQemuMigrate: phase2_cleanup misses migrate_cancel
Stefan Priebe [Tue, 1 Jan 2013 21:59:55 +0000 (22:59 +0100)]
QemuMigrate: phase2_cleanup misses migrate_cancel

Signed-off-by: Stefan Priebe <s.priebe@profihost.ag>
11 years agobump version to 2.3-3
Dietmar Maurer [Wed, 2 Jan 2013 05:34:51 +0000 (06:34 +0100)]
bump version to 2.3-3

11 years agofix Bug #293: CDROM size not reset when set to use no media
Alexandre Derumier [Mon, 31 Dec 2012 09:55:52 +0000 (10:55 +0100)]
fix Bug #293: CDROM size not reset when set to use no media

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
11 years agoadd set migrate_downtime default value to 0.1 && add number type
Alexandre Derumier [Sun, 30 Dec 2012 18:03:00 +0000 (19:03 +0100)]
add set migrate_downtime default value to 0.1 && add number type

can be integer or float

ex:

1
1.0
0.3

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
11 years agoimplement dynamic migration_downtime
Stefan Priebe [Sun, 30 Dec 2012 18:02:59 +0000 (19:02 +0100)]
implement dynamic migration_downtime

changelog:

- increment counter also if remaining memory equal 0 (qemu 1.4 migration code)
- only increment coutner and set down_time if memory transfert have occured. (to avoid too fast downtime increment)

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
11 years agoallow manual ballooning if shares is set to zero
Dietmar Maurer [Fri, 28 Dec 2012 13:06:46 +0000 (14:06 +0100)]
allow manual ballooning if shares is set to zero

11 years agocorrectly set shares (allow 0)
Dietmar Maurer [Fri, 28 Dec 2012 13:05:58 +0000 (14:05 +0100)]
correctly set shares (allow 0)

11 years agofix permission check for option 'shares'
Dietmar Maurer [Fri, 28 Dec 2012 12:04:19 +0000 (13:04 +0100)]
fix permission check for option 'shares'

11 years agoapi2: vm_feature
Alexandre Derumier [Thu, 27 Dec 2012 15:06:55 +0000 (16:06 +0100)]
api2: vm_feature

return true/false if vm has feature

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
11 years agoadd sub has_feature
Alexandre Derumier [Thu, 27 Dec 2012 15:06:54 +0000 (16:06 +0100)]
add sub has_feature

loop over each disk of the vm config file to find if feature is available.

If one of the disk doesn't have the feature, we return undef, else return 1

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
11 years agoadd downtime && expected_downtime query-migrate info
Alexandre Derumier [Thu, 27 Dec 2012 08:18:16 +0000 (09:18 +0100)]
add downtime && expected_downtime query-migrate info

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
11 years agoadd error log for qm start of the target vm.
Alexandre Derumier [Thu, 27 Dec 2012 08:18:15 +0000 (09:18 +0100)]
add error log for qm start of the target vm.

Can be usefull to see what's wrong if target vm doesn't start (missing storage, missing bridge,...)

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
11 years agomove qmp migrate_set_down && migrate_set_speed to qemumigrate
Alexandre Derumier [Thu, 27 Dec 2012 08:18:14 +0000 (09:18 +0100)]
move qmp migrate_set_down && migrate_set_speed to qemumigrate

so we can set the values when the vm is running
also use int() to get json working

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
11 years agouse vm_mon_cmd_nocheck at startup
Dietmar Maurer [Thu, 20 Dec 2012 11:41:03 +0000 (12:41 +0100)]
use vm_mon_cmd_nocheck at startup

To avoid errors on migration.

11 years agoreport balloon_min in bytes (not MBs)
Dietmar Maurer [Wed, 19 Dec 2012 08:08:16 +0000 (09:08 +0100)]
report balloon_min in bytes (not MBs)

11 years agoenable balloon by default, unless explicitly disabled
Dietmar Maurer [Wed, 19 Dec 2012 06:30:34 +0000 (07:30 +0100)]
enable balloon by default, unless explicitly disabled

So that we can get memory stats from the guest.

11 years agoadd shares property for auto-ballooning
Dietmar Maurer [Wed, 19 Dec 2012 06:24:39 +0000 (07:24 +0100)]
add shares property for auto-ballooning

Also allow to set 'balloon: 0' to disable the ballon driver.

11 years agouse new query-balloon to get used/free memory
Dietmar Maurer [Tue, 18 Dec 2012 11:36:18 +0000 (12:36 +0100)]
use new query-balloon to get used/free memory

Also set stats-polling-interval on the balloon driver at startup.

bump version to 2.3-2

11 years agoinclude new qemu backup feature
Dietmar Maurer [Wed, 12 Dec 2012 14:35:26 +0000 (15:35 +0100)]
include new qemu backup feature

We can still restore old tar files. But new backups always use new vma
format.

Also moved rescan code from qm into PVE::Qemuserver

bump version to 2.3-1

11 years agobump version to 2.0-71
Dietmar Maurer [Tue, 11 Dec 2012 10:18:37 +0000 (11:18 +0100)]
bump version to 2.0-71

11 years agoalso support getfd
Dietmar Maurer [Thu, 6 Dec 2012 08:01:56 +0000 (09:01 +0100)]
also support getfd

11 years agoadd support for add-fd command
Dietmar Maurer [Thu, 6 Dec 2012 07:39:03 +0000 (08:39 +0100)]
add support for add-fd command

We can now pass open file descriptors to qemu.

11 years agoshow better error message if bridge does not exist
Dietmar Maurer [Thu, 6 Dec 2012 06:56:11 +0000 (07:56 +0100)]
show better error message if bridge does not exist

11 years agocleanup cpu types
Dietmar Maurer [Tue, 27 Nov 2012 05:37:19 +0000 (06:37 +0100)]
cleanup cpu types

Remove: rhel specific types cpu64-rhel6 cpu64-rhel5
Add: SandyBridge Haswell Opteron_G4 Opteron_G5

11 years agofix version parser for qemu 1.3
Dietmar Maurer [Fri, 23 Nov 2012 06:45:46 +0000 (07:45 +0100)]
fix version parser for qemu 1.3

11 years agoqmb balloon command expects bytes
Dietmar Maurer [Fri, 16 Nov 2012 05:14:35 +0000 (06:14 +0100)]
qmb balloon command expects bytes

11 years agovzdump: store drive in correct order (sort) to avoid confusion
Dietmar Maurer [Mon, 5 Nov 2012 05:26:25 +0000 (06:26 +0100)]
vzdump: store drive in correct order (sort) to avoid confusion

11 years agofix allocation size in qmrestore
Dietmar Maurer [Sat, 3 Nov 2012 06:55:11 +0000 (07:55 +0100)]
fix allocation size in qmrestore

11 years agovzdump: restore sata drives correctly
Dietmar Maurer [Fri, 2 Nov 2012 06:48:42 +0000 (07:48 +0100)]
vzdump: restore sata drives correctly

11 years agobump version to 2.0-65
Dietmar Maurer [Wed, 31 Oct 2012 12:58:46 +0000 (13:58 +0100)]
bump version to 2.0-65

11 years agoPVE/API2/Qemu: remove hardcoded blowfish cipher
Stefan Priebe [Wed, 31 Oct 2012 11:16:55 +0000 (12:16 +0100)]
PVE/API2/Qemu: remove hardcoded blowfish cipher

Signed-off-by: Stefan Priebe <s.priebe@profihost.ag>
11 years agofix memory leak in QMP Client (many thanks to Stefan!)
Dietmar Maurer [Mon, 29 Oct 2012 11:15:43 +0000 (12:15 +0100)]
fix memory leak in QMP Client (many thanks to Stefan!)

11 years agofix bug in vmtar
Dietmar Maurer [Thu, 25 Oct 2012 08:01:24 +0000 (10:01 +0200)]
fix bug in vmtar

Incompatiple types (size_t/ssize_t) can make vmtar to ignore errors. We now compile
with -Werror and -Wtype-limits to detect such things.

11 years agovncproxy: wait until vnc port is ready
Dietmar Maurer [Wed, 24 Oct 2012 06:59:31 +0000 (08:59 +0200)]
vncproxy: wait until vnc port is ready

11 years agoadd 'win8' ostype
Dietmar Maurer [Tue, 23 Oct 2012 07:36:18 +0000 (09:36 +0200)]
add 'win8' ostype

Use same defaults as win7 for now.

11 years agobump version to 2.0-60
Dietmar Maurer [Mon, 22 Oct 2012 10:27:14 +0000 (12:27 +0200)]
bump version to 2.0-60

11 years agopve-bridge : use mtu of the bridge for tap interface
Alexandre Derumier [Fri, 28 Sep 2012 08:58:26 +0000 (10:58 +0200)]
pve-bridge : use mtu of the bridge for tap interface

currently if the bridge have a mtu of 9000, when putting a tap interface on it (mtu 1500 by default),
the mtu of the bridge goes to 1500.

we want that the mtu of the tap interface equal the mtu of the bridge

correcting bug:
https://bugzilla.proxmox.com/show_bug.cgi?id=258

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
11 years agodisable vzdump for VM containing snapshots
Dietmar Maurer [Thu, 27 Sep 2012 07:42:48 +0000 (09:42 +0200)]
disable vzdump for VM containing snapshots

11 years agofix bug 251: use new command line syntax
Dietmar Maurer [Wed, 26 Sep 2012 10:42:03 +0000 (12:42 +0200)]
fix bug 251: use new command line syntax

11 years agoqm rescan: skip vm state files
Dietmar Maurer [Tue, 25 Sep 2012 08:27:35 +0000 (10:27 +0200)]
qm rescan: skip vm state files

11 years agoreserve more space for live snapshot state (2*memory)
Dietmar Maurer [Tue, 25 Sep 2012 07:36:45 +0000 (09:36 +0200)]
reserve more space for live snapshot state (2*memory)

11 years agopass timeout to qmp open_connection
Dietmar Maurer [Tue, 25 Sep 2012 07:27:24 +0000 (09:27 +0200)]
pass timeout to qmp open_connection

11 years agobump version to 2.0-57
Dietmar Maurer [Tue, 25 Sep 2012 06:12:59 +0000 (08:12 +0200)]
bump version to 2.0-57

11 years agomigrate volumes used inside snapshots including vmstate
Dietmar Maurer [Tue, 25 Sep 2012 05:42:01 +0000 (07:42 +0200)]
migrate volumes used inside snapshots including vmstate

Introduce new helper function foreach_volid()

11 years agofix check for non-shared disks
Dietmar Maurer [Tue, 25 Sep 2012 05:26:34 +0000 (07:26 +0200)]
fix check for non-shared disks

11 years agobump version to 2.0-56
Dietmar Maurer [Mon, 24 Sep 2012 14:00:03 +0000 (16:00 +0200)]
bump version to 2.0-56

11 years agoupdates for async shapshot patch
Dietmar Maurer [Mon, 24 Sep 2012 08:43:19 +0000 (10:43 +0200)]
updates for async shapshot patch

11 years agoremove timeout when loading state from file.
Dietmar Maurer [Thu, 20 Sep 2012 05:37:35 +0000 (07:37 +0200)]
remove timeout when loading state from file.

So we finally have no timeout when we migrate a vm or when we load state.

11 years agofix syntax error
Dietmar Maurer [Wed, 19 Sep 2012 10:37:33 +0000 (12:37 +0200)]
fix syntax error

11 years agowe need to continue the VM after loading state
Dietmar Maurer [Wed, 19 Sep 2012 08:40:30 +0000 (10:40 +0200)]
we need to continue the VM after loading state

11 years agorollback: do important tests before stopping VM
Dietmar Maurer [Wed, 19 Sep 2012 08:12:12 +0000 (10:12 +0200)]
rollback: do important tests before stopping VM

11 years agoallow nexenta snapshots, use new -loadstate option
Dietmar Maurer [Tue, 18 Sep 2012 07:23:47 +0000 (09:23 +0200)]
allow nexenta snapshots, use new -loadstate option

11 years agofix syntax error
Dietmar Maurer [Fri, 14 Sep 2012 11:58:49 +0000 (13:58 +0200)]
fix syntax error

11 years agocontinue VM after snapshot rollback
Dietmar Maurer [Fri, 14 Sep 2012 11:57:52 +0000 (13:57 +0200)]
continue VM after snapshot rollback

11 years agoinclude additional info in snapshot list
Dietmar Maurer [Thu, 13 Sep 2012 07:45:48 +0000 (09:45 +0200)]
include additional info in snapshot list

11 years agopass 'digest', so that GUI can detect changes easily
Dietmar Maurer [Thu, 13 Sep 2012 07:13:39 +0000 (09:13 +0200)]
pass 'digest', so that GUI can detect changes easily

Also use 'current' instead of '__current'

11 years agosnapshot: save state and implement rollback
Dietmar Maurer [Wed, 12 Sep 2012 11:34:55 +0000 (13:34 +0200)]
snapshot: save state and implement rollback

We automatically stop the VM on rollback, and start it again when there
is saved state.

11 years agouse long timeouts for snapshot monitor command
Dietmar Maurer [Wed, 12 Sep 2012 11:32:12 +0000 (13:32 +0200)]
use long timeouts for snapshot monitor command

Internal snapshots should be fast, but there is not guarantee.

11 years agosnapshot: allocate/free volid for VM state
Dietmar Maurer [Wed, 12 Sep 2012 09:59:48 +0000 (11:59 +0200)]
snapshot: allocate/free volid for VM state

11 years agosnapshot: don't overwrite main VM description
Dietmar Maurer [Wed, 12 Sep 2012 08:17:41 +0000 (10:17 +0200)]
snapshot: don't overwrite main VM description

11 years agosnapshot_delete: correctly unlink parent refs
Dietmar Maurer [Wed, 12 Sep 2012 08:10:08 +0000 (10:10 +0200)]
snapshot_delete: correctly unlink parent refs