Cmd VBoxManage语法的问题
我在VBoxManage中遇到语法问题。 例如:如果我想创建并注册一个名为windowsbuffet-311的虚拟机,我认为它的解析方式类似于windowsbuffet-311,然后整个事情就搞糟了。 下面是我正在使用的代码,请告诉我如何修复这些错误Cmd VBoxManage语法的问题,cmd,virtualbox,Cmd,Virtualbox,我在VBoxManage中遇到语法问题。 例如:如果我想创建并注册一个名为windowsbuffet-311的虚拟机,我认为它的解析方式类似于windowsbuffet-311,然后整个事情就搞糟了。 下面是我正在使用的代码,请告诉我如何修复这些错误 vboxmanage createvm "windowsbuffet-311" --register vboxmanage storagectl "windowsbuffet-311" --name main --add ide --bootabl
vboxmanage createvm "windowsbuffet-311" --register
vboxmanage storagectl "windowsbuffet-311" --name main --add ide --bootable on
vboxmanage storageattach "windowsbuffet-311" --port 1 --device 1 --type hdd --medium "C:\wbft\311\Windows 3.11.vdi" --storagectl main
vboxmanage storageattach "windowsbuffet-311" --type dvddrive --medium none --storagectl main
vboxmanage storagectl "windowsbuffet-311" --name fdd -add floppy
vboxmanage storageattach "windowsbuffet-311" --type fdd -medium none --storagectl fdd
vboxmanage createvm "windowsbuffet-95" --register
vboxmanage storagectl "windowsbuffet-95" --name main --add ide --bootable on
vboxmanage storageattach "windowsbuffet-95" --port 1 --device 1 --type hdd --medium "C:\wbft\95\Windows 95.vdi" --storagectl main
vboxmanage storageattach "windowsbuffet-95" --type dvddrive --medium none --storagectl main
vboxmanage storagectl "windowsbuffet-95" --name fdd -add floppy
vboxmanage storageattach "windowsbuffet-95" --type fdd -medium none --storagectl fdd
vboxmanage createvm "windowsbuffet-2k" --register
vboxmanage storagectl "windowsbuffet-2k" --name main --add ide --bootable on
vboxmanage storageattach "windowsbuffet-2k" --port 1 --device 1 --type hdd --medium "C:\wbft\2000\Windows 2000.vdi" --storagectl main
vboxmanage storageattach "windowsbuffet-2k" --type dvddrive --medium none --storagectl main
vboxmanage storagectl "windowsbuffet-2k" --name fdd -add floppy
vboxmanage storageattach "windowsbuffet-2k" --type fdd -medium none --storagectl fdd
vboxmanage createvm "windowsbuffet-nt4" --register
vboxmanage storagectl "windowsbuffet-nt4" --name main --add ide --bootable on
vboxmanage storageattach "windowsbuffet-nt4" --port 1 --device 1 --type hdd --medium "C:\wbft\nt4\Windows NT 4.vdi" --storagectl main
vboxmanage storageattach "windowsbuffet-nt4" --type dvddrive --medium none --storagectl main
vboxmanage storagectl "windowsbuffet-nt4" --name fdd -add floppy
vboxmanage storageattach "windowsbuffet-nt4" --type fdd -medium none --storagectl fdd
pause
错误是:
Oracle VM VirtualBox Command Line Management Interface Version 4.3.26
(C) 2005-2015 Oracle Corporation
All rights reserved.
Usage:
VBoxManage createvm --name <name>
[--groups <group>, ...]
[--ostype <ostype>]
[--register]
[--basefolder <path>]
[--uuid <uuid>]
VBoxManage.exe: error: Invalid parameter 'windowsbuffet-311'
VBoxManage.exe: error: Could not find a registered machine named 'windowsbuffet-
311'
VBoxManage.exe: error: Details: code VBOX_E_OBJECT_NOT_FOUND (0x80bb0001), compo
nent VirtualBox, interface IVirtualBox, callee IUnknown
VBoxManage.exe: error: Context: "FindMachine(Bstr(a->argv[0]).raw(), machine.asO
utParam())" at line 1008 of file VBoxManageStorageController.cpp
VBoxManage.exe: error: Could not find a registered machine named 'windowsbuffet-
311'
VBoxManage.exe: error: Details: code VBOX_E_OBJECT_NOT_FOUND (0x80bb0001), compo
nent VirtualBox, interface IVirtualBox, callee IUnknown
VBoxManage.exe: error: Context: "FindMachine(Bstr(a->argv[0]).raw(), machine.asO
utParam())" at line 313 of file VBoxManageStorageController.cpp
VBoxManage.exe: error: Could not find a registered machine named 'windowsbuffet-
311'
VBoxManage.exe: error: Details: code VBOX_E_OBJECT_NOT_FOUND (0x80bb0001), compo
nent VirtualBox, interface IVirtualBox, callee IUnknown
VBoxManage.exe: error: Context: "FindMachine(Bstr(a->argv[0]).raw(), machine.asO
utParam())" at line 313 of file VBoxManageStorageController.cpp
Oracle VM VirtualBox Command Line Management Interface Version 4.3.26
(C) 2005-2015 Oracle Corporation
All rights reserved.
Usage:
VBoxManage storagectl <uuid|vmname>
--name <name>
[--add ide|sata|scsi|floppy|sas]
[--controller LSILogic|LSILogicSAS|BusLogic|
IntelAHCI|PIIX3|PIIX4|ICH6|I82078]
[--portcount <1-30>]
[--hostiocache on|off]
[--bootable on|off]
[--remove]
VBoxManage.exe: error: Invalid parameter 'floppy'
Oracle VM VirtualBox Command Line Management Interface Version 4.3.26
(C) 2005-2015 Oracle Corporation
All rights reserved.
Usage:
VBoxManage storageattach <uuid|vmname>
--storagectl <name>
[--port <number>]
[--device <number>]
[--type dvddrive|hdd|fdd]
[--medium none|emptydrive|additions|
<uuid|filename>|host:<drive>|iscsi]
[--mtype normal|writethrough|immutable|shareable|
readonly|multiattach]
[--comment <text>]
[--setuuid <uuid>]
[--setparentuuid <uuid>]
[--passthrough on|off]
[--tempeject on|off]
[--nonrotational on|off]
[--discard on|off]
[--bandwidthgroup <name>]
[--forceunmount]
[--server <name>|<ip>]
[--target <target>]
[--tport <port>]
[--lun <lun>]
[--encodedlun <lun>]
[--username <username>]
[--password <password>]
[--initiator <initiator>]
[--intnet]
VBoxManage.exe: error: Invalid parameter 'none'
Oracle VM VirtualBox Command Line Management Interface Version 4.3.26
(C) 2005-2015 Oracle Corporation
All rights reserved.
Usage:
VBoxManage createvm --name <name>
[--groups <group>, ...]
[--ostype <ostype>]
[--register]
[--basefolder <path>]
[--uuid <uuid>]
VBoxManage.exe: error: Invalid parameter 'windowsbuffet-95'
VBoxManage.exe: error: Could not find a registered machine named 'windowsbuffet-
95'
VBoxManage.exe: error: Details: code VBOX_E_OBJECT_NOT_FOUND (0x80bb0001), compo
nent VirtualBox, interface IVirtualBox, callee IUnknown
VBoxManage.exe: error: Context: "FindMachine(Bstr(a->argv[0]).raw(), machine.asO
utParam())" at line 1008 of file VBoxManageStorageController.cpp
VBoxManage.exe: error: Could not find a registered machine named 'windowsbuffet-
95'
VBoxManage.exe: error: Details: code VBOX_E_OBJECT_NOT_FOUND (0x80bb0001), compo
nent VirtualBox, interface IVirtualBox, callee IUnknown
VBoxManage.exe: error: Context: "FindMachine(Bstr(a->argv[0]).raw(), machine.asO
utParam())" at line 313 of file VBoxManageStorageController.cpp
VBoxManage.exe: error: Could not find a registered machine named 'windowsbuffet-
95'
VBoxManage.exe: error: Details: code VBOX_E_OBJECT_NOT_FOUND (0x80bb0001), compo
nent VirtualBox, interface IVirtualBox, callee IUnknown
VBoxManage.exe: error: Context: "FindMachine(Bstr(a->argv[0]).raw(), machine.asO
utParam())" at line 313 of file VBoxManageStorageController.cpp
Oracle VM VirtualBox Command Line Management Interface Version 4.3.26
(C) 2005-2015 Oracle Corporation
All rights reserved.
Usage:
VBoxManage storagectl <uuid|vmname>
--name <name>
[--add ide|sata|scsi|floppy|sas]
[--controller LSILogic|LSILogicSAS|BusLogic|
IntelAHCI|PIIX3|PIIX4|ICH6|I82078]
[--portcount <1-30>]
[--hostiocache on|off]
[--bootable on|off]
[--remove]
VBoxManage.exe: error: Invalid parameter 'floppy'
Oracle VM VirtualBox Command Line Management Interface Version 4.3.26
(C) 2005-2015 Oracle Corporation
All rights reserved.
Usage:
VBoxManage storageattach <uuid|vmname>
--storagectl <name>
[--port <number>]
[--device <number>]
[--type dvddrive|hdd|fdd]
[--medium none|emptydrive|additions|
<uuid|filename>|host:<drive>|iscsi]
[--mtype normal|writethrough|immutable|shareable|
readonly|multiattach]
[--comment <text>]
[--setuuid <uuid>]
[--setparentuuid <uuid>]
[--passthrough on|off]
[--tempeject on|off]
[--nonrotational on|off]
[--discard on|off]
[--bandwidthgroup <name>]
[--forceunmount]
[--server <name>|<ip>]
[--target <target>]
[--tport <port>]
[--lun <lun>]
[--encodedlun <lun>]
[--username <username>]
[--password <password>]
[--initiator <initiator>]
[--intnet]
VBoxManage.exe: error: Invalid parameter 'none'
Oracle VM VirtualBox Command Line Management Interface Version 4.3.26
(C) 2005-2015 Oracle Corporation
All rights reserved.
Usage:
VBoxManage createvm --name <name>
[--groups <group>, ...]
[--ostype <ostype>]
[--register]
[--basefolder <path>]
[--uuid <uuid>]
VBoxManage.exe: error: Invalid parameter 'windowsbuffet-2k'
VBoxManage.exe: error: Could not find a registered machine named 'windowsbuffet-
2k'
VBoxManage.exe: error: Details: code VBOX_E_OBJECT_NOT_FOUND (0x80bb0001), compo
nent VirtualBox, interface IVirtualBox, callee IUnknown
VBoxManage.exe: error: Context: "FindMachine(Bstr(a->argv[0]).raw(), machine.asO
utParam())" at line 1008 of file VBoxManageStorageController.cpp
VBoxManage.exe: error: Could not find a registered machine named 'windowsbuffet-
2k'
VBoxManage.exe: error: Details: code VBOX_E_OBJECT_NOT_FOUND (0x80bb0001), compo
nent VirtualBox, interface IVirtualBox, callee IUnknown
VBoxManage.exe: error: Context: "FindMachine(Bstr(a->argv[0]).raw(), machine.asO
utParam())" at line 313 of file VBoxManageStorageController.cpp
VBoxManage.exe: error: Could not find a registered machine named 'windowsbuffet-
2k'
VBoxManage.exe: error: Details: code VBOX_E_OBJECT_NOT_FOUND (0x80bb0001), compo
nent VirtualBox, interface IVirtualBox, callee IUnknown
VBoxManage.exe: error: Context: "FindMachine(Bstr(a->argv[0]).raw(), machine.asO
utParam())" at line 313 of file VBoxManageStorageController.cpp
Oracle VM VirtualBox Command Line Management Interface Version 4.3.26
(C) 2005-2015 Oracle Corporation
All rights reserved.
Usage:
VBoxManage storagectl <uuid|vmname>
--name <name>
[--add ide|sata|scsi|floppy|sas]
[--controller LSILogic|LSILogicSAS|BusLogic|
IntelAHCI|PIIX3|PIIX4|ICH6|I82078]
[--portcount <1-30>]
[--hostiocache on|off]
[--bootable on|off]
[--remove]
VBoxManage.exe: error: Invalid parameter 'floppy'
Oracle VM VirtualBox Command Line Management Interface Version 4.3.26
(C) 2005-2015 Oracle Corporation
All rights reserved.
Usage:
VBoxManage storageattach <uuid|vmname>
--storagectl <name>
[--port <number>]
[--device <number>]
[--type dvddrive|hdd|fdd]
[--medium none|emptydrive|additions|
<uuid|filename>|host:<drive>|iscsi]
[--mtype normal|writethrough|immutable|shareable|
readonly|multiattach]
[--comment <text>]
[--setuuid <uuid>]
[--setparentuuid <uuid>]
[--passthrough on|off]
[--tempeject on|off]
[--nonrotational on|off]
[--discard on|off]
[--bandwidthgroup <name>]
[--forceunmount]
[--server <name>|<ip>]
[--target <target>]
[--tport <port>]
[--lun <lun>]
[--encodedlun <lun>]
[--username <username>]
[--password <password>]
[--initiator <initiator>]
[--intnet]
VBoxManage.exe: error: Invalid parameter 'none'
Oracle VM VirtualBox Command Line Management Interface Version 4.3.26
(C) 2005-2015 Oracle Corporation
All rights reserved.
Usage:
VBoxManage createvm --name <name>
[--groups <group>, ...]
[--ostype <ostype>]
[--register]
[--basefolder <path>]
[--uuid <uuid>]
VBoxManage.exe: error: Invalid parameter 'windowsbuffet-nt4'
VBoxManage.exe: error: Could not find a registered machine named 'windowsbuffet-
nt4'
VBoxManage.exe: error: Details: code VBOX_E_OBJECT_NOT_FOUND (0x80bb0001), compo
nent VirtualBox, interface IVirtualBox, callee IUnknown
VBoxManage.exe: error: Context: "FindMachine(Bstr(a->argv[0]).raw(), machine.asO
utParam())" at line 1008 of file VBoxManageStorageController.cpp
VBoxManage.exe: error: Could not find a registered machine named 'windowsbuffet-
nt4'
VBoxManage.exe: error: Details: code VBOX_E_OBJECT_NOT_FOUND (0x80bb0001), compo
nent VirtualBox, interface IVirtualBox, callee IUnknown
VBoxManage.exe: error: Context: "FindMachine(Bstr(a->argv[0]).raw(), machine.asO
utParam())" at line 313 of file VBoxManageStorageController.cpp
VBoxManage.exe: error: Could not find a registered machine named 'windowsbuffet-
nt4'
VBoxManage.exe: error: Details: code VBOX_E_OBJECT_NOT_FOUND (0x80bb0001), compo
nent VirtualBox, interface IVirtualBox, callee IUnknown
VBoxManage.exe: error: Context: "FindMachine(Bstr(a->argv[0]).raw(), machine.asO
utParam())" at line 313 of file VBoxManageStorageController.cpp
Oracle VM VirtualBox Command Line Management Interface Version 4.3.26
(C) 2005-2015 Oracle Corporation
All rights reserved.
Usage:
VBoxManage storagectl <uuid|vmname>
--name <name>
[--add ide|sata|scsi|floppy|sas]
[--controller LSILogic|LSILogicSAS|BusLogic|
IntelAHCI|PIIX3|PIIX4|ICH6|I82078]
[--portcount <1-30>]
[--hostiocache on|off]
[--bootable on|off]
[--remove]
VBoxManage.exe: error: Invalid parameter 'floppy'
Oracle VM VirtualBox Command Line Management Interface Version 4.3.26
(C) 2005-2015 Oracle Corporation
All rights reserved.
Usage:
VBoxManage storageattach <uuid|vmname>
--storagectl <name>
[--port <number>]
[--device <number>]
[--type dvddrive|hdd|fdd]
[--medium none|emptydrive|additions|
<uuid|filename>|host:<drive>|iscsi]
[--mtype normal|writethrough|immutable|shareable|
readonly|multiattach]
[--comment <text>]
[--setuuid <uuid>]
[--setparentuuid <uuid>]
[--passthrough on|off]
[--tempeject on|off]
[--nonrotational on|off]
[--discard on|off]
[--bandwidthgroup <name>]
[--forceunmount]
[--server <name>|<ip>]
[--target <target>]
[--tport <port>]
[--lun <lun>]
[--encodedlun <lun>]
[--username <username>]
[--password <password>]
[--initiator <initiator>]
[--intnet]
VBoxManage.exe: error: Invalid parameter 'none'
Press any key to continue . . .
在您发出createvm命令的所有行中,我认为您缺少vm名称前面的-name。试试这个:
vboxmanage createvm --name "windowsbuffet-311" --register