add qemu-wrapper.sh
This commit is contained in:
12
mc-vm-manager/qemu-wrapper.sh
Executable file
12
mc-vm-manager/qemu-wrapper.sh
Executable file
@@ -0,0 +1,12 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
vmid=$1
|
||||||
|
|
||||||
|
shift
|
||||||
|
|
||||||
|
date >> /tmp/cleanup
|
||||||
|
echo "Starting ${vmid}" >> /tmp/cleanup
|
||||||
|
/usr/bin/qemu-kvm $@
|
||||||
|
|
||||||
|
date >> /tmp/cleanup
|
||||||
|
echo "Cleaning up for ${vmid}" >> /tmp/cleanup
|
||||||
|
/root/tmp/manager.py cleanup $vmid
|
||||||
Reference in New Issue
Block a user