packer-cn/examples/hcl/linux/source.vmware-vmx.pkr.hcl

17 lines
580 B
HCL
Raw Permalink Normal View History

2020-10-21 09:55:54 -04:00
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
}