Commit Graph

67 Commits

Author SHA1 Message Date
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
Dietmar Maurer
9b20b0601a Also test is cdrom is on shared storage
Else we can't migrate.
2011-09-12 11:39:48 +02:00
Dietmar Maurer
7f0b5bebc6 check hvm support before starting VM 2011-09-12 11:03:14 +02:00
Dietmar Maurer
669963ffbe do not allow to migrate VM which uses local resources
But add a --force parameter to overwrite
2011-09-12 11:01:52 +02:00
Dietmar Maurer
34978be308 fix serial/parallel option - check if device really exists 2011-09-12 08:59:05 +02:00
Dietmar Maurer
e0ab7331aa remove support for old hostusb syntax 2011-09-12 08:41:28 +02:00
Dietmar Maurer
76178b62d9 Use 'dd' option ibs/obs instead of bs
See http://lists.gnu.org/archive/html/bug-coreutils/2011-03/msg00034.html
2011-09-12 08:34:02 +02:00
Dietmar Maurer
ca0cef2624 Simplify serial/parallel option parser
Remove verify()/parse() methods, because the json schema does
that job already (pattern option)
2011-09-12 07:44:02 +02:00
Dietmar Maurer
2fe1a152f4 Simplify schema for serial/parallel options (use pattern) 2011-09-12 07:08:01 +02:00
Derumier Alexandre
1989a89c95 parallel : new qemu syntax V2
Signed-off-by: Derumier Alexandre <aderumier@odiso.com>
2011-09-12 06:52:34 +02:00
Derumier Alexandre
bae179aa1c serial : new qemu syntax V2
Signed-off-by: Derumier Alexandre <aderumier@odiso.com>
2011-09-12 06:51:47 +02:00
Derumier Alexandre
040b06b73e Hostpci rework v4
Signed-off-by: Derumier Alexandre <aderumier@odiso.com>
2011-09-12 06:50:01 +02:00
Dietmar Maurer
0d29ab3bd2 fix build error 2011-09-09 14:18:11 +02:00
Derumier Alexandre
941e0c42a5 Add scsi controllers V2
only if scsi disk exists

Signed-off-by: Derumier Alexandre <aderumier@odiso.com>
2011-09-09 12:20:19 +02:00
Dietmar Maurer
64e1340181 New method to check if VM uses local resources 2011-09-09 12:13:21 +02:00
Dietmar Maurer
1ef75254a1 start fixing qmigrate (still not working) 2011-09-09 12:10:29 +02:00
Dietmar Maurer
f669a2b1fb Check quorum in startall 2011-09-09 11:32:53 +02:00
Dietmar Maurer
32f9da6804 Check quorum when starting migration tunnel 2011-09-09 11:28:18 +02:00
Dietmar Maurer
a78ccf26fc Add node parameter to config_file()
That way we can get the filename for VMs on remove nodes.
2011-09-09 09:47:54 +02:00