Just do vagrant ssh (from the same dir you ran vagrant up) and this will log you in to the virtual machine. Your dir containing the mailinabox code will be mounted under /vagrant.
I don’t see the /vagrant mount on the guest operating system. Does mail-in-a-Box even install on this, or is this SSH issue affecting the install of Mail-in-a-Box?
Could it be that it does not like the IP address of 192.168.50.4. Apparently, when I do vagrant ssh, it gets me into the box, and when I do ifconfig, it is assigned the IP address of 10.0.2.15. How do I change it, because it seemed to still be having issues when I changed Vagrantfile in Mail-in-a-Box to the IP address 10.0.2.15. I wasn’t sure if there were more things I should configure to make sure I completely change the IP address.
So it appears that the ifupdown Ubuntu package previously came with Ubuntu 14.04, and is no longer included in the Ubuntu 18.04 LTS system by default (see https://github.com/cilium/cilium/issues/1918 ). This is the error:
The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!
ifdown -a; ifup -a; ifup -a --allow=hotplug
Stdout from the command:
Stderr from the command:
mesg: ttyname failed: Inappropriate ioctl for device
bash: line 2: ifdown: command not found
bash: line 2: ifup: command not found
bash: line 2: ifup: command not found
After I get into the system using vagrant ssh and doing sudo apt-get install ifupdown, shutting down the machine and doing vagrant up --provision, it gives me another error:
The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!
/sbin/ifdown eth1 2> /dev/null
Stdout from the command:
Stderr from the command:
mesg: ttyname failed: Inappropriate ioctl for device