diff --git a/proxmox/resource_vm_qemu.go b/proxmox/resource_vm_qemu.go index 10e918ab..9d7dea5b 100644 --- a/proxmox/resource_vm_qemu.go +++ b/proxmox/resource_vm_qemu.go @@ -107,6 +107,11 @@ func resourceVmQemu() *schema.Resource { Optional: true, Default: false, }, + "hotplug": { + Type: schema.TypeString, + Optional: true, + Default: "network,disk,usb", + }, "scsihw": { Type: schema.TypeString, Optional: true, @@ -398,6 +403,7 @@ func resourceVmQemuCreate(d *schema.ResourceData, meta interface{}) error { QemuSockets: d.Get("sockets").(int), QemuCpu: d.Get("cpu").(string), QemuNuma: d.Get("numa").(bool), + Hotplug: d.Get("hotplug").(string), Scsihw: d.Get("scsihw").(string), QemuOs: d.Get("qemu_os").(string), QemuNetworks: qemuNetworks, @@ -559,6 +565,7 @@ func resourceVmQemuUpdate(d *schema.ResourceData, meta interface{}) error { QemuSockets: d.Get("sockets").(int), QemuCpu: d.Get("cpu").(string), QemuNuma: d.Get("numa").(bool), + Hotplug: d.Get("hotplug").(string), Scsihw: d.Get("scsihw").(string), QemuOs: d.Get("qemu_os").(string), QemuNetworks: qemuNetworks, @@ -652,6 +659,7 @@ func resourceVmQemuRead(d *schema.ResourceData, meta interface{}) error { d.Set("sockets", config.QemuSockets) d.Set("cpu", config.QemuCpu) d.Set("numa", config.QemuNuma) + d.Set("hotplug", config.Hotplug) d.Set("scsihw", config.Scsihw) d.Set("qemu_os", config.QemuOs) // Cloud-init.