]> git.proxmox.com Git - qemu-server.git/log
qemu-server.git
12 years agofix bug #12: check storage availability early (migrate)
Dietmar Maurer [Fri, 30 Mar 2012 07:13:31 +0000 (09:13 +0200)]
fix bug #12: check storage availability early (migrate)

12 years agofix bug #121: activate volumes correctly
Dietmar Maurer [Thu, 29 Mar 2012 09:09:52 +0000 (11:09 +0200)]
fix bug #121: activate volumes correctly

12 years agocorrectly pass hexadecimal numbers with prefix 0x to kvm
Dietmar Maurer [Thu, 29 Mar 2012 05:12:43 +0000 (07:12 +0200)]
correctly pass hexadecimal numbers with prefix 0x to kvm

This is related to this change in kvm:

http://git.kernel.org/?p=virt/kvm/qemu-kvm.git;a=commitdiff;h=97aa6e9b8f9df37add21d86fac1a9ca6ce7df9b7

12 years agouse new network setup code from PVE::Network (libpve-common-perl)
Dietmar Maurer [Wed, 28 Mar 2012 08:37:28 +0000 (10:37 +0200)]
use new network setup code from PVE::Network (libpve-common-perl)

12 years agodo not use clusvcadm if we start using 'starturi' parameter
Dietmar Maurer [Tue, 27 Mar 2012 10:21:15 +0000 (12:21 +0200)]
do not use clusvcadm if we start using 'starturi' parameter

12 years agoavoid recursive calls to clusvcadm
Dietmar Maurer [Tue, 27 Mar 2012 08:55:59 +0000 (10:55 +0200)]
avoid recursive calls to clusvcadm

12 years agoskip ha managed VMs in startall
Dietmar Maurer [Tue, 27 Mar 2012 08:41:47 +0000 (10:41 +0200)]
skip ha managed VMs in startall

Instead thos VMs should be started by rgmanager.

12 years agofix bug #97: execute 'clusvcadm' commands for HA managed VMs
Dietmar Maurer [Tue, 27 Mar 2012 08:37:39 +0000 (10:37 +0200)]
fix bug #97: execute 'clusvcadm' commands for HA managed VMs

12 years agoonly wait 1 second to aquire lock on vm_create
Dietmar Maurer [Tue, 27 Mar 2012 06:50:04 +0000 (08:50 +0200)]
only wait 1 second to aquire lock on vm_create

Waiting is not necessary, and we want to avoid delays in the GUI.

12 years agocorretcly use tag instead of vlan
Dietmar Maurer [Thu, 22 Mar 2012 05:30:43 +0000 (06:30 +0100)]
corretcly use tag instead of vlan

12 years agorenamme vlan option to tag
Derumier Alexandre [Wed, 21 Mar 2012 12:58:04 +0000 (13:58 +0100)]
renamme vlan option to tag

Signed-off-by: Derumier Alexandre <aderumier@odiso.com>
12 years agouse Digest::SHA instead of Digest::SHA1
Dietmar Maurer [Tue, 20 Mar 2012 11:25:08 +0000 (12:25 +0100)]
use Digest::SHA instead of Digest::SHA1

12 years agocleanup startall code
Dietmar Maurer [Tue, 20 Mar 2012 08:43:10 +0000 (09:43 +0100)]
cleanup startall code

Only sleep when neccessary

12 years agomake startall wait up to 10 seconds for quorum
Dietmar Maurer [Tue, 20 Mar 2012 08:33:41 +0000 (09:33 +0100)]
make startall wait up to 10 seconds for quorum

12 years agoadd vlan for testing
Derumier Alexandre [Mon, 19 Mar 2012 08:39:21 +0000 (09:39 +0100)]
add vlan for testing

Signed-off-by: Derumier Alexandre <aderumier@odiso.com>
12 years agouse scsi inquiry to test if we can use the scsi-block driver
Dietmar Maurer [Mon, 19 Mar 2012 09:32:52 +0000 (10:32 +0100)]
use scsi inquiry to test if we can use the scsi-block driver

This is basically the same test as done inside the scsi-block driver. This also works for device-mapper multipath devices.

12 years agorestrict name to DNS format 'dns-name'
Dietmar Maurer [Tue, 13 Mar 2012 06:00:27 +0000 (07:00 +0100)]
restrict name to DNS format 'dns-name'

12 years agofix bug 102: remove stale status file on stop
Dietmar Maurer [Thu, 1 Mar 2012 11:54:06 +0000 (12:54 +0100)]
fix bug 102: remove stale status file on stop

12 years agosave description as comment
Dietmar Maurer [Thu, 1 Mar 2012 07:13:14 +0000 (08:13 +0100)]
save description as comment

12 years agofix lvremove call: avoid 'Not a CODE reference' warning
Dietmar Maurer [Thu, 1 Mar 2012 05:37:18 +0000 (06:37 +0100)]
fix lvremove call: avoid 'Not a CODE reference' warning

12 years agorevert tablet mice fix
Dietmar Maurer [Wed, 29 Feb 2012 08:47:31 +0000 (09:47 +0100)]
revert tablet mice fix

12 years agobump version for live migration fix
Dietmar Maurer [Wed, 29 Feb 2012 05:51:34 +0000 (06:51 +0100)]
bump version for live migration fix

12 years agofix tablet mice as default when live migrate
Derumier Alexandre [Mon, 27 Feb 2012 12:45:01 +0000 (13:45 +0100)]
fix tablet mice as default when live migrate

Signed-off-by: Derumier Alexandre <aderumier@odiso.com>
12 years agofix vzdump on stopped vm
Dietmar Maurer [Fri, 24 Feb 2012 06:40:12 +0000 (07:40 +0100)]
fix vzdump on stopped vm

12 years agobump version to release cpu model improvements
Dietmar Maurer [Wed, 22 Feb 2012 06:19:10 +0000 (07:19 +0100)]
bump version to release cpu model improvements

12 years agoSupport new cpu models
Derumier Alexandre [Tue, 21 Feb 2012 08:58:01 +0000 (09:58 +0100)]
Support new cpu models

Signed-off-by: Derumier Alexandre <aderumier@odiso.com>
12 years agofix cdrom permission check
Dietmar Maurer [Mon, 20 Feb 2012 06:17:10 +0000 (07:17 +0100)]
fix cdrom permission check

12 years agocorrectly remove cdrom and iscsi devices
Dietmar Maurer [Wed, 15 Feb 2012 09:48:55 +0000 (10:48 +0100)]
correctly remove cdrom and iscsi devices

12 years agouse correct format to print time_t (%zd)
Dietmar Maurer [Mon, 13 Feb 2012 10:22:03 +0000 (11:22 +0100)]
use correct format to print time_t (%zd)

12 years agoignore -tdf (avoid kvm warning) - this is no longer needed
Dietmar Maurer [Mon, 13 Feb 2012 10:18:09 +0000 (11:18 +0100)]
ignore -tdf (avoid kvm warning) - this is no longer needed

12 years agomove test for block device to vmtar.c
Dietmar Maurer [Fri, 10 Feb 2012 06:47:46 +0000 (07:47 +0100)]
move test for block device to vmtar.c

12 years agouse lseek to get size of block devices
Dietmar Maurer [Wed, 8 Feb 2012 05:42:14 +0000 (06:42 +0100)]
use lseek to get size of block devices

12 years agoonly use sparse file scan for files
Dietmar Maurer [Tue, 7 Feb 2012 10:55:57 +0000 (11:55 +0100)]
only use sparse file scan for files

12 years agofix typo
Dietmar Maurer [Tue, 7 Feb 2012 09:44:43 +0000 (10:44 +0100)]
fix typo

12 years agodo not write /etc/mtab when mounting snapshots
Dietmar Maurer [Tue, 7 Feb 2012 09:41:13 +0000 (10:41 +0100)]
do not write /etc/mtab when mounting snapshots

12 years agosupport new lzo compression
Dietmar Maurer [Tue, 7 Feb 2012 09:40:28 +0000 (10:40 +0100)]
support new lzo compression

12 years agofix typo
Dietmar Maurer [Mon, 6 Feb 2012 11:52:29 +0000 (12:52 +0100)]
fix typo

12 years agouse check_volume_access from $rpcenv
Dietmar Maurer [Mon, 6 Feb 2012 11:36:16 +0000 (12:36 +0100)]
use  check_volume_access from $rpcenv

12 years agouse check() instead of check_storage_perm()
Dietmar Maurer [Mon, 6 Feb 2012 11:19:35 +0000 (12:19 +0100)]
use check() instead of check_storage_perm()

12 years agodon't try to hotplug/unplug is device exist/don't exist
Derumier Alexandre [Sun, 5 Feb 2012 13:19:06 +0000 (14:19 +0100)]
don't try to hotplug/unplug is device exist/don't exist

Signed-off-by: Derumier Alexandre <aderumier@odiso.com>
12 years agocorrectly add/remove VMs to pool
Dietmar Maurer [Fri, 3 Feb 2012 12:44:12 +0000 (13:44 +0100)]
correctly add/remove VMs to pool

12 years agofix typo
Dietmar Maurer [Fri, 3 Feb 2012 12:13:47 +0000 (13:13 +0100)]
fix typo

12 years agofix CD eject
Dietmar Maurer [Fri, 3 Feb 2012 09:49:37 +0000 (10:49 +0100)]
fix CD eject

12 years agocleanup update_vm - factor out code to make is simpler
Dietmar Maurer [Fri, 3 Feb 2012 09:23:50 +0000 (10:23 +0100)]
cleanup update_vm - factor out code to make is simpler

12 years agoreplace change_config_nolock with update_config_nolock
Dietmar Maurer [Thu, 2 Feb 2012 13:01:08 +0000 (14:01 +0100)]
replace change_config_nolock with update_config_nolock

We now use cfs_file_write() in order to avoid race conditions between
file IO and cfs operations (read after write works now).

12 years agocleanup update_vm - carefully reload config after changes
Dietmar Maurer [Thu, 2 Feb 2012 09:41:08 +0000 (10:41 +0100)]
cleanup update_vm - carefully reload config after changes

Split out code to delete drive into delete_drive()

Always hotplug after config is written and reloaded.

Do not revert config if hotplug fails.

Do not safe config in add_unused_volume.

12 years agocleanup update_vm - always reload config
Dietmar Maurer [Thu, 2 Feb 2012 07:35:11 +0000 (08:35 +0100)]
cleanup update_vm - always reload config

And moved parameter parsing code to top.

12 years agocleanup update_vm - move param checks to start of function
Dietmar Maurer [Thu, 2 Feb 2012 06:19:46 +0000 (07:19 +0100)]
cleanup update_vm - move param checks to start of function

12 years agostart adding permission checks
Dietmar Maurer [Thu, 2 Feb 2012 05:39:38 +0000 (06:39 +0100)]
start adding permission checks

12 years agoadd ahci controller
Derumier Alexandre [Wed, 1 Feb 2012 12:25:20 +0000 (13:25 +0100)]
add ahci controller

Signed-off-by: Derumier Alexandre <aderumier@odiso.com>
12 years agoadd sata hdd support
Derumier Alexandre [Wed, 1 Feb 2012 12:25:19 +0000 (13:25 +0100)]
add sata hdd support

Signed-off-by: Derumier Alexandre <aderumier@odiso.com>
12 years agocleanup warning messages
Derumier Alexandre [Sat, 28 Jan 2012 16:07:33 +0000 (17:07 +0100)]
cleanup warning messages

Signed-off-by: Derumier Alexandre <aderumier@odiso.com>
12 years agoadd qemu_netdevadd, qemu_netdevdel and add them in hotplug code
Derumier Alexandre [Sat, 28 Jan 2012 10:02:29 +0000 (11:02 +0100)]
add qemu_netdevadd, qemu_netdevdel and add them in hotplug code

Signed-off-by: Derumier Alexandre <aderumier@odiso.com>
12 years agoadd print_netdevice_full, print_netdev_full subs
Derumier Alexandre [Sat, 28 Jan 2012 10:02:28 +0000 (11:02 +0100)]
add print_netdevice_full, print_netdev_full subs

and change code to use it

Signed-off-by: Derumier Alexandre <aderumier@odiso.com>
12 years agoadd nic hotplug to update_vm
Derumier Alexandre [Sat, 28 Jan 2012 10:02:27 +0000 (11:02 +0100)]
add nic hotplug to update_vm

Signed-off-by: Derumier Alexandre <aderumier@odiso.com>
12 years agoadd lock around update_vm code
Dietmar Maurer [Fri, 27 Jan 2012 08:53:48 +0000 (09:53 +0100)]
add lock around update_vm code

12 years agoremoved trailing whitespace
Dietmar Maurer [Fri, 27 Jan 2012 08:35:26 +0000 (09:35 +0100)]
removed trailing whitespace

12 years agoupdate_vm rework
Derumier Alexandre [Thu, 26 Jan 2012 18:43:48 +0000 (19:43 +0100)]
update_vm rework

now we write conf after each option.

Signed-off-by: Derumier Alexandre <aderumier@odiso.com>
12 years agouse new syntax for permission attribute
Dietmar Maurer [Mon, 23 Jan 2012 10:59:28 +0000 (11:59 +0100)]
use new syntax for permission attribute

12 years agorework of hotplug/unplug in Qemu.pm
Derumier Alexandre [Fri, 20 Jan 2012 10:42:08 +0000 (11:42 +0100)]
rework of hotplug/unplug in Qemu.pm

manage errors on more than 1 device
use unused disk for new created disk but failed hotplug

Signed-off-by: Derumier Alexandre <aderumier@odiso.com>
12 years agoadd scsi disk hotplug/unplug
Derumier Alexandre [Fri, 20 Jan 2012 10:42:07 +0000 (11:42 +0100)]
add scsi disk hotplug/unplug

Signed-off-by: Derumier Alexandre <aderumier@odiso.com>
12 years agoadd lsi controller hotplug
Derumier Alexandre [Fri, 20 Jan 2012 10:42:06 +0000 (11:42 +0100)]
add lsi controller hotplug

Signed-off-by: Derumier Alexandre <aderumier@odiso.com>
12 years agocreate qemu_deviceadd, qemu_devicedel, qemu_driveadd, qemu_drivedel, qemu_deviceaddve...
Derumier Alexandre [Fri, 20 Jan 2012 10:42:05 +0000 (11:42 +0100)]
create qemu_deviceadd, qemu_devicedel, qemu_driveadd, qemu_drivedel, qemu_deviceaddverify, qemu_devicedelverify

and replace code in vm_deviceplug/vm_deviceunplug

Signed-off-by: Derumier Alexandre <aderumier@odiso.com>
12 years agoprint_drivedevice_full : change deviceid: device-scsi to scsi and device-ide to ide
Derumier Alexandre [Fri, 20 Jan 2012 10:42:04 +0000 (11:42 +0100)]
print_drivedevice_full : change deviceid: device-scsi to scsi and device-ide to ide

Signed-off-by: Derumier Alexandre <aderumier@odiso.com>
12 years agorename vm_deviceadd to vm_deviceplug, and vm_devicedel to vm_deviceunplug
Derumier Alexandre [Fri, 20 Jan 2012 10:42:03 +0000 (11:42 +0100)]
rename vm_deviceadd to vm_deviceplug, and vm_devicedel to vm_deviceunplug

Signed-off-by: Derumier Alexandre <aderumier@odiso.com>
12 years agorename scsicontroller deviceid from scsi0/1 to lsi0/1
Derumier Alexandre [Fri, 20 Jan 2012 10:42:02 +0000 (11:42 +0100)]
rename scsicontroller deviceid from scsi0/1 to lsi0/1

Signed-off-by: Derumier Alexandre <aderumier@odiso.com>
12 years agouse new assemble_vnc_ticket
Dietmar Maurer [Thu, 19 Jan 2012 08:31:40 +0000 (09:31 +0100)]
use new assemble_vnc_ticket

12 years agocatch exception when storage does not exists
Dietmar Maurer [Tue, 17 Jan 2012 12:12:40 +0000 (13:12 +0100)]
catch exception when storage does not exists

12 years agofix bug #81: do no deactivate volumes in vzdump stop mode
Dietmar Maurer [Tue, 17 Jan 2012 10:56:56 +0000 (11:56 +0100)]
fix bug #81: do no deactivate volumes in vzdump stop mode

We add a keepActive parameter to stop/shutdown API.

12 years agoonline migration fix: close tunnel later, wait for connection close
Dietmar Maurer [Tue, 17 Jan 2012 10:25:44 +0000 (11:25 +0100)]
online migration fix: close tunnel later, wait for connection close

12 years agouse 'da' instead of 'dk' for Danish keyboard
Dietmar Maurer [Mon, 9 Jan 2012 10:25:25 +0000 (11:25 +0100)]
use 'da' instead of 'dk' for Danish keyboard

Qemu use that name.

12 years agoadd ha flag to status info
Dietmar Maurer [Thu, 22 Dec 2011 12:10:27 +0000 (13:10 +0100)]
add ha flag to status info

12 years agoload vhost_net module
Dietmar Maurer [Tue, 20 Dec 2011 11:28:20 +0000 (12:28 +0100)]
load vhost_net module

12 years agouse timeout flag instead of wait command
Dietmar Maurer [Fri, 16 Dec 2011 05:35:07 +0000 (06:35 +0100)]
use timeout flag instead of wait command

12 years agodo not raise exceptions in vm_stop_cleanup
Dietmar Maurer [Fri, 16 Dec 2011 05:34:35 +0000 (06:34 +0100)]
do not raise exceptions in vm_stop_cleanup

12 years agodont raise errors if not needed
Dietmar Maurer [Fri, 16 Dec 2011 05:32:09 +0000 (06:32 +0100)]
dont raise errors if not needed

12 years agoimplement forceStop for vm_shutdown
Dietmar Maurer [Thu, 15 Dec 2011 11:47:39 +0000 (12:47 +0100)]
implement forceStop for vm_shutdown

12 years agouse PVE::Tools::run_with_timeout
Dietmar Maurer [Thu, 15 Dec 2011 10:29:01 +0000 (11:29 +0100)]
use PVE::Tools::run_with_timeout

12 years agoscsi-block auto detection
Derumier Alexandre [Tue, 13 Dec 2011 08:59:28 +0000 (09:59 +0100)]
scsi-block auto detection

Signed-off-by: Derumier Alexandre <aderumier@odiso.com>
12 years agofix bootorder
Dietmar Maurer [Thu, 8 Dec 2011 10:41:58 +0000 (11:41 +0100)]
fix bootorder

12 years agochange parameter order for migrate
Dietmar Maurer [Thu, 8 Dec 2011 10:08:17 +0000 (11:08 +0100)]
change parameter order for migrate

12 years agodo not use ehci by default
Dietmar Maurer [Thu, 8 Dec 2011 09:24:56 +0000 (10:24 +0100)]
do not use ehci by default

Because the ehci driver blocks migration (ehci is currently not migratable)

12 years agoimprove error message
Dietmar Maurer [Thu, 8 Dec 2011 09:07:19 +0000 (10:07 +0100)]
improve error message

12 years agofix migration tunnel
Dietmar Maurer [Thu, 8 Dec 2011 08:32:09 +0000 (09:32 +0100)]
fix migration tunnel

12 years agouse cache=none by default (for raw format)
Dietmar Maurer [Wed, 7 Dec 2011 11:02:34 +0000 (12:02 +0100)]
use cache=none by default (for raw format)

12 years agouse new bootindex option
Dietmar Maurer [Wed, 7 Dec 2011 10:54:31 +0000 (11:54 +0100)]
use new bootindex option

12 years agocode cleanup
Dietmar Maurer [Wed, 7 Dec 2011 10:41:27 +0000 (11:41 +0100)]
code cleanup

12 years agoreplace logmsg() with $self->log()
Dietmar Maurer [Wed, 7 Dec 2011 10:25:20 +0000 (11:25 +0100)]
replace logmsg() with $self->log()

12 years agofix version parser for qemu-kvm 1.0
Dietmar Maurer [Wed, 7 Dec 2011 10:16:57 +0000 (11:16 +0100)]
fix version parser for qemu-kvm 1.0

12 years agouse new AbstractMigrate.pm
Dietmar Maurer [Wed, 7 Dec 2011 05:36:20 +0000 (06:36 +0100)]
use new AbstractMigrate.pm

12 years agoadd ide-cd, ide-hd, scsi-cd, scsi-hd, scsi-block to device syntax
Derumier Alexandre [Tue, 6 Dec 2011 08:51:33 +0000 (09:51 +0100)]
add ide-cd, ide-hd, scsi-cd, scsi-hd, scsi-block to device syntax

ide-cd, ide-hd replace old ide-drive legacy syntax
scsi-cd, iscsi-hd replace old ide-drive legacy syntax
scsi-block is new in qemu 1.0

Signed-off-by: Derumier Alexandre <aderumier@odiso.com>
12 years agocorrectly set exit code
Dietmar Maurer [Wed, 30 Nov 2011 08:34:38 +0000 (09:34 +0100)]
correctly set exit code

12 years agofix vm_shutdown bug - pass storecfg parameter
Dietmar Maurer [Wed, 30 Nov 2011 08:33:43 +0000 (09:33 +0100)]
fix vm_shutdown bug - pass storecfg parameter

12 years agocleanup error messages
Dietmar Maurer [Tue, 29 Nov 2011 11:43:34 +0000 (12:43 +0100)]
cleanup error messages

12 years agofix stopall
Dietmar Maurer [Tue, 29 Nov 2011 10:14:26 +0000 (11:14 +0100)]
fix stopall

12 years agoupdate version to 2.0-8
Dietmar Maurer [Tue, 29 Nov 2011 07:08:56 +0000 (08:08 +0100)]
update version to 2.0-8

12 years agobe more careful when removing snapshots
Dietmar Maurer [Tue, 29 Nov 2011 05:19:42 +0000 (06:19 +0100)]
be more careful when removing snapshots

12 years agowe can only resume a VM which is running
Dietmar Maurer [Mon, 28 Nov 2011 12:28:18 +0000 (13:28 +0100)]
we can only resume a VM which is running

12 years agotry to detect errors before starting the background task
Dietmar Maurer [Fri, 25 Nov 2011 12:25:32 +0000 (13:25 +0100)]
try to detect errors before starting the background task

12 years agodo not call check_lock() for sendkey
Dietmar Maurer [Fri, 25 Nov 2011 12:20:58 +0000 (13:20 +0100)]
do not call check_lock() for sendkey