7.0.0_BETA2r153583 BUG? setlinkstateN <on | off>

Temporary forum to discuss issues and problems during a VirtualBox Beta or Release Candidate phase.
Post Reply
HaotongYang
Posts: 32
Joined: 25. Aug 2021, 21:39

7.0.0_BETA2r153583 BUG? setlinkstateN <on | off>

Post by HaotongYang »

7.0.0_BETA2r153583
VBoxManage controlvm <uuid | vmname> setlinkstateN <on | off>

Code: Select all

VBoxManage controlvm 89da44c3-aaeb-4193-a85a-888888888888  setlinkstate0 on
VBoxManage.exe: error: Invalid NIC number '0'.

Code: Select all

VBoxManage controlvm 89da44c3-aaeb-4193-a85a-888888888888  setlinkstate1 on
Oracle VM VirtualBox Command Line Management Interface Version 7.0.0_BETA2
Copyright (C) 2005-2022 Oracle and/or its affiliates

VBoxManage.exe: error: Invalid link state 'on'.

Usage:

  VBoxManage controlvm <uuid | vmname> setlinkstateN <on | off>
Doesn't the "N" in "setlinkstateN" mean the serial number of the network card? Why is it giving an error.
mpack
Site Moderator
Posts: 39156
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: 7.0.0_BETA2r153583 BUG? setlinkstateN <on | off>

Post by mpack »

This is not new for beta 7, it is described in the user manual as the NIC number (index), 1-N.
HaotongYang
Posts: 32
Joined: 25. Aug 2021, 21:39

Re: 7.0.0_BETA2r153583 BUG? setlinkstateN <on | off>

Post by HaotongYang »

mpack wrote:This is not new for beta 7, it is described in the user manual as the NIC number (index), 1-N.
Hello, I set the NIC number to 1. There is also an error.

Code: Select all

VBoxManage controlvm 89da44c3-aaeb-4193-a85a-888888888888 setlinkstate1 on
VBoxManage controlvm 89da44c3-aaeb-4193-a85a-888888888888 setlinkstate1 off
error message
VBoxManage.exe: error: Invalid link state 'off'.

Usage:

  VBoxManage controlvm <uuid | vmname> setlinkstateN <on | off>
scottgus1
Site Moderator
Posts: 20965
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: 7.0.0_BETA2r153583 BUG? setlinkstateN <on | off>

Post by scottgus1 »

This is a pretty unique UUID:
HaotongYang wrote:89da44c3-aaeb-4193-a85a-888888888888
Very rare for such a repeated number! Are you obfuscating?

These appear to be correct, according to the manual:
HaotongYang wrote:VBoxManage controlvm 89da44c3-aaeb-4193-a85a-888888888888 setlinkstate1 on
VBoxManage controlvm 89da44c3-aaeb-4193-a85a-888888888888 setlinkstate1 off
Curious, though: if your command output was not edited, that is, that's the exact text you typed, then the 'setlinkstate1 on' command completed without error this time, whereas it failed last time:
HaotongYang wrote:VBoxManage controlvm 89da44c3-aaeb-4193-a85a-888888888888  setlinkstate1 on
....
VBoxManage.exe: error: Invalid link state 'on'.
'Tis interesting. Maybe it is a bug. Has this set of commands worked on previous 6.1 versions of Virtualbox?
HaotongYang
Posts: 32
Joined: 25. Aug 2021, 21:39

Re: 7.0.0_BETA2r153583 BUG? setlinkstateN <on | off>

Post by HaotongYang »

scottgus1 wrote:This is a pretty unique UUID:
HaotongYang wrote:89da44c3-aaeb-4193-a85a-888888888888
Very rare for such a repeated number! Are you obfuscating?
This Guestname and uuid are for my own convenience and management, and they are specially set like this.

Code: Select all

vboxmanage list vms
"89da44c3-aaeb-4193-a85a-7b20a5999999" {89da44c3-aaeb-4193-a85a-7b20a5999999}
"89da44c3-aaeb-4193-a85a-888888888888" {89da44c3-aaeb-4193-a85a-888888888888}
The executive feedback values above are edited. I actually just wanted to show that "on|off" is all the same error.

So this is a bug! ? :D :D
scottgus1
Site Moderator
Posts: 20965
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: 7.0.0_BETA2r153583 BUG? setlinkstateN <on | off>

Post by scottgus1 »

HaotongYang wrote:The executive feedback values above are edited. I actually just wanted to show that "on|off" is all the same error.
It'll be a good idea not to do this in the future, as it will throw off those that may try to help, as it did me.
HaotongYang wrote:So this is a bug! ?
Could be. Do the commands always work for your VMs in 6.1?
HaotongYang
Posts: 32
Joined: 25. Aug 2021, 21:39

Re: 7.0.0_BETA2r153583 BUG? setlinkstateN <on | off>

Post by HaotongYang »

scottgus1 wrote:
HaotongYang wrote:The executive feedback values above are edited. I actually just wanted to show that "on|off" is all the same error.
It'll be a good idea not to do this in the future, as it will throw off those that may try to help, as it did me.
HaotongYang wrote:So this is a bug! ?
Could be. Do the commands always work for your VMs in 6.1?
:cry: Thanks for your pointers.
yes, I used it normally in version 6.1.38
klaus
Oracle Corporation
Posts: 1110
Joined: 10. May 2007, 14:57

Re: 7.0.0_BETA2r153583 BUG? setlinkstateN <on | off>

Post by klaus »

Quickly tested this with the brand new BETA3 (not that I'm aware of any changes in this area) on Windows, and I had no trouble whatsoever with

Code: Select all

setlinkstate1 on
or

Code: Select all

setlinkstate1 off
Both worked as expected, and the link state was reflected by the GUI of the running VM.
HaotongYang
Posts: 32
Joined: 25. Aug 2021, 21:39

Re: 7.0.0_BETA2r153583 BUG? setlinkstateN <on | off>

Post by HaotongYang »

klaus wrote:Quickly tested this with the brand new BETA3 (not that I'm aware of any changes in this area) on Windows, and I had no trouble whatsoever with

Code: Select all

setlinkstate1 on
or

Code: Select all

setlinkstate1 off
Both worked as expected, and the link state was reflected by the GUI of the running VM.

Yes, he was fixed in BETA3. :D
Post Reply