首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >VBoxManage语法问题

VBoxManage语法问题
EN

Stack Overflow用户
提问于 2015-05-04 01:48:56
回答 1查看 2.3K关注 0票数 0

我对"VBoxManage“中的语法有问题。

例如:如果我想创建并注册一个名为"windowsbuffet-311"的虚拟机,我认为它会像"windowsbuffet" -311一样解析,然后整个事情就搞砸了。

下面是我使用的代码,请告诉我如何修复这些错误!

代码语言:javascript
复制
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

错误是:

代码语言:javascript
复制
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 . . .
EN

回答 1

Stack Overflow用户

发布于 2015-05-04 02:56:12

在您给出createvm命令的所有行中,我认为您缺少vm名称前面的"-- name“。试试这个:

代码语言:javascript
复制
vboxmanage createvm --name "windowsbuffet-311" --register
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/30017275

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档