If a guest is setup to use a bridged adapter but we later need to change which adapter of the Host to use then we just have to tell VirtualBox what device to use
VBoxManage modifyvm my-guest-name --bridgeadapter1 eth3 |
If a guest is setup to use a bridged adapter but we later need to change which adapter of the Host to use then we just have to tell VirtualBox what device to use
VBoxManage modifyvm my-guest-name --bridgeadapter1 eth3 |
A bridged adapter means that the Guest adapter is bridged to the Host adapter i.e. it can see the whole network (request address from DCHP server etc)
VBoxManage modifyvm my-guest-name --nat1 bridged VBoxManage modifyvm my-guest-name --bridgeadapter1 eth3 |
nat1 is the first interface of the Guest machine.
When you are running for instance a headless host machine it is sometimes needed to turn it off or to restart it from outside the host (for instance as part of a script or if the host is not accessible, no rdp etc).
Word of caution: These operations stops the machine dead in its tracks, any unsaved data is lost!
To turn it off (equivalent of pulling the power cable):
VBoxManage controlvm <vm> poweroff |
Note:
To restart it (equivalent of pushing the reset button):
VBoxManage controlvm <vm> restart |
Note:
For more details, here is what the manual (4.1.2) says: