2
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
:
Is there any reason why you are not using bridged networking with your VMs? This way they would appear in your LAN, and you wouldn't need two interfaces to every VM for separate host / Internet access. – Tero Kilkanen – 2014-08-18T16:00:59.780
Is the
Adapter type
the same both on Adapter 1 / Adapter 2? What is the output ofdmesg | grep e1000
in the VM? – Tero Kilkanen – 2014-08-18T16:02:37.550@TeroKilkanen No, there is no reason I'm not doing that. I'm not aware of the pros/cons of using either. – smilebomb – 2014-08-18T18:11:48.800
@TeroKilkanen Please see my edit. Adapter 1 is
NAT
. – smilebomb – 2014-08-18T18:18:10.250I would switch Adapter 1 to Bridged mode and disable Adapter 2. This is the easiest way to achieve your goal, assuming that you have a LAN set up with a DHCP server that can provide configuration to your VM. – Tero Kilkanen – 2014-08-18T18:31:29.643