25
13
I'm trying to get a Virtualbox instance running with a very specific networking setup.
Here's what I have right now:
I have a laptop running Ubuntu, hosting a Debian Virtualbox. My loptop regularly has dhcp addresses assigned to it's wireless card in either the 192.168.*.***
range or 10.***.***.***
range. I've set up my Debian VB with a bridged network adapter connected to my laptops's wlan0
connection.
The Debian machine always grabs a dynamic address, so if I want to access virtual hosts running on it, or want to ssh into it, I must first run ifconfig
to find its ip address.
Here's what I want:
I want to set up the Debian virtual machine with another network adapter on a private network between my laptop and it, that will always have a static ip, no matter what dhcp address my laptop has.
How do I do this?
I've never heard of this virtual network adapter in ubuntu. How do I go about editing it? – bejonbee – 2011-11-05T23:31:05.300
Don't know by heart. Whats the result from
ifconfig
? – Bart De Vos – 2011-11-05T23:34:15.490Hmm. I have it set up as you suggested. Virtualbox added an entry to my host so ifconfig shows the new network. However, my guest only has the loopback. If I try to add an entry for eth0 I get the error that there's no such device. – bejonbee – 2011-11-06T00:11:47.220
1After more reading and playing with settings I finally got it. Your settings proved correct. I had used Network Adapter 2, which equates to
eth1
, noteth0
on the host machine. Once I figure that out it was elementary to get your answer working. Thanks. – bejonbee – 2011-11-06T04:56:52.963