diff --git a/virtualbox/resource_vm.go b/virtualbox/resource_vm.go index 4cd5d88..e05013d 100644 --- a/virtualbox/resource_vm.go +++ b/virtualbox/resource_vm.go @@ -566,6 +566,8 @@ func netTfToVbox(d *schema.ResourceData) ([]vbox.NIC, error) { return vbox.IntelPro1000TServer, nil case "IntelPro1000MTServer": return vbox.IntelPro1000MTServer, nil + case "VirtIO": + return vbox.VirtIO, nil default: return "", fmt.Errorf("Invalid virtual network device: %s", attr) } @@ -656,6 +658,8 @@ func netVboxToTf(vm *vbox.Machine, d *schema.ResourceData) error { return "IntelPro1000TServer" case vbox.IntelPro1000MTServer: return "IntelPro1000MTServer" + case vbox.VirtIO: + return "VirtIO" default: return "" } diff --git a/website/docs/r/vm.html.markdown b/website/docs/r/vm.html.markdown index 68bdba6..6c1aeab 100644 --- a/website/docs/r/vm.html.markdown +++ b/website/docs/r/vm.html.markdown @@ -54,7 +54,7 @@ The following arguments are supported: `bridged`, `hostonly`, `internal`, `generic`. - `.#.device`, string, optional, default="IntelPro1000MTServer": The model of the virtual hardware device, allowed values: `PCIII`, `FASTIII`, - `IntelPro1000MTDesktop` `IntelPro1000TServer`, `IntelPro1000MTServer`. + `IntelPro1000MTDesktop` `IntelPro1000TServer`, `IntelPro1000MTServer`, `VirtIO`. - `.#.host_interface`, string, optional: Some network type (hostonly, bridged, etc) must bind to a host interface to work properly, use this field to specify the name of the host interface you like to bind to (like 'en0',