Commit Graph

85 Commits

Author SHA1 Message Date
Dietmar Maurer
c274d9f9f5 update version to 2.0-3 2011-11-09 11:36:09 +01:00
Dietmar Maurer
91c94f0a23 implement monitor API 2011-11-09 08:26:46 +01:00
Dietmar Maurer
4f1be36cdc allow node name 'localhost' 2011-11-03 07:39:01 +01:00
Dietmar Maurer
3ada46c9b1 use split_args from PVE::Tools 2011-10-25 12:19:36 +02:00
Dietmar Maurer
2415a44601 use shellquote from PVE::Tools 2011-10-25 11:37:56 +02:00
Dietmar Maurer
5b9d692ae7 allow to pass volume IDs in create_vm (restore) 2011-10-20 11:18:46 +02:00
Dietmar Maurer
bc4dcb99a1 test for CLI when using pipe 2011-10-20 10:51:28 +02:00
Dietmar Maurer
4925fe8ec1 fix shell quoting 2011-10-20 06:39:45 +02:00
Dietmar Maurer
7454902f67 mark iscsi service optional in init.d 2011-10-20 05:54:49 +02:00
Dietmar Maurer
97fb319d57 better documentation 2011-10-19 11:31:06 +02:00
Dietmar Maurer
9c502e26f3 enable piped input with qmrestore 2011-10-19 11:27:42 +02:00
Derumier Alexandre
58dc808de2 bugfix scsicontroller
Signed-off-by: Derumier Alexandre <aderumier@odiso.com>
2011-10-19 06:06:09 +02:00
Dietmar Maurer
51586c3a4c implement unique option for restore
Also try to convert old vlanX to new netX syntax.
2011-10-18 09:14:05 +02:00
Dietmar Maurer
a6af7b3e35 destroy old data when restore with --force 2011-10-18 07:42:29 +02:00
Dietmar Maurer
3e16d5fc60 implement qmrestore
Restore is a special case of create_vm.
2011-10-17 13:51:05 +02:00
Dietmar Maurer
c339b1967d 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
2011-10-14 14:47:35 +02:00
Dietmar Maurer
7476784c0f depend on open-iscsi
We need to add the iscsi dependency to the init.d script. Else
insserv tries to stops iscsi to early.
2011-10-14 14:16:26 +02:00
Dietmar Maurer
66ab1d916c fix vzdump plugin for 2.0 2011-10-14 11:05:06 +02:00
Derumier Alexandre
f19d1c4790 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>
2011-10-14 10:20:05 +02:00
Dietmar Maurer
43779a7baa remove wrong inline comment 2011-10-12 07:42:11 +02:00
Dietmar Maurer
1dc4f49676 further code cleanups 2011-10-11 13:30:18 +02:00
Dietmar Maurer
e8b9c17cac use 'boolean' for hotplug option
cleanup coding style
2011-10-11 13:22:40 +02:00
Derumier Alexandre
2bbed6c09a add a hook to call vm_devicedel with disk is removed from configuration
Signed-off-by: Derumier Alexandre <aderumier@odiso.com>
2011-10-11 13:13:05 +02:00
Derumier Alexandre
2ddd3d2e46 add a hook to call vm_deviceadd when the disk in config file are added
Signed-off-by: Derumier Alexandre <aderumier@odiso.com>
2011-10-11 13:12:46 +02:00
Derumier Alexandre
873c2d698f add vm_devicedel sub
use qm monitor to hot-unplug device.

Currently only virtio disk

Signed-off-by: Derumier Alexandre <aderumier@odiso.com>
2011-10-11 13:12:28 +02:00
Derumier Alexandre
a4dea33125 add vm_deviceadd sub
use qm monitor to hotplug pci device

currently only virtio disk

Signed-off-by: Derumier Alexandre <aderumier@odiso.com>
2011-10-11 13:12:13 +02:00
Derumier Alexandre
86fdcfb229 add vm_devices_list sub
parse qemu "info pci" result

Signed-off-by: Derumier Alexandre <aderumier@odiso.com>
2011-10-11 13:11:54 +02:00
Derumier Alexandre
2ff09f52e8 Add hotplug option
Signed-off-by: Derumier Alexandre <aderumier@odiso.com>
2011-10-11 13:11:05 +02:00
Dietmar Maurer
c6bb9502db add timeout parameter for stop/shotdown 2011-10-11 11:58:34 +02:00
Dietmar Maurer
5fdbe4f023 create background tasks 2011-10-10 13:17:40 +02:00
Dietmar Maurer
be62c45cf9 cleanups 2011-10-05 10:16:20 +02:00
Dietmar Maurer
9f91ff0281 use random_ether_addr() from PVE::Tools 2011-10-05 09:24:49 +02:00
Derumier Alexandre
e5f7f8ed0f remove net6 reservation and add comments for addr1, 2, 29 2011-10-05 06:40:42 +02:00
Derumier Alexandre
f290f8d92b fix net device pci addr 2011-10-04 09:06:56 +02:00
Derumier Alexandre
4513fd8304 fix scsi controllers pci addr 2011-10-04 09:06:52 +02:00
Derumier Alexandre
0a40e8eab5 fix watchdog pci addr
Signed-off-by: Derumier Alexandre <aderumier@odiso.com>
2011-10-04 07:54:21 +02:00
Derumier Alexandre
b78ebef7e7 fix hostpci addr
Signed-off-by: Derumier Alexandre <aderumier@odiso.com>
2011-10-04 07:54:16 +02:00
Derumier Alexandre
13b5a75337 Fix balloon0 device pci addr
Signed-off-by: Derumier Alexandre <aderumier@odiso.com>
2011-10-03 07:44:58 +02:00
Dietmar Maurer
32baffb4e0 change default boot order to cdn 2011-09-29 07:43:05 +02:00
Dietmar Maurer
5ee957cced only list 'qemu' VMs 2011-09-26 12:20:05 +02:00
Dietmar Maurer
26a3c2e12b start after clvm, stop before clvm 2011-09-21 12:26:59 +02:00
Dietmar Maurer
7878afeb10 cleanup balloon patch - removed debug code 2011-09-16 06:57:54 +02:00
Derumier Alexandre
13a4862059 Balloon ugly hack
add balloon:  parameter to config file

and set balloon at vm start.

Signed-off-by: Derumier Alexandre <aderumier@odiso.com>
2011-09-16 06:40:12 +02:00
Dietmar Maurer
6b64503eb2 fix coding style 2011-09-15 09:11:27 +02:00
Dietmar Maurer
e6c3b671bf fix online migration 2011-09-15 08:31:17 +02:00
Derumier Alexandre
72a063e494 add print_pci_addr
contain devices pci addr and bus mapping
return formated string with bus=pci.x,addr=x

also in this commit, use it for virtio disk

Signed-off-by: Derumier Alexandre <aderumier@odiso.com>
2011-09-15 08:08:47 +02:00
Dietmar Maurer
3ea94c60d2 move code from qmigrate into PVE/QemuMigrate.pm
and make migrate a subcommand of qm
2011-09-14 13:33:34 +02:00
Dietmar Maurer
694fcad480 use new PVE::ProcFSTools::read_proc_pid_stat() 2011-09-14 07:55:34 +02:00
Dietmar Maurer
19672434df delete trailing whitespaces 2011-09-12 12:26:00 +02:00
Dietmar Maurer
86b8fbeeee improve error message whern cdrom is on local storage 2011-09-12 12:22:02 +02:00