You are viewing an old version of this page. View the current version.
Compare with Current
View Page History
« Previous
Version 14
Next »
The Cygwin SSHD service must be installed on a Windows base image. It allows the management node to login to the computer in order to configure it and to perform periodic checks.
- Log on as root to the Windows computer being used for the VCL image
- Download Cygwin 1.5.x: http://cygwin.com/setup-legacy.exe
Save the installer to root's desktop
WARNING: Do not download and install Cygwin 1.7 yet! There are bugs in 1.7 which will cause VCL reservations to fail. It does not properly handle commands containing cmd.exe /c.
- Run setup-legacy.exe (if using Windows 6.x, right-click and select Run as Administrator)
- Click OK if presented with a legacy version warning
- Configure as follows:
- Install from Internet
- Root Directory: C:\cygwin
- Install For: Just Me
- Default Text File Type: DOS/text
- Local Package Directory: browse to root's Desktop
- Internet Connection: Direct Connection
- Download Site: choose one (.edu FTP sites seem the fastest)
- Select Packages (expand the tree and click Skip):
Editors : vim
Net: openssh
Web: wget
- Create icon on Desktop: No
- Add icon to Start Menu: No
There is a bug in the Cygwin installer which causes the installation to fail. You may see a Postinstall script errors panel after the installation has finished. When Cygwin fails to install properly, most of its executable files are not properly copied to the C:\cygwin\bin directory.
- Open Windows Explorer and navigate to C:\cygwin\bin
- Check the number of files listed in this directory
There should be many files listed in this directory -- usually over 300. If you only see a few files then Cygwin did not install properly.
Do the following if you are presented with the Postinstall script errors panel or the C:\cygwin\bin directory is incomplete:
- Close Cygwin Setup
- Delete C:\cygwin
- Repeat the installation steps listed above
- Verify that Cygwin was installed properly again
For some reason, Cygwin usually installs correctly the 2nd time the the installation is done.
After Cywgin setup is complete, delete the installation files from the desktop:
- Installer: setup-legacy.exe
- Local package directory: C:\ftp%...cygwin...
- Launch the Cygwin shell (if using Windows 6.x, right-click and select Run as Administrator):C:\Cygwin\Cygwin.bat
- Download cygwin-sshd-config.sh using wget to the following location on the Windows computer:
C:\Cygwin\home\root\cygwin-sshd-config.sh
- Set the script to be executable:
chmod +x cygwin-sshd-config.sh
- Run the script and specify the root account password as an argument, enclose the password in single quotes in case special characters are used in the password:
/home/root/cygwin-sshd-config.sh '<PASSWORD>'
- If asked to Enter a new user name, enter root
- You should see something similar to the following towards then end of the script output:
The CYGWIN sshd service was started successfully.
- Log in as root on the management node
- Download gen-node-key.sh using wget to the management node:
- Set the script to executable: chmod +x gen-node-key.sh
- Determine the IP address of the Windows computer by running ipconfig
- Run the script on the managment node and specify the Windows computer's IP address or DNS hostname as the 1st argument. A second argument specifying the private SSH key path can be specified. If the 2nd argument isn't specified, /etc/vcl/vcl.key will be used.
./gen-node-key.sh 10.10.18.179
- #* Enter the Windows root account password during script execution when asked
- Attempt to connect from the management node to the Windows computer via SSH using the command displayed at the end of the gen-node-key.sh output