Vagrant bionic 64 with virtualbox image doesn't start network correctly

Bug #1738400 reported by Luis Ferro
34
This bug affects 6 people
Affects Status Importance Assigned to Milestone
vagrant (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

When starting the image box 'ubuntu/bionic64' (v20171206.0.0) for virtualbox in MacOS, I get this error:

    bash: line 4: /sbin/ifdown: No such file or directory
    sed: can't read /etc/network/interfaces: No such file or directory
    sed: can't read /etc/network/interfaces: No such file or directory
    bash: line 20: /sbin/ifup: No such file or directory

After entering into it with vagrant ssh, I notice that the /sbin/ifdown and corresponding /sbin/ifup are not installed by default.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in ubiquity (Ubuntu):
status: New → Confirmed
Revision history for this message
Phillip Susi (psusi) wrote :

Are you still seeing this today?

Changed in ubiquity (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Carsten Decker (conceptdeluxe) wrote :

I have the same issue with 'ubuntu/bionic64' (v20180426.2.0) on MacOS 10.11 / Vagrant 1.9.8 / VirtualBox 5.1.30

---

The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!

/sbin/ifdown 'enp0s8' || true
/sbin/ip addr flush dev 'enp0s8'
# Remove any previous network modifications from the interfaces file
sed -e '/^#VAGRANT-BEGIN/,$ d' /etc/network/interfaces > /tmp/vagrant-network-interfaces.pre
sed -ne '/^#VAGRANT-END/,$ p' /etc/network/interfaces | tac | sed -e '/^#VAGRANT-END/,$ d' | tac > /tmp/vagrant-network-interfaces.post

cat \
  /tmp/vagrant-network-interfaces.pre \
  /tmp/vagrant-network-entry \
  /tmp/vagrant-network-interfaces.post \
  > /etc/network/interfaces

rm -f /tmp/vagrant-network-interfaces.pre
rm -f /tmp/vagrant-network-entry
rm -f /tmp/vagrant-network-interfaces.post

/sbin/ifup 'enp0s8'

Stdout from the command:

Stderr from the command:

bash: line 4: /sbin/ifdown: No such file or directory
bash: line 20: /sbin/ifup: No such file or directory

---

Revision history for this message
Carsten Decker (conceptdeluxe) wrote :

I've just checked v20180518.0.0 with the same result.

Revision history for this message
Phillip Susi (psusi) wrote :

I think those commands and files are no longer installed by default and it looks like vagrant is still trying ot use them.

affects: ubiquity (Ubuntu) → vagrant (Ubuntu)
Changed in vagrant (Ubuntu):
status: Incomplete → New
Revision history for this message
Carsten Decker (conceptdeluxe) wrote :

Yes, right - thank you!

This is related to:

https://wiki.ubuntu.com/MigratingToNetplan#Rationale

https://askubuntu.com/questions/1005390/why-did-ubuntu-change-the-network-configuration

https://github.com/hashicorp/vagrant/issues/9134

https://github.com/hashicorp/vagrant/issues/9428

As I can not upgrade to the latest Vagrant version due to other compatibility issues I'll try installing ifupdown package manually as a workaround.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in vagrant (Ubuntu):
status: New → Confirmed
Revision history for this message
Robert C Jennings (rcj) wrote :

A backport of https://github.com/hashicorp/vagrant/pull/9338 could resolve this and allow bionic to launch Focal and later vagrant boxes.

Revision history for this message
Helmo (helmo) wrote :

A workaround is to download and install the deb file from https://www.vagrantup.com/downloads

Tested with 2.2.14

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.