wilas / vbkick

Tool for building and maintaining VirtualBox VMs described as a code in a single definition file.
Other
8 stars 5 forks source link

Path to Virtualbox VM on OS X include folder with no name #46

Closed gregelin closed 10 years ago

gregelin commented 10 years ago

vbkick process stores virtual machines in a folder structure that begins with a folder with no discernible name or visible character on OS X (10.9.2). That feels odd.

GUI screenshot: vbkick-folder-structure-note

terminal screenshot (using iTerm2) vbkick-folder-structure-cmdline-note

wilas commented 10 years ago

Could you please provide me the output of these commands:

VBoxManage list systemproperties | grep "Default machine folder"
VBoxManage list systemproperties | grep "Default machine folder" | cut -d':' -f 2 | sed 's/^\s*//g'
gregelin commented 10 years ago

@wilas Here is output, plus a little extra.

mbair:vbkick greg$ VBoxManage list systemproperties | grep "Default machine folder"
Default machine folder:          /Users/greg/VirtualBox VMs
mbair:vbkick greg$ ls /Users/greg/VirtualBox VMs
ls: /Users/greg/VirtualBox: No such file or directory
ls: VMs: No such file or directory
mbair:vbkick greg$ ls          /Users/greg/VirtualBox VMs
ls: /Users/greg/VirtualBox: No such file or directory
ls: VMs: No such file or directory
mbair:vbkick greg$ ls \         /Users/greg/VirtualBox VMs
ls:  : No such file or directory
ls: /Users/greg/VirtualBox: No such file or directory
ls: VMs: No such file or directory
mbair:vbkick greg$ ls \          /Users/greg/VirtualBox VMs
ls:  : No such file or directory
ls: /Users/greg/VirtualBox: No such file or directory
ls: VMs: No such file or directory
mbair:vbkick greg$ VBoxManage list systemproperties | grep "Default machine folder" | cut -d':' -f 2 | sed 's/^\s*//g'
          /Users/greg/VirtualBox VMs
mbair:vbkick greg$ VBoxManage list systemproperties | grep "Default machine folder" | cut -d':' -f 2 | sed 's/^\s*/+/g'
+          /Users/greg/VirtualBox VMs
mbair:vbkick greg$ ls \          /Users/greg/VirtualBox\ VMs
ls:  : No such file or directory
/Users/greg/VirtualBox VMs:
centos-6.5-x86_64_noX-partitioned               myWorkingVM
centos-64-x64-vbox4210_1401295333443_12298          newVM
centos-openscap-2014-05-26_default_1401144903700_16970      newVM2
centos-openscap-2014-05-28_default_1401288152625_53177      rhel6.5-1
centos65-docker2                        statedecoded-gm-centos6-2014-05-18_default_1400425474083_4822
centosd                             vm3
cloudstart-gitmachine_default_1394162591552_68524       zabbix1
govreadyc6-4
mbair:vbkick greg$ ls "          /Users/greg/VirtualBox VMs"
ls:           /Users/greg/VirtualBox VMs: No such file or directory
mbair:vbkick greg$ ls "          /Users/greg/VirtualBox VM"
wilas commented 10 years ago

These commands should works for you:

ls "/Users/greg/VirtualBox VMs"
ls /Users/greg/VirtualBox\ VMs
printf "\t  a1 a2\n" | sed 's/^[[:space:]]*/+/g'

and now please run as well:

vbkick list

NB. don't forget about sudo make install ;-)

There was a problem with \s in sed. Now I use [[:space:]] what is POSIX compatible.

wilas commented 10 years ago

Feel free to remove that ugly directory... and build the VM again.

gregelin commented 10 years ago

This fixed.

wilas commented 10 years ago

Good.