Excerpt | ||
---|---|---|
| ||
VCL can provision Linux and Unix computers from a tradional computing lab when the lab is closed. This page describes how to configure the lab computers and VCL to use the Lab.pm provisioning module. |
The Lab.pm provisioning module is used to broker access to standalone pre-installed Linux or Solaris machines. These machines could be in an existing walk-in computer lab or racked in a server room. VCL does not install these nodes. It controls which user is allowed to remotely connect to the node during a given time period.
There are four main parts needed to setup a standalone machine to use with the Lab.pm module.
For distribution to a large set of machines, an rpm or package could be created to distribute vclclientd and related files.
The Lab.pm module confirms an assigned node or lab machine is accessible using the ssh identity key on port 24. If this succeeds, then a small configuration file with the state, user's id and the users' remote IP address is sent to the node along with a flag to trigger the vclclientd process to either open or close the remote access port. Currently this module only supports Linux and Solaris lab machines.
All commands are run as root.
...
Code Block |
---|
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 ('78' , 'vmwarewinxplab-base7machine-v1image1', 'NoLab Apps (WinXP vmware)Machine image', '1', '1', '1622', NULL, '512', '1', '1024', '100', NULL , '5', '0', '0', NOW(), '1', '0', 'vcl', '1500', 'x86', NULL , NULL , NULL ); |
Insert information into the imagerevision table. Note 'Lab Machine image' can be what ever you want.
Code Block |
---|
INSERT INTO `vcl`.`imagerevision` ( `id` , `imageid` , `revision` , `userid` , `datecreated` , `deleted` , `datedeleted` , `production` , `comments` , `imagename` ) VALUES ( NULL , '8', '1', '1', NOW(), '0', NULL , '1' ); , NULL , 'lab-machine-image1' ) |
Insert information into the resource table.
Code Block |
---|
INSERT INTO `vcl`.`resource` (
`id` ,
`resourcetypeid` ,
`subid`
)
VALUES (
NULL , '13', '8'
)
|
7. Set up the image to computer group mappings and grant access.
These next steps will be done using the VCL web interface