Alexandre Derumier
1ac0d2ee0c
api2: vm_feature
...
return true/false if vm has feature
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2012-12-28 07:49:37 +01:00
Alexandre Derumier
7ea975efe0
add sub has_feature
...
loop over each disk of the vm config file to find if feature is available.
If one of the disk doesn't have the feature, we return undef, else return 1
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2012-12-28 07:48:33 +01:00
Alexandre Derumier
135007c099
add downtime && expected_downtime query-migrate info
...
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2012-12-27 12:45:56 +01:00
Alexandre Derumier
ab399b7c5d
add error log for qm start of the target vm.
...
Can be usefull to see what's wrong if target vm doesn't start (missing storage, missing bridge,...)
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2012-12-27 12:44:34 +01:00
Alexandre Derumier
3beb415bd7
move qmp migrate_set_down && migrate_set_speed to qemumigrate
...
so we can set the values when the vm is running
also use int() to get json working
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2012-12-27 12:43:39 +01:00
Dietmar Maurer
95381ce06c
use vm_mon_cmd_nocheck at startup
...
To avoid errors on migration.
2012-12-20 12:54:02 +01:00
Dietmar Maurer
4bdb05142c
report balloon_min in bytes (not MBs)
2012-12-19 09:08:16 +01:00
Dietmar Maurer
8d9ae0d21e
enable balloon by default, unless explicitly disabled
...
So that we can get memory stats from the guest.
2012-12-19 07:40:51 +01:00
Dietmar Maurer
8b1accf7ce
add shares property for auto-ballooning
...
Also allow to set 'balloon: 0' to disable the ballon driver.
2012-12-19 07:24:39 +01:00
Dietmar Maurer
64e7fcf2e2
use new query-balloon to get used/free memory
...
Also set stats-polling-interval on the balloon driver at startup.
bump version to 2.3-2
2012-12-18 12:52:18 +01:00
Dietmar Maurer
91bd6c909b
include new qemu backup feature
...
We can still restore old tar files. But new backups always use new vma
format.
Also moved rescan code from qm into PVE::Qemuserver
bump version to 2.3-1
2012-12-13 12:49:52 +01:00
Dietmar Maurer
a0e7a5d00d
also support getfd
2012-12-06 09:01:56 +01:00
Dietmar Maurer
558f16446e
add support for add-fd command
...
We can now pass open file descriptors to qemu.
2012-12-06 08:39:03 +01:00
Dietmar Maurer
98a0dc5e2a
cleanup cpu types
...
Remove: rhel specific types cpu64-rhel6 cpu64-rhel5
Add: SandyBridge Haswell Opteron_G4 Opteron_G5
2012-11-27 06:40:59 +01:00
Dietmar Maurer
fa7ae70505
fix version parser for qemu 1.3
2012-11-23 07:45:46 +01:00
Dietmar Maurer
42ca89538d
qmb balloon command expects bytes
2012-11-16 06:19:56 +01:00
Dietmar Maurer
075b417acd
vzdump: store drive in correct order (sort) to avoid confusion
2012-11-05 06:26:25 +01:00
Dietmar Maurer
4dac70e576
vzdump: restore sata drives correctly
2012-11-02 07:48:42 +01:00
Stefan Priebe
6bb726c903
PVE/API2/Qemu: remove hardcoded blowfish cipher
...
Signed-off-by: Stefan Priebe <s.priebe@profihost.ag>
2012-10-31 13:57:58 +01:00
Dietmar Maurer
b3ea07f71e
fix memory leak in QMP Client (many thanks to Stefan!)
2012-10-29 12:15:43 +01:00
Dietmar Maurer
3da8510790
vncproxy: wait until vnc port is ready
2012-10-24 08:59:31 +02:00
Dietmar Maurer
a70ebde31c
add 'win8' ostype
...
Use same defaults as win7 for now.
2012-10-23 09:36:18 +02:00
Dietmar Maurer
585b6e2839
disable vzdump for VM containing snapshots
2012-09-27 09:42:48 +02:00
Dietmar Maurer
8c55950564
fix bug 251: use new command line syntax
2012-09-26 12:47:32 +02:00
Dietmar Maurer
fe6249f496
reserve more space for live snapshot state (2*memory)
2012-09-25 09:48:29 +02:00
Dietmar Maurer
6d04217600
pass timeout to qmp open_connection
2012-09-25 09:27:24 +02:00
Dietmar Maurer
d5769dc253
migrate volumes used inside snapshots including vmstate
...
Introduce new helper function foreach_volid()
2012-09-25 08:09:50 +02:00
Dietmar Maurer
a06c7f7ec4
fix check for non-shared disks
2012-09-25 07:26:34 +02:00
Dietmar Maurer
9dcf4909f0
updates for async shapshot patch
2012-09-24 10:43:19 +02:00
Dietmar Maurer
681b2404cd
remove timeout when loading state from file.
...
So we finally have no timeout when we migrate a vm or when we load state.
2012-09-20 07:37:35 +02:00
Dietmar Maurer
8c609afd2b
fix syntax error
2012-09-19 12:37:33 +02:00
Dietmar Maurer
62de2cbdfa
we need to continue the VM after loading state
2012-09-19 10:40:30 +02:00
Dietmar Maurer
ab33a7c280
rollback: do important tests before stopping VM
2012-09-19 10:12:12 +02:00
Dietmar Maurer
6c47d54666
allow nexenta snapshots, use new -loadstate option
2012-09-18 09:23:47 +02:00
Dietmar Maurer
e2ea1bf1df
fix syntax error
2012-09-14 13:58:49 +02:00
Dietmar Maurer
bf5104f221
continue VM after snapshot rollback
2012-09-14 13:57:52 +02:00
Dietmar Maurer
6aa4651b89
include additional info in snapshot list
2012-09-13 09:45:48 +02:00
Dietmar Maurer
d191446898
pass 'digest', so that GUI can detect changes easily
...
Also use 'current' instead of '__current'
2012-09-13 09:13:39 +02:00
Dietmar Maurer
a3222b9184
snapshot: save state and implement rollback
...
We automatically stop the VM on rollback, and start it again when there
is saved state.
2012-09-12 13:34:55 +02:00
Dietmar Maurer
9d6890772d
use long timeouts for snapshot monitor command
...
Internal snapshots should be fast, but there is not guarantee.
2012-09-12 13:32:12 +02:00
Dietmar Maurer
18bfb361a0
snapshot: allocate/free volid for VM state
2012-09-12 11:59:48 +02:00
Dietmar Maurer
db7c26e55e
snapshot: don't overwrite main VM description
2012-09-12 10:17:41 +02:00
Dietmar Maurer
6cb1a8cfc1
snapshot_delete: correctly unlink parent refs
2012-09-12 10:10:08 +02:00
Dietmar Maurer
05e5ad3f8e
snapshot_create: correctly set parent when creating a new snapshot
2012-09-12 09:56:50 +02:00
Dietmar Maurer
030dd626f4
snapshot_create: check if vm is running before try to save state
2012-09-12 09:55:56 +02:00
Dietmar Maurer
2009f324ac
snapshot_delete: save changes after each drive snapshot removal
2012-09-12 08:58:33 +02:00
Dietmar Maurer
3ee28e388a
improve snapshot delete - add force option to API
2012-09-12 07:19:38 +02:00
Dietmar Maurer
d788cea673
add API to get/set snapshot configuration.
...
You can currently only modify the 'description'.
2012-09-11 09:34:48 +02:00
Dietmar Maurer
782f4f753f
add description for snapshots
2012-09-11 09:00:26 +02:00
Dietmar Maurer
982c7f1273
add snapshot time stamp
2012-09-11 08:45:39 +02:00