packer-cn/examples/hcl/linux/source.virtualbox-iso.pkr.hcl

27 lines
1.0 KiB
HCL

source "virtualbox-iso" "base-ubuntu-amd64" {
headless = var.headless
guest_os_type = "Ubuntu_64"
http_directory = local.http_directory
shutdown_command = "echo 'vagrant' | sudo -S shutdown -P now"
ssh_username = "vagrant"
ssh_password = "vagrant"
ssh_port = 22
ssh_wait_timeout = "15m"
hard_drive_interface = "sata"
virtualbox_version_file = ".vbox_version"
guest_additions_path = "VBoxGuestAdditions_{{.Version}}.iso"
guest_additions_url = var.guest_additions_url
}
source "virtualbox-iso" "base-alpine-amd64" {
headless = var.headless
guest_os_type = "Linux26_64"
http_directory = local.http_directory
hard_drive_interface = "sata"
ssh_username = "root"
ssh_password = var.alpine_password
ssh_wait_timeout = "60m"
shutdown_command = "poweroff"
floppy_files = local.floppy_files_alpine
}