Files
vms/sources/virtualbox-iso.pkr.hcl
T

36 lines
1.2 KiB
HCL
Raw Normal View History

2022-06-04 13:23:22 -05:00
source "virtualbox-iso" "x86_64" {
iso_url = var.iso.url
iso_checksum = var.iso.checksum
2023-08-12 13:54:23 -05:00
output_directory = "output/virtualbox/${local.name}"
2022-06-04 13:23:22 -05:00
boot_command = var.boot_command
shutdown_command = var.shutdown_command
boot_wait = var.boot_wait
ssh_timeout = local.ssh.timeout
ssh_username = local.ssh.username
ssh_password = local.ssh.password
ssh_handshake_attempts = local.ssh.handshake_attempts
2022-06-22 10:00:04 -05:00
ssh_private_key_file = "vagrant/insecure_key"
2022-06-04 13:23:22 -05:00
vm_name = "packer-${local.name}"
disk_size = "${local.disk_size}000"
cpus = local.cpus
memory = local.memory
headless = var.headless
2023-08-10 14:10:58 -05:00
guest_os_type = "Linux_64"
2023-08-03 14:44:02 -05:00
guest_additions_url = "http://download.virtualbox.org/virtualbox/7.0.10/VBoxGuestAdditions_7.0.10.iso"
guest_additions_sha256 = "bbabd89b8fff38a257bab039a278f0c4dc4426eff6e4238c1db01edb7284186a"
2022-06-08 01:39:37 -05:00
vboxmanage = [
["modifyvm", "{{ .Name }}", "--uart1", "0x3F8", "4"],
2023-08-12 13:54:23 -05:00
#["modifyvm", "{{ .Name }}", "--uartmode1", "file", "output/vritualbox/serial-${var.arch}-${var.distro}-${var.version}"],
2023-08-11 09:55:32 -05:00
["modifyvm", "{{ .Name }}", "--nat-localhostreachable1", "on"],
2022-06-08 01:39:37 -05:00
]
2022-06-04 13:23:22 -05:00
2023-08-03 15:46:44 -05:00
http_content = var.http_files
2023-08-11 20:36:18 -05:00
http_directory = var.http_directory
cd_content = var.cd_content
cd_files = var.cd_files
2023-08-03 15:46:44 -05:00
cd_label = var.cd_label
2022-06-04 13:23:22 -05:00
}