seems like you cannot install ubuntu 20 with packer

120 views
Skip to first unread message

Elhanan Maayan

unread,
Jun 12, 2020, 6:23:49 AM6/12/20
to Packer
ubuntu 20 decided to ditch the D-I installer, and go with subiquity something that some folks think unstable, 

there's only one example of how to do (for vmware), and when i tried it , it didn't work (i was stuck in language selection) 

i know they still provide a distor with legacy d-i, but they say it's not supported. 

https://discourse.ubuntu.com/t/server-installer-plans-for-20-04-lts/13631/58

Rickard von Essen

unread,
Jun 12, 2020, 11:10:24 AM6/12/20
to packe...@googlegroups.com

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/hashicorp/packer/issues
IRC: #packer-tool on Freenode
---
You received this message because you are subscribed to the Google Groups "Packer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to packer-tool...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/c7612ded-0594-4ec7-9b1e-cb86ffd2110co%40googlegroups.com.

Elhanan Maayan

unread,
Jun 12, 2020, 12:01:24 PM6/12/20
to packe...@googlegroups.com
only with legacy server that works with d-i , not with the new one

You received this message because you are subscribed to a topic in the Google Groups "Packer" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/packer-tool/SByQFIdRmaY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to packer-tool...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/CALz9Rt-p4QrvN4YmynEs6A_dW8ieAF2%2B3n-UuX3Fg0KuKkTXtQ%40mail.gmail.com.

Benjamin Lu

unread,
Jun 12, 2020, 12:45:52 PM6/12/20
to Packer
I might be wrong,, but do u have this settings 

Elhanan Maayan

unread,
Jun 13, 2020, 1:41:59 PM6/13/20
to packe...@googlegroups.com
this is for ubuntu 12

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/hashicorp/packer/issues
IRC: #packer-tool on Freenode
---
You received this message because you are subscribed to a topic in the Google Groups "Packer" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/packer-tool/SByQFIdRmaY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to packer-tool...@googlegroups.com.

Benjamin Lu

unread,
Jun 13, 2020, 2:22:53 PM6/13/20
to packe...@googlegroups.com
Opps. sorry.

You received this message because you are subscribed to the Google Groups "Packer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to packer-tool...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/CAETAEKJNxmqefpxy34O-AyTD9bY_2WT9QXJbZPFaWywbC7H2ZA%40mail.gmail.com.


--
Benjamin Lu
WordPress Theme & Plugin Developer
WordPress Theme Review Team
Website: Portfolio
Website: Blog
WordPress: Profile

Benjamin Lu

unread,
Jun 13, 2020, 2:29:32 PM6/13/20
to Packer
Sorry, yeah well it seems like it only has the live dvd which doesn't have. the actual without the live one. I'm sure it'll come out when 20.04.1 comes out. my best guess.

On Saturday, June 13, 2020 at 11:22:53 AM UTC-7, Benjamin Lu wrote:
Opps. sorry.

On Sat, Jun 13, 2020 at 10:41 AM Elhanan Maayan <elh.m...@gmail.com> wrote:
this is for ubuntu 12

On Fri, Jun 12, 2020 at 7:45 PM Benjamin Lu <benlu...@gmail.com> wrote:
I might be wrong,, but do u have this settings 

"checksum_type": "sha256",


On Friday, June 12, 2020 at 3:23:49 AM UTC-7, Elhanan Maayan wrote:
ubuntu 20 decided to ditch the D-I installer, and go with subiquity something that some folks think unstable, 

there's only one example of how to do (for vmware), and when i tried it , it didn't work (i was stuck in language selection) 

i know they still provide a distor with legacy d-i, but they say it's not supported. 

https://discourse.ubuntu.com/t/server-installer-plans-for-20-04-lts/13631/58

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/hashicorp/packer/issues
IRC: #packer-tool on Freenode
---
You received this message because you are subscribed to a topic in the Google Groups "Packer" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/packer-tool/SByQFIdRmaY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to packer-tool+unsubscribe@googlegroups.com.

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/hashicorp/packer/issues
IRC: #packer-tool on Freenode
---
You received this message because you are subscribed to the Google Groups "Packer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to packer-tool+unsubscribe@googlegroups.com.

Nick Charlton

unread,
Jun 15, 2020, 6:31:52 AM6/15/20
to Packer
The new installer needs a new boot command and preseed approach entirely. These should help you out:


Back when I published these, I did try it out with VirtualBox and it worked (I happen to have a preference for VMWare but it's not important to this).

I _think_ there's an ISO that Ubuntu host that continues to have the old installer (which I think bento might have gone with?), but it'd be more future proof to embrace the new installer.

Let me know if you have any questions!

- Nick

On Saturday, 13 June 2020 19:29:32 UTC+1, Benjamin Lu wrote:
Sorry, yeah well it seems like it only has the live dvd which doesn't have. the actual without the live one. I'm sure it'll come out when 20.04.1 comes out. my best guess.

On Saturday, June 13, 2020 at 11:22:53 AM UTC-7, Benjamin Lu wrote:
Opps. sorry.

On Sat, Jun 13, 2020 at 10:41 AM Elhanan Maayan <elh....@gmail.com> wrote:
this is for ubuntu 12

On Fri, Jun 12, 2020 at 7:45 PM Benjamin Lu <benlu...@gmail.com> wrote:
I might be wrong,, but do u have this settings 

"checksum_type": "sha256",


On Friday, June 12, 2020 at 3:23:49 AM UTC-7, Elhanan Maayan wrote:
ubuntu 20 decided to ditch the D-I installer, and go with subiquity something that some folks think unstable, 

there's only one example of how to do (for vmware), and when i tried it , it didn't work (i was stuck in language selection) 

i know they still provide a distor with legacy d-i, but they say it's not supported. 

https://discourse.ubuntu.com/t/server-installer-plans-for-20-04-lts/13631/58

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/hashicorp/packer/issues
IRC: #packer-tool on Freenode
---
You received this message because you are subscribed to a topic in the Google Groups "Packer" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/packer-tool/SByQFIdRmaY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to packe...@googlegroups.com.

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/hashicorp/packer/issues
IRC: #packer-tool on Freenode
---
You received this message because you are subscribed to the Google Groups "Packer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to packe...@googlegroups.com.

Elhanan Maayan

unread,
Jun 15, 2020, 9:19:06 AM6/15/20
to Packer
hi, i've seen several versions of this boot commands, yours was one of the ones that didn't work , but that did work
was this, (with that autoinstall before the ---) otherwise i would just get the regular boot


"<esc><wait><esc><wait><f6><wait><esc><wait>",
"<bs><bs><bs><bs><bs>",
"autoinstall ds=nocloud-net;s=http://{{ .HTTPIP }}:{{ .HTTPPort }}/ ",
"--- <enter>"


yes there is a legacy iso, but it's considered discontinued /unsupported 

i do have other issues, each time i specify packages: and other packages i want to import , the installer hangs or crashes , and i can't the crash output 
i also want it to start with NetworkManager in netplan and i think it also crashes when i try that. 

additionaly i think packer 1.6.0 solved the problem with ssh and ip

Nick Charlton

unread,
Jun 15, 2020, 10:15:58 AM6/15/20
to Packer
The installer failing, or hanging was a consistent problem I was facing too. If you pull up a tty, you can access the install log (you'll likely need to make your build not headless to be able to do this if you haven't already), from the bottom of the post:

To solve issues along the way, I:

* Used Alt + F2 to get a working console when the installer failed or got stuck,
* Read the output of /var/log/installer/subiquity-debug.log to get the network configuration correct,
* …and /var/log/syslog to debug the YAML parsing issues around the late-commands.

In general, I've found the new installer works okay, just the failure cases are very confusing to dig your way out of. 

Re: networking: Yeah, Packer 1.6 will fix that networking problem. I have a bunch of places to go and change this and until then the workaround is fine.

I'd be interested in hearing what, if any, other issues you had with that example repo though.

- N

Elhanan Maayan

unread,
Jun 15, 2020, 11:59:20 AM6/15/20
to packe...@googlegroups.com
thanks, that Alt+F2 really helped, in getting into linux ,didn't help so much in to see why it's hanging 
image.png

i'm seriously considering to switch to centos, it also depends if i can find maven plugin that doesn't centos to create a package 

with all the changes canonical is making (switching to netplan, using cloud-init) pissing of users, breakign backward compatiblity and so on..

(but then i would dependent on that plug-in) 
 

To unsubscribe from this group and all its topics, send an email to packer-tool...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/6980d3cf-6de1-44d4-92f1-44f2e23e05fao%40googlegroups.com.

Elhanan Maayan

unread,
Jun 15, 2020, 12:09:04 PM6/15/20
to packe...@googlegroups.com
btw i'm using vsphere-iso

To unsubscribe from this group and all its topics, send an email to packer-tool...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/6338cff5-5b92-4444-9182-a83d62c71042o%40googlegroups.com.

Elhanan Maayan

unread,
Jun 15, 2020, 12:24:34 PM6/15/20
to packe...@googlegroups.com
but at least i know why i can't Networkmanager , the service is not installed by default, so by using the renderer i fail the network, and i can't use the installer 

To unsubscribe from this group and all its topics, send an email to packer-tool...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/6980d3cf-6de1-44d4-92f1-44f2e23e05fao%40googlegroups.com.

Elhanan Maayan

unread,
Jun 15, 2020, 4:20:29 PM6/15/20
to packe...@googlegroups.com
i figured out what was wrong, it's the ens33, that had it , it was mean to be ens160 (i have no idea what this "predictable naming" scheme means

now my problem is how to have packer do " netplan apply"  after i sed the netplan renderer in the late command  from networkd to NetworkManager 

Nick Charlton

unread,
Jun 16, 2020, 4:17:03 AM6/16/20
to Packer
It’s predictable based upon the “slot” the network card is in. Previously, it was non-determinate whether or not you’d get eth1, eth2, eth3, etc depending on which stage the card which picked up by the OS. Now a given network card will always get the same name. Of course, this mostly just seems to be a change for changes’ sake from the perspective of a virtualised environment!

Re netplan apply: Does the OS do this on reboot? It should read the config in then.


On Monday, 15 June 2020 21:20:29 UTC+1, Elhanan Maayan wrote:
i figured out what was wrong, it's the ens33, that had it , it was mean to be ens160 (i have no idea what this "predictable naming" scheme means

now my problem is how to have packer do " netplan apply"  after i sed the netplan renderer in the late command  from networkd to NetworkManager 

Elhanan Maayan

unread,
Jun 16, 2020, 4:42:11 AM6/16/20
to Packer
so how do i know the slot ?

i figured i need to do netplan apply and do the search and replace in packer inline shell and expect a disconnect

Nick Charlton

unread,
Jun 17, 2020, 5:20:09 AM6/17/20
to Packer
That I'm not sure about as I've not tried to change anything apart from adding an additional interface. You can trust them to be consistent, at least.

For VMware compatibility, is that "doesn't work" or "isn't supported?". There's lots of additional options which work, but aren't supported by VMware.
Reply all
Reply to author
Forward
0 new messages