packer-boxes icon indicating copy to clipboard operation
packer-boxes copied to clipboard

Feature/ubuntu server 20.04

Open rubenst2013 opened this issue 4 years ago • 5 comments

Hi Jeff,

@JulyIghor and I spent all night trying to figure this out and were successful. YAY

This MR switches to the release version of Ubuntu Server 20.04 using the "new" Subiquity installer and cloud-init like descriptions for "preseeding". More details in the commit messages.

I tested them locally and they worked fine. Please consider these changes so we are on a stable track forward with latest Ubuntu LTS.

Thanks for your hard work & best regards,

Ruben

rubenst2013 avatar Apr 29 '20 05:04 rubenst2013

@nickcharlton Thank you for taking the time to review my PR. I implemented your suggestions as discussed above and tested them successfully on my local machine. Please give them a spin and let me know if you need more info / other adjustments. :)

rubenst2013 avatar Apr 29 '20 12:04 rubenst2013

Hi @SwampDragons, hi @nickcharlton,

I guess I did needed some convincing. :)

Admittedly using ssh_handshake_attempts introduces less noise to the "user side" provisioning steps and, with a high enough value, simply lets the initial setup run through.

As for my proposed other way of handling this packer-side I take up the challenge and learn some golang to make a PR of that. Once we have a tangible proof of concept we can tackle that piece again in the future. :smiley:

Thank you both very much for your valued input and time.

Best regards,

Ruben

rubenst2013 avatar May 02 '20 16:05 rubenst2013

No worries, @rubenst2013, glad to be able to chip in.

I tried this out and it finishes building a box. I did notice this error twice in the output though:

E: The repository 'http://ppa.launchpad.net/ansible/ansible/ubuntu focal Release' does not have a Release file.

There's also a few Python syntax warnings with Ansible, but that seems common at the moment.

nickcharlton avatar May 02 '20 17:05 nickcharlton

No worries, @rubenst2013, glad to be able to chip in.

I tried this out and it finishes building a box. I did notice this error twice in the output though:

E: The repository 'http://ppa.launchpad.net/ansible/ansible/ubuntu focal Release' does not have a Release file.

There's also a few Python syntax warnings with Ansible, but that seems common at the moment.

Yes, these come from the ansible roles that @geerlingguy created and hosted via ansible galaxy. Not sure if updating them is possible at the moment, since these are shared between several different boxes and OS versions, some of which require the older syntaxes. Perhaps Jeff can have a look at these.

rubenst2013 avatar May 02 '20 17:05 rubenst2013

I'd like to finish moving over to this new install method at some point soon... has anyone tested this and made sure it's working in the past year+? I know a few others have gotten past this hurdle too, but I just haven't had the time in the past year to dig in :P

geerlingguy avatar Feb 12 '22 17:02 geerlingguy