diff --git a/README.md b/README.md index e9dce3b..1819d48 100644 --- a/README.md +++ b/README.md @@ -60,6 +60,12 @@ Build a VMWare box: $ packer build -only=vmware-iso.almalinux-8 . ``` +Build a Parallels box: + +```sh +$ packer build -only=parallels-iso.almalinux-8 . +``` + Build a Libvirt box: ```sh @@ -258,6 +264,7 @@ $ packer build -only=qemu.almalinux-8-opennebula-aarch64 . * [Packer](https://www.packer.io/) * [Ansible](https://www.ansible.com/) * [VirtualBox](https://www.virtualbox.org/) (for VirtualBox images only) +* [Parallels](https://www.parallels.com/) (for Parallels images only) * [VMWare Workstation](https://www.vmware.com/products/workstation-pro.html) (for VMWare images and Amazon AMI's only) * [QEMU](https://www.qemu.org/) (for Generic Cloud, Vagrant Libvirt, AWS AMI, OpenNebula and DigitalOcean images only) diff --git a/almalinux-8-vagrant.pkr.hcl b/almalinux-8-vagrant.pkr.hcl index 9f85788..dd6f093 100644 --- a/almalinux-8-vagrant.pkr.hcl +++ b/almalinux-8-vagrant.pkr.hcl @@ -24,6 +24,24 @@ source "hyperv-iso" "almalinux-8" { } +source "parallels-iso" "almalinux-8" { + boot_command = var.vagrant_boot_command + boot_wait = var.boot_wait + cpus = var.cpus + disk_size = var.vagrant_disk_size + guest_os_type = "centos" + http_directory = var.http_directory + iso_checksum = var.iso_checksum_x86_64 + iso_url = var.iso_url_x86_64 + memory = var.memory + parallels_tools_flavor = var.parallels_tools_flavor_x86_64 + shutdown_command = var.vagrant_shutdown_command + ssh_password = var.vagrant_ssh_password + ssh_timeout = var.ssh_timeout + ssh_username = var.vagrant_ssh_username +} + + source "virtualbox-iso" "almalinux-8" { iso_url = var.iso_url_x86_64 iso_checksum = var.iso_checksum_x86_64 @@ -104,6 +122,7 @@ source "qemu" "almalinux-8" { build { sources = [ "sources.hyperv-iso.almalinux-8", + "sources.parallels-iso.almalinux-8", "sources.virtualbox-iso.almalinux-8", "sources.vmware-iso.almalinux-8", "sources.qemu.almalinux-8" diff --git a/variables.pkr.hcl b/variables.pkr.hcl index 0de1d05..9ba0679 100644 --- a/variables.pkr.hcl +++ b/variables.pkr.hcl @@ -94,4 +94,8 @@ variables { "initrd /images/pxeboot/initrd.img", "boot" ] + // + // Parallels variables + // + parallels_tools_flavor_x86_64 = "lin" }