mirror of
https://code.dumpstack.io/tools/appvm.git
synced 2024-11-16 09:13:01 +00:00
Create appvm directory at start
This commit is contained in:
parent
8bcf3eae87
commit
959e6e6596
2
appvm.go
2
appvm.go
@ -361,6 +361,8 @@ func autoBalloon(l *libvirt.Libvirt, memoryMin, adjustPercent uint64) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
os.Mkdir(os.Getenv("HOME")+"/appvm", 0700)
|
||||||
|
|
||||||
c, err := net.DialTimeout("unix", "/var/run/libvirt/libvirt-sock", time.Second)
|
c, err := net.DialTimeout("unix", "/var/run/libvirt/libvirt-sock", time.Second)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
|
Loading…
Reference in New Issue
Block a user