VirtualBox "Bridged Adapter" when host NIC is turned off

Posted by chris_l on Server Fault See other posts from Server Fault or by chris_l
Published on 2010-03-12T14:41:29Z Indexed on 2010/03/12 14:47 UTC
Read the original article Hit count: 253

Filed under:
|
|

Hi,

I'm running Linux (Debian Etch) in a VirtualBox VM on my MacBook. I usually ssh from my Mac terminal to the guest machine. I also want to access the internet from my guest, so I set up my host's WLAN card (en1) as a bridged adapter for eth0 on the client.

This works fine, but when I turn off the WLAN card (e.g. to reduce battery consumption), I'd still like to ssh from my host to the guest. This fails of course, because en1 loses its IP address.

Is a bridged adapter the best option for what I want to do? How can I make it work? (A simple "ifconfig en1 add 10.0.0.4" didn't do the trick...)

Thanks Chris

© Server Fault or respective owner

Related posts about virtualbox

Related posts about vm