Ticket #6132 (new defect)
Opened 4 years ago
VBoxManage confuses VM names starting with dash character (-) with command line option names
|Reported by:||xlogger||Owned by:|
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.