Commit Graph

452 Commits

Author SHA1 Message Date
Dietmar Maurer
ae9ca91d80 fix typo 2012-02-03 13:13:47 +01:00
Dietmar Maurer
09d0ee6473 fix CD eject 2012-02-03 10:49:37 +01:00
Dietmar Maurer
ae57f6b352 cleanup update_vm - factor out code to make is simpler 2012-02-03 10:23:50 +01:00
Dietmar Maurer
1858638fe3 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).
2012-02-02 14:18:41 +01:00
Dietmar Maurer
5d7a6767be 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.
2012-02-02 10:57:16 +01:00
Dietmar Maurer
1e68cb191a cleanup update_vm - always reload config
And moved parameter parsing code to top.
2012-02-02 08:35:11 +01:00
Dietmar Maurer
0532bc6391 cleanup update_vm - move param checks to start of function 2012-02-02 07:19:46 +01:00
Dietmar Maurer
a0d1b1a2fe start adding permission checks 2012-02-02 06:57:47 +01:00
Derumier Alexandre
26ee04b6a0 add ahci controller
Signed-off-by: Derumier Alexandre <aderumier@odiso.com>
2012-02-02 06:21:47 +01:00
Derumier Alexandre
cdb0931f68 add sata hdd support
Signed-off-by: Derumier Alexandre <aderumier@odiso.com>
2012-02-02 06:21:42 +01:00
Derumier Alexandre
5f0c4c32f2 cleanup warning messages
Signed-off-by: Derumier Alexandre <aderumier@odiso.com>
2012-01-30 06:13:14 +01:00
Derumier Alexandre
2630d2a958 add qemu_netdevadd, qemu_netdevdel and add them in hotplug code
Signed-off-by: Derumier Alexandre <aderumier@odiso.com>
2012-01-30 06:06:24 +01:00
Derumier Alexandre
cc4d61824c add print_netdevice_full, print_netdev_full subs
and change code to use it

Signed-off-by: Derumier Alexandre <aderumier@odiso.com>
2012-01-30 05:58:29 +01:00
Derumier Alexandre
3a1e36bb5a add nic hotplug to update_vm
Signed-off-by: Derumier Alexandre <aderumier@odiso.com>
2012-01-30 05:54:54 +01:00
Dietmar Maurer
5d39a18227 add lock around update_vm code 2012-01-27 09:53:48 +01:00
Dietmar Maurer
afdb31d5f8 removed trailing whitespace 2012-01-27 09:35:26 +01:00
Derumier Alexandre
c2a64aa7cf update_vm rework
now we write conf after each option.

Signed-off-by: Derumier Alexandre <aderumier@odiso.com>
2012-01-27 05:55:00 +01:00
Dietmar Maurer
378b359eef use new syntax for permission attribute 2012-01-23 11:59:28 +01:00
Derumier Alexandre
fcdb011702 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>
2012-01-23 09:15:57 +01:00
Derumier Alexandre
a4f091a073 add scsi disk hotplug/unplug
Signed-off-by: Derumier Alexandre <aderumier@odiso.com>
2012-01-23 09:14:31 +01:00
Derumier Alexandre
cfc817c710 add lsi controller hotplug
Signed-off-by: Derumier Alexandre <aderumier@odiso.com>
2012-01-23 09:13:01 +01:00
Derumier Alexandre
5e5dcb7362 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>
2012-01-23 09:09:15 +01:00
Derumier Alexandre
7ebe888a03 print_drivedevice_full : change deviceid: device-scsi to scsi and device-ide to ide
Signed-off-by: Derumier Alexandre <aderumier@odiso.com>
2012-01-23 09:07:21 +01:00
Derumier Alexandre
ec21aa112d rename vm_deviceadd to vm_deviceplug, and vm_devicedel to vm_deviceunplug
Signed-off-by: Derumier Alexandre <aderumier@odiso.com>
2012-01-23 09:06:24 +01:00
Derumier Alexandre
69b6ae0ce3 rename scsicontroller deviceid from scsi0/1 to lsi0/1
Signed-off-by: Derumier Alexandre <aderumier@odiso.com>
2012-01-23 09:05:34 +01:00
Dietmar Maurer
b6f39da2af use new assemble_vnc_ticket 2012-01-19 09:31:40 +01:00
Dietmar Maurer
f0cab979e5 catch exception when storage does not exists 2012-01-17 13:12:40 +01:00
Dietmar Maurer
254575e971 fix bug #81: do no deactivate volumes in vzdump stop mode
We add a keepActive parameter to stop/shutdown API.
2012-01-17 11:56:56 +01:00
Dietmar Maurer
97439670bc online migration fix: close tunnel later, wait for connection close 2012-01-17 11:25:44 +01:00
Dietmar Maurer
e95fe75f86 use 'da' instead of 'dk' for Danish keyboard
Qemu use that name.
2012-01-09 11:51:28 +01:00
Dietmar Maurer
8610701ae6 add ha flag to status info 2011-12-22 13:18:37 +01:00
Dietmar Maurer
31a9616c0b load vhost_net module 2011-12-20 12:28:20 +01:00
Dietmar Maurer
1061648ed4 use timeout flag instead of wait command 2011-12-16 06:35:07 +01:00
Dietmar Maurer
745fed70c0 do not raise exceptions in vm_stop_cleanup 2011-12-16 06:34:35 +01:00
Dietmar Maurer
4d81a1d327 dont raise errors if not needed 2011-12-16 06:32:09 +01:00
Dietmar Maurer
9269013a93 implement forceStop for vm_shutdown 2011-12-15 12:58:29 +01:00
Dietmar Maurer
17eed025b3 use PVE::Tools::run_with_timeout 2011-12-15 11:29:01 +01:00
Derumier Alexandre
231f2e13cb scsi-block auto detection
Signed-off-by: Derumier Alexandre <aderumier@odiso.com>
2011-12-13 10:45:39 +01:00
Dietmar Maurer
0888fdce30 fix bootorder 2011-12-08 11:41:58 +01:00
Dietmar Maurer
ac021d2e1d change parameter order for migrate 2011-12-08 11:08:17 +01:00
Dietmar Maurer
1c06086781 do not use ehci by default
Because the ehci driver blocks migration (ehci is currently not migratable)
2011-12-08 10:26:59 +01:00
Dietmar Maurer
d68afb26bf improve error message 2011-12-08 10:07:19 +01:00
Dietmar Maurer
72afda82a1 fix migration tunnel 2011-12-08 09:32:09 +01:00
Dietmar Maurer
2b5569777b use cache=none by default (for raw format) 2011-12-07 12:02:34 +01:00
Dietmar Maurer
3b408e826c use new bootindex option 2011-12-07 11:54:31 +01:00
Dietmar Maurer
2ed36a412c code cleanup 2011-12-07 11:41:27 +01:00
Dietmar Maurer
46a84fd400 replace logmsg() with $self->log() 2011-12-07 11:25:20 +01:00
Dietmar Maurer
a3c5221310 fix version parser for qemu-kvm 1.0 2011-12-07 11:16:57 +01:00
Dietmar Maurer
16e903f2dc use new AbstractMigrate.pm 2011-12-07 06:36:20 +01:00
Derumier Alexandre
2b05ac1331 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>
2011-12-07 06:24:36 +01:00