You will need the following:
The following instructions assume the following locations on the management node:
These instructions assume you have root access and are using a bash shell:
sudo bash
Add the image to the VCL database. A row needs to be added to the following tables:
These rows need to be added to the database manually either by using SQL commands or phpMyAdmin. The following SQL statements assume the following properties of the image:
INSERT INTO `vcl`.`image` ( `id` , `name` , `prettyname` , `ownerid` , `platformid` , `OSid` , `imagemetaid` , `minram` , `minprocnumber` , `minprocspeed` , `minnetwork` , `maxconcurrent` , `reloadtime` , `deleted` , `test` , `lastupdate` , `forcheckout` , `maxinitialtime` , `project` , `size` , `architecture` , `description` , `usage` , `basedoffrevisionid` ) VALUES ( '7' , 'vmwarewinxp-base7-v1', 'No Apps (WinXP vmware)', '1', '1', '16', NULL , '512', '1', '1024', '100', NULL , '5', '0', '0', NOW(), '1', '0', 'vcl', '1500', 'x86', NULL , NULL , '0' );
INSERT INTO `vcl`.`imagerevision` ( `id` , `imageid` , `revision` , `userid` , `datecreated` , `deleted` , `datedeleted` , `production` , `comments` , `imagename` ) VALUES ( NULL , '7', '0', '1', NOW(), '0', NULL , '1', NULL , 'vmwarewinxp-base7-v1' )
INSERT INTO `vcl`.`resource` ( `id` , `resourcetypeid` , `subid` ) VALUES ( NULL , '13', '7' )
vmware &
C:\Cygwin\Cygwin.bat
ls ~
cygwin-sshd-config.sh.txt
mv cygwin-sshd-config.sh.txt cygwin-sshd-config.sh
chmod +x /home/root/cygwin-sshd-config.sh
/home/root/cygwin-sshd-config.sh '<PASSWORD>'
The CYGWIN sshd service was started successfully.
chmod +x /root/gen-node-key.sh
Windows IP Configuration
Ethernet adapter Local Area Connection:
Connection-specific DNS Suffix . :
Autoconfiguration IP Address. . . : 169.254.123.175
Subnet Mask . . . . . . . . . . . : 255.255.0.0
Default Gateway . . . . . . . . . :
Ethernet adapter Local Area Connection 2:
Connection-specific DNS Suffix . : dcs.mcnc.org
IP Address. . . . . . . . . . . . : 152.46.18.179
Subnet Mask . . . . . . . . . . . : 255.255.248.0
Default Gateway . . . . . . . . . : 152.46.23.254
/root/gen-node-key.sh 152.46.18.179
ssh 152.46.18.179
An imaging request needs to be manually inserted into the VCL database to begin the automated imaging process. You will need to know the management node ID and computer ID of the VM guest you are using. The following SQL statements assume the following:
INSERT INTO `vcl`.`request` ( `id` , `stateid` , `userid` , `laststateid` , `logid` , `forimaging` , `test` , `preload` , `start` , `end` , `daterequested` , `datemodified` ) VALUES ( '1' , '16', '1', '16', '', '1', '0', '0', NOW( ) , TIMESTAMPADD(MINUTE, 120, NOW()), NOW( ) , NULL );
INSERT INTO `vcl`.`reservation` ( `id` , `requestid` , `computerid` , `imageid` , `imagerevisionid` , `managementnodeid` , `remoteIP` , `lastcheck` , `pw` ) VALUES ( NULL , '1', '2', '7', '7', '1', NULL , NULL , NULL );
Start vcld:
service vcld start
Monitor the vcld.log file:
tail -f /var/log/vcld.log
You may see the following dialog box when powering on a VM which has been saved in a VCL image. Click on Always Keep: