geerlingguy / packer-boxes

Jeff Geerling's Packer build configurations for Vagrant boxes.
https://app.vagrantup.com/geerlingguy
MIT License
651 stars 304 forks source link

Add Ubuntu 20.04 'Focal Fossa' #51

Closed geerlingguy closed 4 years ago

geerlingguy commented 4 years ago

It's due out in April (fast approaching), and preview builds are already available.

Would be nice to have it ready so I can start testing with it, and migrating projects to it (some are still stuck way back on 16.04!).

geerlingguy commented 4 years ago

Added box, but it looks like installation is a bit different under 20.04; it takes about 80s to boot (vs < 10s for 18.04) as it does a bunch of updates and snap-based stuff on the first boot of the installer :/

geerlingguy commented 4 years ago

Also glancing at https://github.com/tylert/packer-build/commit/1a3363f3d9b681028df2fad8c8cc565a93e175f8 for new boot sequence.

geerlingguy commented 4 years ago

I got most everything working, with the exception of NFS—though it's probably due to host machine configuration (macOS Catalina):

==> virtualbox: Exporting NFS shared folders...
==> virtualbox: Preparing to edit /etc/exports. Administrator privileges will be required...
==> virtualbox: Mounting NFS shared folders...
The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!

mount -o vers=3,udp 172.16.3.1:/System/Volumes/Data/Users/jgeerling/Development/GitHub/packer-boxes/ubuntu2004 /vagrant

Stdout from the command:

Stderr from the command:

mount.nfs: access denied by server while mounting 172.16.3.1:/System/Volumes/Data/Users/jgeerling/Development/GitHub/packer-boxes/ubuntu2004