Discussion:
[vbox-dev] Creating host-only network interfaces with VBOX API
Karoline Haus
2014-06-05 05:37:28 UTC
Permalink
Hi, can someone explain how I can create a host-only network interface, configure it with static IP addresses, or DHCP, and then attach it to a VM? I cannot find the API call to create these type of network interfaces? Many thanks for any pointers.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.virtualbox.org/pipermail/vbox-dev/attachments/20140605/685062fb/attachment.html
Maxime Dor
2014-06-05 07:04:19 UTC
Permalink
Hi,

https://www.virtualbox.org/sdkref/interface_i_host.html#a96ee805c081da0c69ac90cab82f3e4e6
This would be your start point.
Post by Karoline Haus
Hi, can someone explain how I can create a host-only network interface,
configure it with static IP addresses, or DHCP, and then attach it to a VM?
I cannot find the API call to create these type of network interfaces? Many
thanks for any pointers.
_______________________________________________
vbox-dev mailing list
vbox-dev at virtualbox.org
https://www.virtualbox.org/mailman/listinfo/vbox-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.virtualbox.org/pipermail/vbox-dev/attachments/20140605/1172dfb2/attachment.html
Karoline Haus
2014-06-05 07:51:31 UTC
Permalink
Thanks, that's exactly what I was looking for.


Now once I have created one of these, how to I go about attaching a DHCP server to them via the API? I can see that I can only pass a network name to the DHCP server object, but not a host-only interface name? Or is that the same?

Thanks for your help.



Maxime Dor <maxime.dor at altherian.org> schrieb am 9:04 Donnerstag, 5.Juni 2014:



Hi,

https://www.virtualbox.org/sdkref/interface_i_host.html#a96ee805c081da0c69ac90cab82f3e4e6

This would be your start point.



On 5 June 2014 07:37, Karoline Haus <karolinehaus at yahoo.de> wrote:

Hi, can someone explain how I can create a host-only network interface, configure it with static IP addresses, or DHCP, and then attach it to a VM? I cannot find the API call to create these type of network interfaces? Many thanks for any pointers.
Post by Karoline Haus
_______________________________________________
vbox-dev mailing list
vbox-dev at virtualbox.org
https://www.virtualbox.org/mailman/listinfo/vbox-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.virtualbox.org/pipermail/vbox-dev/attachments/20140605/6f80627e/attachment.html
Maxime Dor
2014-06-05 07:55:39 UTC
Permalink
https://www.virtualbox.org/sdkref/interface_i_host_network_interface.html#a9a1d4230921a31b3205e031520f6f86b

The Host-Only interface has a networkName property that should be what you
require for the DHCP server - never used it before so it's only a guess,
but it looks like a good match.
Post by Karoline Haus
Thanks, that's exactly what I was looking for.
Now once I have created one of these, how to I go about attaching a DHCP
server to them via the API? I can see that I can only pass a network name
to the DHCP server object, but not a host-only interface name? Or is that
the same?
Thanks for your help.
Hi,
https://www.virtualbox.org/sdkref/interface_i_host.html#a96ee805c081da0c69ac90cab82f3e4e6
This would be your start point.
Hi, can someone explain how I can create a host-only network interface,
configure it with static IP addresses, or DHCP, and then attach it to a VM?
I cannot find the API call to create these type of network interfaces? Many
thanks for any pointers.
_______________________________________________
vbox-dev mailing list
vbox-dev at virtualbox.org
https://www.virtualbox.org/mailman/listinfo/vbox-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.virtualbox.org/pipermail/vbox-dev/attachments/20140605/a5a22788/attachment-0001.html
Loading...