skytap / terraform-provider-skytap

Terraform Skytap provider
https://www.terraform.io/docs/providers/skytap/
Mozilla Public License 2.0
4 stars 11 forks source link

Request: Add support for nested virtualization #69

Open dcode opened 4 years ago

dcode commented 4 years ago

Terraform Version

Terraform v0.12.26

Affected Resource(s)

Please list the resources as a list, for example:

Terraform Configuration Files

Proposed feature:

# From the documentation example
resource "skytap_vm" "vm" {
  template_id = 1473407
  vm_id = 37865463
  environment_id = "${skytap_environment.environment.id}"
  name = "my vm"
  cpus = 2
  ram = 4096
  nested_virtualization = true

  os_disk_size = 40000

  network_interface  {
     interface_type = "vmxnet3"
     network_id = "${skytap_network.network.id}"
     ip = "172.128.0.1"
     hostname = "myhost"

    published_service {
      name = "ssh"
      internal_port = 22
    }
  }
}

Debug Output

n/a

Panic Output

n/a

Expected Behavior

I expected that I would be able to set the nested_virtualization flag in the VM hardware options.

Actual Behavior

The documentation didn't suggest any such flag was available.

Steps to Reproduce

  1. Create a terraform file that creates a VM in an environment that you want to use nested virtualization (my use-case is a nested hypervisor).
  2. Read the documentation.
  3. Feel sad that I have to manually do this step later.

References

Not a GitHub issue, but this flag is straight out of the SkyTap API Environment VM v2 resource model