I am trying to SSH into a virtual machine I have set up in virtual box from my Windows 7 host machine. I would like to make several development machines and ssh
into them from my host machine, as well as ping
them and so on. Inside of virtualbox, I have my VM selected (openSUSE 12.3) and I right click and go to settings, select the network tab, enable adapter 2 with these settings:
When I spin up the machine and run the ifconfig
command, I do not see the adapter 2 settings. Here is what I get:
You can see there is not eth1
listed. From what I understand, I need the IP address of the eth1
network adapter to ssh
into the machine. Is this not the correct process to add this adapter inside a virtualbox VM?
EDIT
dmesg | grep e1000
:
Best Answer
I don't see anything wrong with your Virtualbox setup offhand. I have the same setup with an Ubuntu VM, and it works fine. I believe the issue is that the OS running inside the guest has to see both network cards and set up both interfaces. Some versions of Linux will do that automatically, and some won't.
For example, here is a question on the Unix stackexchange from someone having this problem on Debian. In that case, he had to manually add a line to a config file to enable the second network interface.
Unfortunately, I can't give you specific instructions for OpenSUSE. This page appears to be SUSE's documentation on the subject (and you can see the link for using YaST on the left side). It looks like you should be able to configure the interface from YaST. Alternately, it might be necessary to edit some
ifcfg-*
files in the directory/etc/sysconfig/network
.