update all 8 network adapters modes in 5.1.22 r115126 (Qt5.6.2)

This is for discussing general topics about how to use VirtualBox.
Moureg
Posts: 10
Joined: 3. Jul 2017, 00:51

update all 8 network adapters modes in 5.1.22 r115126 (Qt5.6.2)

Post 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
Martin
Volunteer
Posts: 2562
Joined: 30. May 2007, 18:05
Primary OS: Fedora other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: XP, Win7, Win10, Linux, OS/2

Re: update all 8 network adapters modes in 5.1.22 r115126 (Qt5.6.2)

Post by Martin »

For more than four adapters you just have to use the CLI commands. ;)
Moureg
Posts: 10
Joined: 3. Jul 2017, 00:51

Re: update all 8 network adapters modes in 5.1.22 r115126 (Qt5.6.2)

Post 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.
Martin
Volunteer
Posts: 2562
Joined: 30. May 2007, 18:05
Primary OS: Fedora other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: XP, Win7, Win10, Linux, OS/2

Re: update all 8 network adapters modes in 5.1.22 r115126 (Qt5.6.2)

Post by Martin »

VirtualBox Manual chapter 8.8 / 8.8.2
Moureg
Posts: 10
Joined: 3. Jul 2017, 00:51

Re: update all 8 network adapters modes in 5.1.22 r115126 (Qt5.6.2)

Post by Moureg »

Martin wrote:VirtualBox Manual chapter 8.8 / 8.8.2
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
scottgus1
Site Moderator
Posts: 20945
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows, Linux

Re: update all 8 network adapters modes in 5.1.22 r115126 (Qt5.6.2)

Post 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>.
Moureg
Posts: 10
Joined: 3. Jul 2017, 00:51

Re: update all 8 network adapters modes in 5.1.22 r115126 (Qt5.6.2)

Post 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.
scottgus1
Site Moderator
Posts: 20945
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows, Linux

Re: update all 8 network adapters modes in 5.1.22 r115126 (Qt5.6.2)

Post by scottgus1 »

Did that error message happen for all the commands or just one? And if one, which one?
scottgus1
Site Moderator
Posts: 20945
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows, Linux

Re: update all 8 network adapters modes in 5.1.22 r115126 (Qt5.6.2)

Post 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.
Moureg
Posts: 10
Joined: 3. Jul 2017, 00:51

Re: update all 8 network adapters modes in 5.1.22 r115126 (Qt5.6.2)

Post 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
scottgus1
Site Moderator
Posts: 20945
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows, Linux

Re: update all 8 network adapters modes in 5.1.22 r115126 (Qt5.6.2)

Post by scottgus1 »

Please attach your image using the Upload Attachment tab under the textbox where you type new posts.
Moureg
Posts: 10
Joined: 3. Jul 2017, 00:51

Re: update all 8 network adapters modes in 5.1.22 r115126 (Qt5.6.2)

Post 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 .
Attachments
Capture.PNG
Capture.PNG (48.64 KiB) Viewed 3909 times
Moureg
Posts: 10
Joined: 3. Jul 2017, 00:51

Re: update all 8 network adapters modes in 5.1.22 r115126 (Qt5.6.2)

Post 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 ?
scottgus1
Site Moderator
Posts: 20945
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows, Linux

Re: update all 8 network adapters modes in 5.1.22 r115126 (Qt5.6.2)

Post by scottgus1 »

I have never tried entering these commands, maybe you jus need to run them all again?
Moureg
Posts: 10
Joined: 3. Jul 2017, 00:51

Re: update all 8 network adapters modes in 5.1.22 r115126 (Qt5.6.2)

Post 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.
Post Reply