Page 1 of 1

Problem with VBoxManage

Posted: 2. Oct 2009, 10:42
by vin33
Hello,

I'm french thererfore i hope you understand my english :)

I installed UBUNTU as guest OS and all configuration settings appropriate.
Instead of use GUI for update the network, i use the command-line interface for that :
"VBoxManage modifyvm MyVM --nic1 hostonly"
The command runs but when i enter :
"VBoxManage startvm MyVM" an error occurs (VERR_INTERNAL_ERROR : inexistant host networking interface) whereas if i use the GUI for the sam operation there's any problem.

I don't understand. Has anyone to help me please. It's urgent.

Thank's in advance.

Re: Problem with VBoxManage

Posted: 2. Oct 2009, 11:33
by Sasquatch
You can create more than one virtual adapter for the Host-Only feature, so you have to provide the name of it too. Take a closer look at the VBoxManage modifyvm help output. It might take some trial and error to get the parameters right.

Re: Problem with VBoxManage

Posted: 2. Oct 2009, 11:45
by vin33
I read the help and i found the command :
vboxmanage modify MyVm --hostonlyadapter<x> devicename or none

Could you explain me in more details please. After i have entered this command :
vboxmanage modifyvm Myvm --nic1 hostonly
What i do ?

Thank's

Re: Problem with VBoxManage

Posted: 2. Oct 2009, 11:53
by Sasquatch
I don't use the CLI myself, but from what I understand from the help output, is that you use something like this:

Code: Select all

VBoxManage modifyvm MyVM --nic1 hostonly --hostonlyadapter1 vboxnet0
Replace vboxnet0 to the name of your Host-Only adapter name.

Re: Problem with VBoxManage

Posted: 2. Oct 2009, 12:04
by vin33
i entered :
vboxmanage modify myvm --nic1 hostonly --hostonlyadapter1 "HostInterfaceNetworking-VirtualBox Host-Only Ethernet Adapter"
and i have the error :
inexistant host networking interface, name HostInterface ...

Where is the problem ?

Re: Problem with VBoxManage

Posted: 2. Oct 2009, 12:23
by Sasquatch
Check the name with the GUI, enter that one.