Page 1 of 2
update all 8 network adapters modes in 5.1.22 r115126 (Qt5.6.2)
Posted: 3. Jul 2017, 00:56
by Moureg
As I'm working with Vbox and GNS3 at some point I update my network adapters mode and we have 8 network adapters in Version 5.1.22 r115126 (Qt5.6.2)
as we know we can modify that for only 4 adapters in settings >> network .
Now, I want to edit the other 4 adapters , please support how to do this
Re: update all 8 network adapters modes in 5.1.22 r115126 (Qt5.6.2)
Posted: 3. Jul 2017, 08:22
by Martin
For more than four adapters you just have to use the CLI commands.

Re: update all 8 network adapters modes in 5.1.22 r115126 (Qt5.6.2)
Posted: 3. Jul 2017, 12:40
by Moureg
Martin wrote:For more than four adapters you just have to use the CLI commands.

Dear Martin,
Thanks for responding , but I really don't know how to do that.
could you please tell me how to or refer to a guide,tutorial or a video.
Thanks.
Re: update all 8 network adapters modes in 5.1.22 r115126 (Qt5.6.2)
Posted: 3. Jul 2017, 12:57
by Martin
VirtualBox Manual chapter 8.8 / 8.8.2
Re: update all 8 network adapters modes in 5.1.22 r115126 (Qt5.6.2)
Posted: 7. Jul 2017, 18:18
by Moureg
ok,
we i tried to apply the below commands with cmd in virtualbox directory C:\Program Files\Oracle\VirtualBox>" it didn't work and said that :
VBoxManage modifyvm com.cisco.ios-xrv_1 --macaddress<5-8> auto The system cannot find the file specified
commads as per below where my vm name is "com.cisco.ios-xrv_1 "
VBoxManage modifyvm com.cisco.ios-xrv_1 --nic<5-8> none
VBoxManage modifyvm com.cisco.ios-xrv_1 --nictype<5-8> virtio
VBoxManage modifyvm com.cisco.ios-xrv_1 --nicpromisc<5-8> allow-all
VBoxManage modifyvm com.cisco.ios-xrv_1 --cableconnected<5-8> on
VBoxManage modifyvm com.cisco.ios-xrv_1 --macaddress<5-8> auto
Re: update all 8 network adapters modes in 5.1.22 r115126 (Qt5.6.2)
Posted: 7. Jul 2017, 18:29
by scottgus1
If your host PC is Wndows, your command window needs to be operating in the folder that Vboxmanage.exe exists in.
Before running a Vboxmanage command run this:
Code: Select all
cd "C:\Program Files\Oracle\Virtualbox"
Also, <5-8> is not a valid command line argument. <5-8> means to pick a number between 5 and 8 and enter that number instead of <5-8>.
Re: update all 8 network adapters modes in 5.1.22 r115126 (Qt5.6.2)
Posted: 7. Jul 2017, 18:40
by Moureg
thanks for responding
but when applying the below :
VBoxManage modifyvm com.cisco.ios-xrv_1 --nic 5 none
VBoxManage modifyvm com.cisco.ios-xrv_1 --nictype 5 virtio
VBoxManage modifyvm com.cisco.ios-xrv_1 --nicpromisc 5 allow-all
VBoxManage modifyvm com.cisco.ios-xrv_1 --cableconnected 5 on
VBoxManage modifyvm com.cisco.ios-xrv_1 --macaddress 5 auto
that error line appeared :
VBoxManage.exe: error: --nic: RTGetOpt: Command line option needs an index.
Re: update all 8 network adapters modes in 5.1.22 r115126 (Qt5.6.2)
Posted: 7. Jul 2017, 18:43
by scottgus1
Did that error message happen for all the commands or just one? And if one, which one?
Re: update all 8 network adapters modes in 5.1.22 r115126 (Qt5.6.2)
Posted: 7. Jul 2017, 18:46
by scottgus1
Also, the command may be "--nic5" instead of "--nic 5", etc. There's no space between the letters and the < in the manual.
Re: update all 8 network adapters modes in 5.1.22 r115126 (Qt5.6.2)
Posted: 7. Jul 2017, 18:50
by Moureg
scottgus1 wrote:Also, the command may be "--nic5" instead of "--nic 5", etc.
yes it worked like what you hvae said , much thanks for you .
but it didn't respond in virtualbox as per image linked here :
https://ibb.co/fBaFxv
Re: update all 8 network adapters modes in 5.1.22 r115126 (Qt5.6.2)
Posted: 7. Jul 2017, 18:51
by scottgus1
Please attach your image using the Upload Attachment tab under the textbox where you type new posts.
Re: update all 8 network adapters modes in 5.1.22 r115126 (Qt5.6.2)
Posted: 7. Jul 2017, 18:53
by Moureg
scottgus1 wrote:Please attach your image using the Upload Attachment tab under the textbox where you type new posts.
Done.
you can notice here that adapter5 is gone .
Re: update all 8 network adapters modes in 5.1.22 r115126 (Qt5.6.2)
Posted: 7. Jul 2017, 18:55
by Moureg
and there's an issue here , how can I see and revise what I have done .
id there is anyway to show configuration for network adapters which was edited ?
Re: update all 8 network adapters modes in 5.1.22 r115126 (Qt5.6.2)
Posted: 7. Jul 2017, 18:55
by scottgus1
I have never tried entering these commands, maybe you jus need to run them all again?
Re: update all 8 network adapters modes in 5.1.22 r115126 (Qt5.6.2)
Posted: 7. Jul 2017, 18:57
by Moureg
scottgus1 wrote:I have never tried entering these commands, maybe you jus need to run them all again?
it's the same for me as I always used to work with 4 adapters not more.