Skip to content

Commit

Permalink
Merge pull request #62 from phillipross/almalinux-cloudimages-parallels
Browse files Browse the repository at this point in the history
Add Parallels Vagrant box support
  • Loading branch information
LKHN authored Dec 2, 2021
2 parents 761f278 + 6d63a68 commit ec02d0d
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)

Expand Down
19 changes: 19 additions & 0 deletions almalinux-8-vagrant.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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"
Expand Down
4 changes: 4 additions & 0 deletions variables.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -94,4 +94,8 @@ variables {
"initrd /images/pxeboot/initrd.img<enter>",
"boot<enter><wait>"
]
//
// Parallels variables
//
parallels_tools_flavor_x86_64 = "lin"
}

0 comments on commit ec02d0d

Please sign in to comment.