I'm trying to ssh into a virtual installation of ubuntu I have, named "ubuntu-x86" but I can't get it to work for some reason. I have two network cards, both assigned to NAT, on the virtual machine, but one has a static IP address, while the other uses DHCP. For some reason, the command:
returns an error of
"ssh: Could not resolve hostname ubuntu-x86: Name or service not known"
doesn't work either. It just hangs. This is my /etc/network/interfaces file from the virtual machine:
Can anyone help me figure this out? Thanks for the help!
iface lo inet loopback
iface eth1 inet dhcp
iface eth0 inet static
EDIT: Also, once this is working, I should be able to start the virtual machine with
then ssh into it like normal, right? Thanks!
VBoxHeadless -startvm "Ubuntu-x86"