new value for "cable connected" setting: follow host

Here you can provide suggestions on how to improve the product, website, etc.
Post Reply
mikewse
Posts: 19
Joined: 12. Feb 2010, 15:59
Primary OS: Ubuntu other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows *

new value for "cable connected" setting: follow host

Post by mikewse »

When using network with a Bridged Adapter it can be desirable to have the guest VMs get their virtual network cable "disconnected" automatically when the host's physical network cable is disconnected. F ex, when using a laptop and moving around among subnets this would automatically update DHCP addresses in the guests. Currently this has to be done by manually triggering release/renew in the guests.

This behaviour could be configurable by making the setting:
  • Network > Adapter X (Bridged) > Advanced > Cable connected
have three values:
  • Connected
    Disconnected
    Host (follow physical cable)
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: new value for "cable connected" setting: follow host

Post by Sasquatch »

It's placed better in the Bugtracker (separate account needed).

One thing you have to keep in mind, the third option may only work and be used when you use Bridged Networking. If you switch the setting during VM run time, the default "connected" should be set.
Also, it needs quite a lot of code change. It's now a boolean value, which means that the only values are 'true' and 'false'. With a third option, an additional check must be made and changes to the GUI too. The idea is simple, execution isn't.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
Post Reply