Excerpt |
---|
This page describes how to create a Windows base image. |
You will need the following:
(xCAT, VMware, etc.). Ignore the VMware Only sections if you are attempting to create an image using xCAT or some other bare metal provisioning engine.
You will need the following:
The following must be done before an image can be captured:
These instructions assume you have root access and are using a bash shell:
Panel |
---|
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:
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 (
'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'
);
|
Code Block |
---|
INSERT INTO `vcl`.`imagerevision` (
`id` ,
`imageid` ,
`revision` ,
`userid` ,
`datecreated` ,
`deleted` ,
`datedeleted` ,
`production` ,
`comments` ,
`imagename`
)
VALUES (
NULL , '7', '1', '1', NOW(), '0', NULL , '1', NULL , 'vmwarewinxp-base7-v1'
)
|
Code Block |
---|
INSERT INTO `vcl`.`resource` (
`id` ,
`resourcetypeid` ,
`subid`
)
VALUES (
NULL , '13', '7'
)
|
...
Follow the steps: Install & Configure Cygwin SSHD
Follow the steps on Configure the Default Profile if you want to customize the default profile which will be used when users login to the image.
An imaging request needs to be manually inserted into the VCL database to begin the automated imaging process. The imaging process performs several steps to prepare the VCL image to be captured and then initiates the capture.
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:
Code Block |
---|
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
);
|
Code Block |
---|
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:
Panel |
---|
service vcld start |
...
The following happen once you enter an image name and press enter:
Watch the vcld logfile output to determine if the image capture process is successful or terminated because a problem occurred. When the capture process terminates, there will either be a message near the end of the output saying "image capture successful" or there will be several WARNING messages, the last of which says something to the effect "image failed to be captured". Further troubleshooting is required if the image fails to be captured.
The vcld -setup utility does not add the new base image to any image groups. You must add the image to an image group using the VCL website after the image capture process is complete. Reservations for the image cannot be made until this is done. To add the image to an image group, browse to the VCL website and select Manage Images > Edit Image Grouping.