chef / bento

Packer templates for building minimal Vagrant baseboxes for multiple platforms
Apache License 2.0
4.22k stars 1.12k forks source link

Attempting to build Ubuntu 20.04 w/ Parallels on M1 boots to Parallels ARM Virtual Machine configuration #1531

Closed svpernova09 closed 8 months ago

svpernova09 commented 9 months ago

Version

Main Branch 53462a154dc1de98045f97421d8b5e8cf5382b87

Environment

Parallels Desktop 19 For Mac Pro Edition Version 19.0.0 (54570) macOS 14.0 (23A344) M1 2020 Packer: 1.9.4

Scenario

Build a fresh Parallels VM for via os_pkrvars/ubuntu/ubuntu-20.04-x86_64.pkrvars.hcl.

Steps to Reproduce

packer build -only=parallels-iso.vm -var-file=os_pkrvars/ubuntu/ubuntu-20.04-x86_64.pkrvars.hcl ./packer_templates
parallels-iso.vm: output will be in this color.

==> parallels-iso.vm: Retrieving ISO
==> parallels-iso.vm: Trying https://releases.ubuntu.com/focal/ubuntu-20.04.6-live-server-amd64.iso
==> parallels-iso.vm: Trying https://releases.ubuntu.com/focal/ubuntu-20.04.6-live-server-amd64.iso?checksum=sha256%3Ab8f31413336b9393ad5d8ef0282717b2ab19f007df2e9ed5196c13d8f9153c8b
==> parallels-iso.vm: https://releases.ubuntu.com/focal/ubuntu-20.04.6-live-server-amd64.iso?checksum=sha256%3Ab8f31413336b9393ad5d8ef0282717b2ab19f007df2e9ed5196c13d8f9153c8b => /Users/halo/.cache/packer/74137c86f91d35e79617069ca73ab76607b2949f.iso
==> parallels-iso.vm: Starting HTTP server on port 8097
==> parallels-iso.vm: Creating virtual machine...
==> parallels-iso.vm: Applying default settings...
==> parallels-iso.vm: Creating hard drive...
==> parallels-iso.vm: Setting the boot order...
==> parallels-iso.vm: Attaching ISO to the default CD/DVD ROM device...
==> parallels-iso.vm: Executing custom prlctl commands...
    parallels-iso.vm: Executing: prlctl set ubuntu-20.04-amd64 --3d-accelerate off
    parallels-iso.vm: Executing: prlctl set ubuntu-20.04-amd64 --videosize 16
==> parallels-iso.vm: Starting the virtual machine...
==> parallels-iso.vm: Waiting 5s for boot...
==> parallels-iso.vm: Host IP for the Parallels machine: 192.168.1.213
==> parallels-iso.vm: Typing the boot command...
==> parallels-iso.vm: Using SSH communicator to connect: 10.211.55.84
==> parallels-iso.vm: Waiting for SSH to become available...

Expected Result

Expected the VM to boot and be provisioned by packer.

Actual Result

The VM boots to the Parallels ARM Virtual Machine configuration.

image
ilikepi commented 8 months ago

It looks like you're trying to build an x86_64 VM on an Apple Silicon machine. I don't believe this configuration is supported by Parallels.