Initial snapshot support. Building now requires KVM too

This commit is contained in:
Anton Malinskiy
2018-11-20 13:48:45 +07:00
parent 254bb45a10
commit 22059da438
7 changed files with 129 additions and 38 deletions

12
templates/snapshot.expect Normal file
View File

@@ -0,0 +1,12 @@
#!/usr/bin/expect -f
set timeout -1
set TOKEN [lindex $argv 0];
spawn telnet localhost 5554
expect "OK"
send -- "auth $TOKEN\r"
expect "OK"
send -- "avd snapshot del default_boot\r"
expect "OK"
send -- "avd snapshot save default\r"
expect "OK"
send "exit\r"