Create appvm directory at start

This commit is contained in:
dump_stack() 2019-12-29 07:06:59 +00:00
parent 8bcf3eae87
commit 959e6e6596
Signed by: dump_stack
GPG Key ID: BE44DA8C062D87DC

View File

@ -361,6 +361,8 @@ func autoBalloon(l *libvirt.Libvirt, memoryMin, adjustPercent uint64) {
}
func main() {
os.Mkdir(os.Getenv("HOME")+"/appvm", 0700)
c, err := net.DialTimeout("unix", "/var/run/libvirt/libvirt-sock", time.Second)
if err != nil {
log.Fatal(err)