diff --git a/docs/resources/virtual_environment_vm.md b/docs/resources/virtual_environment_vm.md index c6c920b93..867086f06 100755 --- a/docs/resources/virtual_environment_vm.md +++ b/docs/resources/virtual_environment_vm.md @@ -360,6 +360,7 @@ output "ubuntu_vm_public_key" { is a relative path under `/usr/share/kvm/`. - `xvga` - (Optional) Marks the PCI(e) device as the primary GPU of the VM. With this enabled the `vga` configuration argument will be ignored. +- `hotplug` - (Optional) Selectively enable hotplug features - `usb` - (Optional) A host USB device mapping (multiple blocks supported). - `host` - (Optional) The Host USB device or port or the value `spice`. Use either this or `mapping`. - `mapping` - (Optional) The cluster-wide resource mapping name of the device, for example "usbdevice". Use either this or `host`. diff --git a/proxmoxtf/resource/vm/vm.go b/proxmoxtf/resource/vm/vm.go index 777ccad62..1b9c20c48 100644 --- a/proxmoxtf/resource/vm/vm.go +++ b/proxmoxtf/resource/vm/vm.go @@ -219,6 +219,7 @@ const ( mkHostPCIDeviceROMBAR = "rombar" mkHostPCIDeviceROMFile = "rom_file" mkHostPCIDeviceXVGA = "xvga" + mkHotplug = "hotplug" mkInitialization = "initialization" mkInitializationDatastoreID = "datastore_id" mkInitializationInterface = "interface" @@ -1073,6 +1074,12 @@ func VM() *schema.Resource { }, }, }, + mkHotplug: { + Type: schema.TypeString, + Description: "Selectively enable hotplug features", + Optional: true, + Default: "network,disk,usb", + }, mkKeyboardLayout: { Type: schema.TypeString, Description: "The keyboard layout",