Merge pull request #10140 from hashicorp/azr-add-vmware-vmx-example
HCL2: add vmware vmx example
This commit is contained in:
commit
9a869f50bd
|
@ -58,6 +58,11 @@ EOF
|
|||
boot_command = local.ubuntu_1604_boot_command
|
||||
}
|
||||
|
||||
source "source.vmware-vmx.base-ubuntu-amd64" {
|
||||
name = "16.04"
|
||||
source_path = "vmware_iso_ubuntu_1604_amd64/packer-base-ubuntu-amd64.vmx"
|
||||
}
|
||||
|
||||
source "source.vmware-iso.base-ubuntu-amd64" {
|
||||
name = "18.04"
|
||||
iso_url = local.iso_url_ubuntu_1804
|
||||
|
|
|
@ -0,0 +1,16 @@
|
|||
source "vmware-vmx" "base-ubuntu-amd64" {
|
||||
headless = var.headless
|
||||
boot_wait = "10s"
|
||||
http_directory = local.http_directory
|
||||
shutdown_command = "echo 'vagrant' | sudo -S shutdown -P now"
|
||||
ssh_password = "vagrant"
|
||||
ssh_port = 22
|
||||
ssh_timeout = "10000s"
|
||||
ssh_username = "vagrant"
|
||||
tools_upload_flavor = "linux"
|
||||
vmx_data = {
|
||||
"cpuid.coresPerSocket" = "1"
|
||||
"ethernet0.pciSlotNumber" = "32"
|
||||
}
|
||||
vmx_remove_ethernet_interfaces = true
|
||||
}
|
|
@ -1,5 +1,5 @@
|
|||
variable "ubuntu_1604_version" {
|
||||
default = "16.04.6"
|
||||
default = "16.04.7"
|
||||
}
|
||||
|
||||
locals {
|
||||
|
|
Loading…
Reference in New Issue