Excerpt |
---|
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 to the Windows computer being used for the VCL image as root
Note |
---|
The scripts included with the Apache VCL source code which configure the Cygwin sshd service will likely fail if you install Cygwin while logged in as a user other than root. |
Run the Cygwin installer:
Tip |
---|
setup-x86_64.exe |
Note |
---|
If running a newer version of Windows which includes User Account Control (UAC), be sure to either disable UAC and reboot before installing Cygwin or right-click setup.exe and select Run as Administrator |
Note |
---|
The scripts included with the Apache VCL source code which configure the Cygwin sshd service will likely fail if you install Cygwin while logged in as a user other than root. |
Warning |
---|
WARNING: Do not download and install Cygwin 1.7 unless you are running Apache VCL 2.2.1 or later. Changes have been made to Cygwin 1.7 which will cause VCL reservations to fail. |
Tip |
---|
setup-legacy.exe |
Note |
---|
If running a newer version of Windows which includes User Account Control (UAC), be sure to either disable UAC and reboot before installing Cygwin or right-click setup.exe and select Run as Administrator |
It is useful to have a Cygwin shortcut on root's desktop. The Cygwin installer creates the desktop icon in the shared desktop folder for all users meaning it will appear on the desktop when users make reservations for the image. This is not recommended. Move the shortcut from the shared desktop folder to root's desktop folder :
...
(if moving through Explorer, you'll need to allow viewing of hidden items to see Public's Desktop):
After Cywgin installation is complete, delete the installation files from the desktop:
Launch the Cygwin shortcut on the desktop
as Administrator (Right click on the icon → Run as administrator)
Download cygwin-sshd-config.sh using wget to root's Cygwin home directory on the Windows computer:
C:\Cygwin\home\root\cygwin-sshd-config.sh
Tip |
---|
wget httphttps://svnraw.apachegithubusercontent.org/repos/asf/incubatorcom/apache/vcl/trunkdevelop/managementnode/bin/cygwin-sshd-config.sh |
Set the script to be executable:
Tip |
---|
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:
Tip |
---|
./cygwin-sshd-config.sh 'PASSWORD' |
If everything worked correctly, you should now be in a Command shell and see something similar to the following towards then end of the script output:
Panel |
---|
The CYGWIN sshd cygsshd service was started successfully. |
Download gen-node-key.sh using wget to the management node:
Tip |
---|
wget httphttps://svnraw.apachegithubusercontent.org/repos/asf/incubatorcom/apache/vcl/trunkdevelop/managementnode/bin/gen-node-key.sh/gen-node-key.sh |
Set the script to executable:
Tip |
---|
chmod +x gen-node-key.sh |
Run the script on the
managmentmanagement node and specify the Windows computer's IP address or 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.
Tip |
---|
./gen-node-key.sh 10.10.18.179 |
Enter the Windows root account password during script execution when asked
If it runs correctly, you should see something similar to the following towards the end of the script output:
Panel |
---|
The CYGWIN cygsshd service was started successfully. |