Trying to build an Ubuntu 18.04.3 LTS image into Parallels

Hello,

I’ve been wracking my brain trying to get a packer image built of Ubuntu 18.04.3 LTS into my local Parallels install on my iMac. I do have the Parallels SDK installed.

This is my first time building with Packer and I can’t help but think that I’m missing something obvious.

Some notes:

macOS Catalina (10.15.1)
Parallels Desktop Pro Edition (15.1.1)

build-ubuntu-parallels.json


{
“variables”: {
“vm_name”: “ubuntu-18.04”,
“cpu”: “2”,
“ram_size”: “4096”,
“disk_size”: “40000”,
“iso_location”: “https://mirror.math.princeton.edu/pub/ubuntu-iso/bionic/ubuntu-18.04.3-live-server-amd64.iso”,
“iso_hash”: “b9beac143e36226aa8a0b03fc1cbb5921cff80123866e718aaeba4edb81cfa63”,
“iso_hast_type”: “sha256”,
“username” : “packer”,
“password” : “packer”,
“preseed_path”: “preseed.cfg”
},
“builders”: [
{
“type”: “parallels-iso”,
“boot_command”: [
“”,
“”,
“”,
“”,
“/install/vmlinuz”,
" auto",
" console-setup/ask_detect=false",
" console-setup/layoutcode=us",
" console-setup/modelcode=pc105",
" debconf/frontend=noninteractive",
" debian-installer=en_US.UTF-8",
" fb=false",
" initrd=/install/initrd.gz",
" kbd-chooser/method=us",
" keyboard-configuration/layout=USA",
" keyboard-configuration/variant=USA",
" locale=en_US.UTF-8",
" netcfg/get_domain=vm",
" netcfg/get_hostname=vagrant",
" grub-installer/bootdev=/dev/sda",
" noapic",
" preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/{{user preseed_path}}",
" – ",
“”
],
“boot_wait”: “15s”,
“iso_url”: “{{user iso_location}}”,
“iso_checksum”: “{{user iso_hash}}”,
“iso_checksum_type”: “{{user iso_hash_type}}”,
“guest_os_type”: “ubuntu”,
“cpus”: “{{user cpu}}”,
“memory”: “{{user ram_size}}”,
“parallels_tools_flavor”: “lin”,
“ssh_username”: “{{user username}}”,
“ssh_password”: “{{user password}}”,
“shutdown_command”: “echo ‘packer’ | sudo -S shutdown -P now”,
“http_directory”: “http”,
“ssh_wait_timeout”: “60s”
}
]
}


preseed.cfg


d-i debian-installer/locale string en_US
d-i console-setup/ask_detect boolean false
d-i keyboard-configuration/xkb-keymap select us

d-i netcfg/choose_interface select auto

d-i netcfg/get_hostname string unassigned-hostname
d-i netcfg/get_domain string unassigned-domain

d-i mirror/country string manual
d-i mirror/http/hostname string archive.ubuntu.com
d-i mirror/http/directory string /ubuntu
d-i mirror/http/proxy string

d-i passwd/user-fullname string Packer Auto-Install User
d-i passwd/username string packer
d-i passwd/user-password password packer
d-i passwd/user-password-again password packer

d-i user-setup/encrypt-home boolean false

d-i clock-setup/utc boolean true
d-i time/zone string US/Eastern
d-i clock-setup/ntp boolean true

d-i partman-auto/choose_recipe select atomic
d-i partman/confirm_write_new_label boolean true
d-i partman/choose_partition select finish
d-i partman/confirm_nooverwrite boolean true
d-i partman/confirm boolean true
d-i partman-auto/purge_lvm_from_device boolean true
d-i partman-lvm/device_remove_lvm boolean true
d-i partman-lvm/confirm boolean true
d-i partman-lvm/confirm_nooverwrite boolean true
d-i partman-auto-lvm/no_boot boolean true
d-i partman-md/device_remove_md boolean true
d-i partman-md/confirm boolean true
d-i partman-md/confirm_nooverwrite boolean true
d-i partman-auto/method string regular
d-i partman-auto-lvm/guided_size string max
d-i partman-partitioning/confirm_write_new_label boolean true

tasksel tasksel/first standard
d-i pkgsel/include string openssh-server build-essential

d-i grub-installer/only_debian boolean true
d-i grub-installer/with_other_os boolean true

d-i finish-install/reboot_in_progress note


I’m attempting to perform the build using the following command:

PACKER_LOG_PATH=~/packer.log PACKER_LOG=1 packer build build-ubuntu-parallels.json

The log file has been uploaded for review (renamed to packer.txt).

Thanks,

Tariq

packer.txt (170.7 KB)