fix qemu-guest-agent problem
This commit is contained in:
10
proxmox.go
10
proxmox.go
@@ -195,13 +195,21 @@ func createProxmoxVM(config *Config) error {
|
||||
},
|
||||
{"qm", "set", fmt.Sprintf("%d", config.VMID),
|
||||
"--serial0", "socket",
|
||||
"--vga", "serial0",
|
||||
"--vga", "std",
|
||||
},
|
||||
{"qm", "set", fmt.Sprintf("%d", config.VMID),
|
||||
"--ipconfig0", "ip=dhcp",
|
||||
},
|
||||
}
|
||||
|
||||
// Tambahkan ini
|
||||
if config.GuestAgent {
|
||||
commands = append(commands, []string{
|
||||
"qm", "set", fmt.Sprintf("%d", config.VMID),
|
||||
"--agent", "enabled=1",
|
||||
})
|
||||
}
|
||||
|
||||
// Firewall is now handled as part of the network config (buildNetworkConfig),
|
||||
// so no separate "qm set --firewall" command is required here.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user