Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ubuntu example not working for 22.04 on Parallels 20 #59

Open
Sergong opened this issue Oct 8, 2024 · 3 comments
Open

Ubuntu example not working for 22.04 on Parallels 20 #59

Sergong opened this issue Oct 8, 2024 · 3 comments

Comments

@Sergong
Copy link

Sergong commented Oct 8, 2024

I'm trying to build an Ubuntu 22.04.5 VM using the example script provided in the Ubuntu directory.

I'm working on an Apple Silicon Mac Mini with M1 (macOS 14.7), have the latest packer version 1.11 and Parallels 20 (Pro edition).

Something is going wrong at the Subiquite Late run stage the following command returns a non-zero exit status 2:
sed -I "s/dhcp4: true/8\\n. dhcp-identifier: Mac/" /target/etc/netplan/00-installer-config.yaml

It then logs an error with the subiquiti ErrorReporter and then iterates through:

start: ubuquiti/Network/_send_update: CHANGE enp0s5
finish: ubuquiti/Network/_send_update: CHANGE enp0s5

While packer build tried to connect to SSH but keeps getting connection refused and eventually times out (after 1800secs).

Also, getting an error with starting the build when parallels_tools_mode = "download" I get an error that parallels_tools_flavor = "lin-arm" is not a recognised flavour. I have had to set it to parallels_tools_mode = "disable" for the build to even start.

Also had to set the version to version = "22.04.5" (latest Ubuntu 22.04) or else the build would fail as well.

Anyone run into this?

@cjlapao
Copy link
Contributor

cjlapao commented Oct 10, 2024

@Sergong, the examples are not always up to date with the changes that go around. they are like a starting point and some times they need a bit of TLC.
For the error with the tools, try to restart your mac, that normally solves that issue.

Now we are actually seeing some issues with our tools in Ubuntu22.04.5 and we are investigating it at the moment

@Sergong
Copy link
Author

Sergong commented Oct 11, 2024

Thanks @cjlapao re: TLC and keeping things up-to-date, I suspected as much. Been having an interesting week building ubuntu images using packer for Azure & vSphere... both each with their own challenges.
I'll give the restart a try when I have a bit more time.

@cjlapao
Copy link
Contributor

cjlapao commented Oct 16, 2024

@Sergong The examples have been updated to the latest versions but at the moment the latest Ubuntu's use a new Kernel that is unsupported, so packer will be unable to install the pd tools. This will be fixed in PD20.1.1 that will be released end of this month beginning of November

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants