Referencing Host-Only Networks by name

Discussions related to using VirtualBox on Windows hosts.
Post Reply
ToddLewey
Posts: 1
Joined: 26. Dec 2012, 18:36

Referencing Host-Only Networks by name

Post by ToddLewey »

Good morning.... I am attempting to use the vboxmanage tool located under the install folder per the instructions given below (Out of the book, OpenStack Cloud Computing Cookbook 2012), though I know this is in Linux syntax. Can it be translated to Windows so I can reference the Host-Only network by name on a Windows host? Basically, I want to use vboxmanage to create a network named "vboxnet0" with the below IP settings.

1. In order to use a public and private network in our OpenStack environment, we first
create these under VirtualBox. To do this, we can use the VirtualBox GUI by going
to System Preferences then Network or use the VBoxManage command from our
VirtualBox install and run the following commands in a shell on our computer to
create two HostOnly interfaces, vboxnet0 and vboxnet1:

# Public Network vboxnet0 (172.16.0.0/16)
VBoxManage hostonlyif create
VBoxManage hostonlyif ipconfig vboxnet0 --ip 172.16.0.254
--netmask 255.255.0.0

Thank you for any assistance you can provide.
noteirak
Site Moderator
Posts: 5231
Joined: 13. Jan 2012, 11:14
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: Debian, Win 2k8, Win 7
Contact:

Re: Referencing Host-Only Networks by name

Post by noteirak »

simply use the network interface name, using the same command. If you have spaces in the name, you'll need to use " "
So per example :

Code: Select all

VBoxManage hostonlyif create
VBoxManage hostonlyif ipconfig "Virtualbox Host-Only Interface" --ip 172.16.0.254 --netmask 255.255.0.0
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
Post Reply