Files

41 lines
1.6 KiB
HCL
Raw Permalink Normal View History

2023-11-27 21:00:35 -06:00
source "virtualbox-iso" "amd64" {
2024-07-12 21:15:01 -05:00
iso_urls = [ local.iso_location ]
2024-06-26 20:57:47 -05:00
iso_target_path = "cache/${var.iso.checksum}.iso"
2023-12-06 08:21:32 -08:00
iso_checksum = var.iso.checksum
output_directory = "output/virtualbox/${local.name}"
2022-06-04 13:23:22 -05:00
2023-12-06 08:21:32 -08:00
boot_command = var.boot_command
shutdown_command = var.shutdown_command
boot_wait = var.boot_wait
2022-06-04 13:23:22 -05:00
2023-12-06 08:21:32 -08:00
ssh_timeout = local.ssh.timeout
ssh_username = local.ssh.username
ssh_password = local.ssh.password
ssh_handshake_attempts = local.ssh.handshake_attempts
ssh_private_key_file = "vagrant/insecure_key"
2022-06-04 13:23:22 -05:00
2023-12-06 08:21:32 -08:00
vm_name = "packer-${local.name}"
disk_size = "${local.disk_size}000"
cpus = local.cpus
memory = local.memory
headless = var.headless
2023-12-30 05:37:32 +00:00
firmware = "efi"
2024-07-23 12:03:45 -05:00
#hard_drive_interface = "virtio"
2024-01-09 22:18:34 -06:00
guest_os_type = var.vbox_os_type
2025-08-17 14:22:37 -05:00
guest_additions_url = "https://download.virtualbox.org/virtualbox/7.2.0/VBoxGuestAdditions_7.2.0.iso"
guest_additions_sha256 = "43f7a1045cad0aab40e3af906fea37244ba6873b91b4e227245a14e51b399abd"
2024-01-09 22:18:34 -06:00
nic_type = "virtio"
gfx_vram_size = 128
2023-12-06 08:21:32 -08:00
vboxmanage = [
["modifyvm", "{{ .Name }}", "--uart1", "0x3F8", "4"],
#["modifyvm", "{{ .Name }}", "--uartmode1", "file", "output/vritualbox/serial-${var.arch}-${var.distro}-${var.version}"],
2024-01-09 22:18:34 -06:00
["modifyvm", "{{ .Name }}", "--nat-localhostreachable1", "on"]
2023-12-06 08:21:32 -08:00
]
2022-06-04 13:23:22 -05:00
2023-12-06 08:21:32 -08:00
http_content = var.http_files
http_directory = var.http_directory
cd_content = var.cd_content
cd_files = var.cd_files
cd_label = var.cd_label
2022-06-04 13:23:22 -05:00
}