Dietmar Maurer
3e21388903
move test for block device to vmtar.c
2012-02-10 07:47:46 +01:00
Dietmar Maurer
15fa30e3ec
use lseek to get size of block devices
2012-02-08 06:42:14 +01:00
Dietmar Maurer
a9a94d59f3
only use sparse file scan for files
2012-02-07 11:55:57 +01:00
Dietmar Maurer
6e5c4da7ef
fix typo
2012-02-07 10:44:43 +01:00
Dietmar Maurer
efb71b0f8c
do not write /etc/mtab when mounting snapshots
2012-02-07 10:41:13 +01:00
Dietmar Maurer
fad02a160f
support new lzo compression
2012-02-07 10:40:28 +01:00
Dietmar Maurer
ab6b35dfdf
fix typo
2012-02-06 12:52:29 +01:00
Dietmar Maurer
ba68cf0938
use check_volume_access from $rpcenv
2012-02-06 12:36:16 +01:00
Dietmar Maurer
fcbb753e3c
use check() instead of check_storage_perm()
2012-02-06 12:19:35 +01:00
Derumier Alexandre
95d6343bfa
don't try to hotplug/unplug is device exist/don't exist
...
Signed-off-by: Derumier Alexandre <aderumier@odiso.com>
2012-02-06 07:26:38 +01:00
Dietmar Maurer
502d18a2e7
correctly add/remove VMs to pool
2012-02-03 13:44:12 +01:00
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