build: Switch to transfer through hypervisor host
This commit is contained in:
parent
33ba3771cc
commit
663804e1b6
@ -1,60 +1,61 @@
|
|||||||
source "vsphere-iso" "ubuntu" {
|
source "vsphere-iso" "ubuntu" {
|
||||||
vcenter_server = var.hv_fqdn
|
vcenter_server = var.hv_fqdn
|
||||||
username = var.hv_username
|
username = var.hv_username
|
||||||
password = var.hv_password
|
password = var.hv_password
|
||||||
insecure_connection = "true"
|
insecure_connection = "true"
|
||||||
|
|
||||||
datacenter = var.hv_datacenter
|
datacenter = var.hv_datacenter
|
||||||
cluster = var.hv_cluster
|
cluster = var.hv_cluster
|
||||||
host = var.hv_host
|
host = var.hv_host
|
||||||
folder = var.hv_folder
|
folder = var.hv_folder
|
||||||
datastore = var.hv_datastore
|
datastore = var.hv_datastore
|
||||||
|
|
||||||
guest_os_type = "ubuntu64Guest"
|
guest_os_type = "ubuntu64Guest"
|
||||||
|
|
||||||
boot_order = "disk,cdrom"
|
boot_order = "disk,cdrom"
|
||||||
boot_command = [
|
boot_command = [
|
||||||
"e<down><down><down><end>",
|
"e<down><down><down><end>",
|
||||||
" autoinstall ds=nocloud;",
|
" autoinstall ds=nocloud;",
|
||||||
"<F10>"
|
"<F10>"
|
||||||
]
|
]
|
||||||
boot_wait = "2s"
|
boot_wait = "2s"
|
||||||
|
|
||||||
communicator = "ssh"
|
communicator = "ssh"
|
||||||
ssh_username = "ubuntu"
|
ssh_username = "ubuntu"
|
||||||
ssh_password = var.ssh_password
|
ssh_password = var.ssh_password
|
||||||
ssh_timeout = "20m"
|
ssh_timeout = "20m"
|
||||||
ssh_handshake_attempts = "100"
|
ssh_handshake_attempts = "100"
|
||||||
ssh_pty = true
|
ssh_pty = true
|
||||||
|
|
||||||
CPUs = 4
|
CPUs = 4
|
||||||
RAM = 8192
|
RAM = 8192
|
||||||
|
|
||||||
network_adapters {
|
network_adapters {
|
||||||
network = var.hv_network
|
network = var.hv_network
|
||||||
network_card = "vmxnet3"
|
network_card = "vmxnet3"
|
||||||
}
|
}
|
||||||
storage {
|
storage {
|
||||||
disk_size = 76800
|
disk_size = 76800
|
||||||
disk_thin_provisioned = true
|
disk_thin_provisioned = true
|
||||||
}
|
}
|
||||||
disk_controller_type = ["pvscsi"]
|
disk_controller_type = ["pvscsi"]
|
||||||
usb_controller = ["xhci"]
|
usb_controller = ["xhci"]
|
||||||
|
|
||||||
cd_files = [
|
set_host_for_datastore_uploads = true
|
||||||
|
cd_files = [
|
||||||
"packer/preseed/UbuntuServer22.04/user-data",
|
"packer/preseed/UbuntuServer22.04/user-data",
|
||||||
"packer/preseed/UbuntuServer22.04/meta-data"
|
"packer/preseed/UbuntuServer22.04/meta-data"
|
||||||
]
|
]
|
||||||
cd_label = "cidata"
|
cd_label = "cidata"
|
||||||
iso_url = local.iso_authenticatedurl
|
iso_url = local.iso_authenticatedurl
|
||||||
iso_checksum = var.iso_checksum
|
iso_checksum = var.iso_checksum
|
||||||
|
|
||||||
shutdown_command = "echo '${var.ssh_password}' | sudo -S shutdown -P now"
|
shutdown_command = "echo '${var.ssh_password}' | sudo -S shutdown -P now"
|
||||||
shutdown_timeout = "5m"
|
shutdown_timeout = "5m"
|
||||||
|
|
||||||
remove_cdrom = true
|
remove_cdrom = true
|
||||||
|
|
||||||
export {
|
export {
|
||||||
output_directory = "/scratch"
|
output_directory = "/scratch"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user