]> git.proxmox.com Git - qemu-server.git/log
qemu-server.git
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

12 years agoactivate LVM LVs more carefully
Dietmar Maurer [Fri, 25 Nov 2011 07:05:36 +0000 (08:05 +0100)]
activate LVM LVs more carefully

And remove syslog whenever possible (we run most commands as tasks, so
the output is loged anyways)

12 years agoset correct migrate speed
Dietmar Maurer [Wed, 23 Nov 2011 08:11:07 +0000 (09:11 +0100)]
set correct migrate speed

We overwrite slow kvm default.

12 years agoimprove error message when archive does not exist
Dietmar Maurer [Wed, 23 Nov 2011 06:30:43 +0000 (07:30 +0100)]
improve error message when archive does not exist

12 years agofix vzdump stop mode
Dietmar Maurer [Mon, 21 Nov 2011 05:38:11 +0000 (06:38 +0100)]
fix vzdump stop mode

12 years agoset version to 2.0-4
Dietmar Maurer [Sat, 19 Nov 2011 08:55:01 +0000 (09:55 +0100)]
set version to 2.0-4

12 years agofix cpu usage
Dietmar Maurer [Fri, 18 Nov 2011 08:35:32 +0000 (09:35 +0100)]
fix cpu usage

12 years agoadd cache=unsafe mode
Dietmar Maurer [Fri, 18 Nov 2011 04:48:52 +0000 (05:48 +0100)]
add cache=unsafe mode

12 years agoonly raise exception when parameter -force is set
Dietmar Maurer [Thu, 17 Nov 2011 12:36:56 +0000 (13:36 +0100)]
only raise exception when parameter -force is set

12 years agoupdate version to 2.0-3
Dietmar Maurer [Wed, 9 Nov 2011 10:36:09 +0000 (11:36 +0100)]
update version to 2.0-3

12 years agoimplement monitor API
Dietmar Maurer [Wed, 9 Nov 2011 07:26:46 +0000 (08:26 +0100)]
implement monitor API

12 years agoallow node name 'localhost'
Dietmar Maurer [Thu, 3 Nov 2011 06:39:01 +0000 (07:39 +0100)]
allow node name 'localhost'

12 years agouse split_args from PVE::Tools
Dietmar Maurer [Tue, 25 Oct 2011 10:19:36 +0000 (12:19 +0200)]
use split_args from PVE::Tools

12 years agouse shellquote from PVE::Tools
Dietmar Maurer [Tue, 25 Oct 2011 09:37:56 +0000 (11:37 +0200)]
use shellquote from PVE::Tools

12 years agoallow to pass volume IDs in create_vm (restore)
Dietmar Maurer [Thu, 20 Oct 2011 09:18:46 +0000 (11:18 +0200)]
allow to pass volume IDs in create_vm (restore)

12 years agotest for CLI when using pipe
Dietmar Maurer [Thu, 20 Oct 2011 08:51:28 +0000 (10:51 +0200)]
test for CLI when using pipe

12 years agofix shell quoting
Dietmar Maurer [Thu, 20 Oct 2011 04:39:45 +0000 (06:39 +0200)]
fix shell quoting

12 years agomark iscsi service optional in init.d
Dietmar Maurer [Thu, 20 Oct 2011 03:54:49 +0000 (05:54 +0200)]
mark iscsi service optional in init.d

12 years agobetter documentation
Dietmar Maurer [Wed, 19 Oct 2011 09:31:06 +0000 (11:31 +0200)]
better documentation

12 years agoenable piped input with qmrestore
Dietmar Maurer [Wed, 19 Oct 2011 09:27:42 +0000 (11:27 +0200)]
enable piped input with qmrestore

12 years agobugfix scsicontroller
Derumier Alexandre [Wed, 19 Oct 2011 03:54:37 +0000 (05:54 +0200)]
bugfix scsicontroller

Signed-off-by: Derumier Alexandre <aderumier@odiso.com>
12 years agoimplement unique option for restore
Dietmar Maurer [Tue, 18 Oct 2011 07:14:05 +0000 (09:14 +0200)]
implement unique option for restore

Also try to convert old vlanX to new netX syntax.

12 years agodestroy old data when restore with --force
Dietmar Maurer [Tue, 18 Oct 2011 05:42:29 +0000 (07:42 +0200)]
destroy old data when restore with --force

12 years agoimplement qmrestore
Dietmar Maurer [Mon, 17 Oct 2011 11:49:48 +0000 (13:49 +0200)]
implement qmrestore

Restore is a special case of create_vm.

12 years agoundo open-iscsi package dependency
Dietmar Maurer [Fri, 14 Oct 2011 12:47:35 +0000 (14:47 +0200)]
undo open-iscsi package dependency

We depend on iscsi ini init.d, but there is no need to add
a package dependency in contol.in

12 years agodepend on open-iscsi
Dietmar Maurer [Fri, 14 Oct 2011 12:16:26 +0000 (14:16 +0200)]
depend on open-iscsi

We need to add the iscsi dependency to the init.d script. Else
insserv tries to stops iscsi to early.

12 years agofix vzdump plugin for 2.0
Dietmar Maurer [Fri, 14 Oct 2011 09:05:06 +0000 (11:05 +0200)]
fix vzdump plugin for 2.0

12 years agoFix/cleanup disk hotplug
Derumier Alexandre [Fri, 14 Oct 2011 08:14:11 +0000 (10:14 +0200)]
Fix/cleanup disk hotplug

- pass $conf to create_disks sub
- add some checks on results of "drive_del","drive_add","device_del","device_add"
- replace "sleep 2" by iterative sub vm_waitfordevicecleanup

Signed-off-by: Derumier Alexandre <aderumier@odiso.com>
12 years agoremove wrong inline comment
Dietmar Maurer [Wed, 12 Oct 2011 05:42:11 +0000 (07:42 +0200)]
remove wrong inline comment

12 years agofurther code cleanups
Dietmar Maurer [Tue, 11 Oct 2011 11:28:50 +0000 (13:28 +0200)]
further code cleanups

12 years agouse 'boolean' for hotplug option
Dietmar Maurer [Tue, 11 Oct 2011 11:20:59 +0000 (13:20 +0200)]
use 'boolean' for hotplug option

cleanup coding style

12 years agoadd a hook to call vm_devicedel with disk is removed from configuration
Derumier Alexandre [Mon, 10 Oct 2011 14:46:58 +0000 (16:46 +0200)]
add a hook to call vm_devicedel with disk is removed from configuration

Signed-off-by: Derumier Alexandre <aderumier@odiso.com>
12 years agoadd a hook to call vm_deviceadd when the disk in config file are added
Derumier Alexandre [Mon, 10 Oct 2011 14:46:57 +0000 (16:46 +0200)]
add a hook to call vm_deviceadd when the disk in config file are added

Signed-off-by: Derumier Alexandre <aderumier@odiso.com>
12 years agoadd vm_devicedel sub
Derumier Alexandre [Mon, 10 Oct 2011 14:46:56 +0000 (16:46 +0200)]
add vm_devicedel sub

use qm monitor to hot-unplug device.

Currently only virtio disk

Signed-off-by: Derumier Alexandre <aderumier@odiso.com>
12 years agoadd vm_deviceadd sub
Derumier Alexandre [Mon, 10 Oct 2011 14:46:55 +0000 (16:46 +0200)]
add vm_deviceadd sub

use qm monitor to hotplug pci device

currently only virtio disk

Signed-off-by: Derumier Alexandre <aderumier@odiso.com>
12 years agoadd vm_devices_list sub
Derumier Alexandre [Mon, 10 Oct 2011 14:46:54 +0000 (16:46 +0200)]
add vm_devices_list sub

parse qemu "info pci" result

Signed-off-by: Derumier Alexandre <aderumier@odiso.com>
12 years agoAdd hotplug option
Derumier Alexandre [Mon, 10 Oct 2011 14:46:53 +0000 (16:46 +0200)]
Add hotplug option

Signed-off-by: Derumier Alexandre <aderumier@odiso.com>
12 years agoadd timeout parameter for stop/shotdown
Dietmar Maurer [Tue, 11 Oct 2011 09:58:34 +0000 (11:58 +0200)]
add timeout parameter for stop/shotdown

12 years agocreate background tasks
Dietmar Maurer [Mon, 10 Oct 2011 11:17:40 +0000 (13:17 +0200)]
create background tasks

12 years agocleanups
Dietmar Maurer [Wed, 5 Oct 2011 08:16:20 +0000 (10:16 +0200)]
cleanups

12 years agouse random_ether_addr() from PVE::Tools
Dietmar Maurer [Wed, 5 Oct 2011 07:24:49 +0000 (09:24 +0200)]
use random_ether_addr() from PVE::Tools

12 years agoremove net6 reservation and add comments for addr1, 2, 29
Derumier Alexandre [Wed, 5 Oct 2011 01:15:08 +0000 (03:15 +0200)]
remove net6 reservation and add comments for addr1, 2, 29

12 years agofix net device pci addr
Derumier Alexandre [Tue, 4 Oct 2011 06:25:37 +0000 (08:25 +0200)]
fix net device pci addr

12 years agofix scsi controllers pci addr
Derumier Alexandre [Tue, 4 Oct 2011 06:25:36 +0000 (08:25 +0200)]
fix scsi controllers pci addr

12 years agofix watchdog pci addr
Derumier Alexandre [Mon, 3 Oct 2011 12:53:10 +0000 (14:53 +0200)]
fix watchdog pci addr

Signed-off-by: Derumier Alexandre <aderumier@odiso.com>
12 years agofix hostpci addr
Derumier Alexandre [Mon, 3 Oct 2011 12:53:09 +0000 (14:53 +0200)]
fix hostpci addr

Signed-off-by: Derumier Alexandre <aderumier@odiso.com>
12 years agoFix balloon0 device pci addr
Derumier Alexandre [Fri, 30 Sep 2011 11:10:27 +0000 (13:10 +0200)]
Fix balloon0 device pci addr

Signed-off-by: Derumier Alexandre <aderumier@odiso.com>
12 years agochange default boot order to cdn
Dietmar Maurer [Thu, 29 Sep 2011 05:43:05 +0000 (07:43 +0200)]
change default boot order to cdn