Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

In our sql statement examples we will use RedHat 5 and the image id of 25 as above rhel5-base25-v0.  In the below sql statement make any changes as needed such as ownerid, in this example it is set to 1 or the admin user id.

panel
Tip
iconfalse

INSERT INTO `image` (id, `name`, `prettyname`, `ownerid`, `platformid`,   `OSid`, `minram`, `minprocnumber`, `minprocspeed`, `minnetwork`,
`reloadtime`, `deleted`, `lastupdate`, `forcheckout`, `maxinitialtime`,`project`, `size`)   VALUES (25, 'rhel5-base25-v0', 'RHEL 5 base', 1, 1, 19, 1024, 1, 0, 10, 14, 0, NOW(), 1, 0, 'vcl', 1045);

Tippanel
iconfalse

INSERT INTO `imagerevision` (`imageid`, `revision`, `userid`, `datecreated`, `deleted`, `production`,
`comments`, `imagename`) VALUES (25, 0, 1, NOW(), 0, 1, NULL, 'rhel5-base25-v0');

panel
Tip
icon
false

INSERT INTO `resource` (`resourcetypeid`, `subid`) VALUES (13, 25);

Again  Again, the xCAT template .tmpl file must match the the entry VCL database entry of image.name.  

VCL image.name = rhel5-base25-v0 xCAT v0 xCAT template file name =   rhel5-base25-v0.tmpl
At this point you will be able to manage this image through the VCL interface. 

  • Go to Manage images 
  • Edit image grouping
  • Select image group mapped to load onto your bare-metal blades. See adding computers to VCL if you have not added any physical nodes yet.
  • Add 'RHEL 5 base' to the desired image group

...

If VCL supports the OS, extending the OS table for a new OS is fairly straight forward. In this example we will use Red Hat 6.

panel
Tip
iconfalse

INSERT INTO `OS` (`name`, `prettyname`, `type`, `installtype`, `sourcepath`, `moduleid`) VALUES('rhel6','RedHat Enterprise 6','linux','kickstart','rhel6',(SELECT `id` FROM `module` WHERE `name` LIKE 'os_linux'));