[vbox-dev] How to add a new network device
Knut St. Osmundsen
bird at innotek.de
Wed May 2 19:41:23 PDT 2007
Robert Zeljko wrote:
> I'm having some difficulties adding a new network device to the VirtualBox.
> My attempt is based on existing device implemented in the
> I've updated the Devices/Makefile and added my device in there.
> I've also updated Devices/Builtins.cpp to register my new device.
> I can compile it and run it but my new network device never gets constructed.
> What am I missing?
You need to configure the device for the VM which you wish to use it in.
There are two ways of doing this:
- you modify Console::configConstructor() in
src/VBox/Main/ConsoleImpl.cpp so that is uses your NIC instead of pcnet.
- or, you use VBoxManage setextradata some-vm-name "VBoxInternal/..."
"value" to inject the necessary configuration data (take a look at the
CFGM dump in a ~/.VirtualBox/Machines/some-vm-name/VBox.log for seeing
what's needed and later checking what's actually inserted).
More information about the vbox-dev