mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-08-06 06:01:51 +00:00
add qemu_snapshot_start
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
This commit is contained in:
parent
9dbd1ee434
commit
182e97d9b0
@ -2766,6 +2766,16 @@ sub qemu_volume_snapshot {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
sub qemu_snapshot_start {
|
||||||
|
my ($vmid, $snap) = @_;
|
||||||
|
|
||||||
|
#need to implement statefile location
|
||||||
|
my $statefile="/tmp/$vmid-$snap";
|
||||||
|
|
||||||
|
vm_mon_cmd($vmid, "snapshot-start", statefile => $statefile);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
sub vm_start {
|
sub vm_start {
|
||||||
my ($storecfg, $vmid, $statefile, $skiplock, $migratedfrom) = @_;
|
my ($storecfg, $vmid, $statefile, $skiplock, $migratedfrom) = @_;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user