Comment 2 for bug 1393557

Revision history for this message
Julia Varigina (jvarigina) wrote : Re: Quick Start scripts do not work inside Cygwin

I executed launch.sh from the directory where it is placed.

Below is the detailed transcript of what I have done.

### Quick Start scripts are placed in /cygdrive/c/FuelISOBugReport/vbox-scripts-5.1/virtualbox/
$ cd /cygdrive/c/FuelISOBugReport/vbox-scripts-5.1/virtualbox/

123@123-VAIO /cygdrive/c/FuelISOBugReport/vbox-scripts-5.1/virtualbox
$ ls .
actions config.sh.bak iso launch_16GB.sh launch_8GB.sh
config.sh functions launch.sh launch_4GB.sh README.md

### Fuel ISO is placed into iso folder
123@123-VAIO /cygdrive/c/FuelISOBugReport/vbox-scripts-5.1/virtualbox
$ ls ./iso/
MirantisOpenStack-5.1.iso README.md

### Start launch.sh from the directory where it is installed
### It prints error message
123@123-VAIO /cygdrive/c/FuelISOBugReport/vbox-scripts-5.1/virtualbox
$ ./launch.sh
Load properties from file /cygdrive/c/FuelISOBugReport/vbox-scripts-5.1/virtualbox/actions/../config//config.properties
sed: невозможно прочитать /cygdrive/c/FuelISOBugReport/vbox-scripts-5.1/virtualbox/actions/../config//config.properties: No such file or directory
sed: невозможно прочитать /cygdrive/c/FuelISOBugReport/vbox-scripts-5.1/virtualbox/actions/../config//config.properties: No such file or directory
sed: невозможно прочитать /cygdrive/c/FuelISOBugReport/vbox-scripts-5.1/virtualbox/actions/../config//config.properties: No such file or directory
sed: невозможно прочитать /cygdrive/c/FuelISOBugReport/vbox-scripts-5.1/virtualbox/actions/../config//config.properties: No such file or directory
Checking for 'expect'... OK
If you run this script under Cygwin, you may have to add path to VirtualBox directory to your PATH.
Usually it is enough to run "export PATH=$PATH:"/cygdrive/c/Program Files/Oracle/VirtualBox"
Checking for "VBoxManage"... OK
Checking for VirtualBox Extension Pack... OK
Checking for Mirantis OpenStack ISO image... Mirantis OpenStack image is not found. Please download it and put under 'iso' directory.

### Replace expressions like "source foo/bar.sh" with "source ./foo/bar.sh" in all the sh scripts (added "./")
123@123-VAIO /cygdrive/c/FuelISOBugReport/vbox-scripts-5.1/virtualbox
$ find . -type f -name "*.sh" -exec sed 's/source /source .\//' -i {} \;

### Run launch.sh again
### This time it works as expected
123@123-VAIO /cygdrive/c/FuelISOBugReport/vbox-scripts-5.1/virtualbox
$ ./launch.sh
Checking for 'expect'... OK
If you run this script under Cygwin, you may have to add path to VirtualBox directory to your PATH.
Usually it is enough to run "export PATH=$PATH:"/cygdrive/c/Program Files/Oracle/VirtualBox"
Checking for "VBoxManage"... OK
Checking for VirtualBox Extension Pack... OK
Checking for Mirantis OpenStack ISO image... OK
Going to use Mirantis OpenStack ISO file iso/MirantisOpenStack-5.1.iso
Checking if SSH client installed...
OK
Checking if ipconfig or ifconfig installed...
OK
Setup is done.
### The rest of the output is omitted