If I try to configure a second network interface with setup.vm.network "private_network", ip: 192.168.11.1 I got the following error
.
.
.
smartserver_demo_suse: Guest Additions Version: 7.2.4
smartserver_demo_suse: VirtualBox Version: 7.1
==> smartserver_demo_suse: Configuring and enabling network interfaces...
The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!
/sbin/ifdown 'enp0s8' || true
mv '/tmp/vagrant-network-enp0s8-1764673579-0' '/etc/sysconfig/network/ifcfg-enp0s8'
/sbin/ifup 'enp0s8'
Stdout from the command:
Stderr from the command:
bash: line 4: /sbin/ifdown: No such file or directory
bash: line 6: /sbin/ifup: No such file or directory
ifup/ifdown is deprecated since a while and it looks like that the legacy packages are installed by default anymore.
currently my workarround is to configure it manually.
setup.vm.network "private_network", ip: $env_ip, auto_config: false
setup.vm.provision "shell", inline: <<-SHELL
CONN_UUID=$(nmcli -t -f uuid con show | sed -n '2 p')
nmcli con mod $CONN_UUID ipv4.addresses #{$env_ip}/24
nmcli con down $CONN_UUID
nmcli con up $CONN_UUID
SHELL
If I try to configure a second network interface with
setup.vm.network "private_network", ip: 192.168.11.1I got the following errorifup/ifdown is deprecated since a while and it looks like that the legacy packages are installed by default anymore.
currently my workarround is to configure it manually.