Opened 15 years ago
#6132 new defect
VBoxManage confuses VM names starting with dash character (-) with command line option names
Reported by: | xlogger | Owned by: | |
---|---|---|---|
Component: | other | Version: | VirtualBox 3.1.2 |
Keywords: | VBoxManage | Cc: | |
Guest type: | Linux | Host type: | Linux |
Description
When playing with VBoxManage I created a VM with name "--ostype" (by mistake - there was an error in my shell script that invoked VBoxManage)
I found that I cannot delete this VM with "unregistervm". All other VBoxManage commands also failed with the message "unknown option: --ostype" when I specified "--ostype" as VM name.
Putting the name in various kinds of quotes did not help, so eventually I had to manually edit VirtualBox.xml to remove the VM.
Apparently, VBoxManage confuses VM names starting with dash character (-) with command line option names. VirtualBox GUI does not have such problem.