Cloning
ConceptAfter carefully installing and configuring many software packages on one computer, it is often convenient to then "clone" this master image onto multiple target computers. This is often useful when setting up a lab so that every computer has exactly the same set of software on it, and the same basic configuration. This general process is often referred to as "cloning" or "ghosting". Note that KeyServer can be used to distinctly control which programs are licensed to run on each target computer even when the installed software may be identical. Some configuration details like the name and IP address for each target machine must be unique. Therefore some configuration files or registry settings must be exempted from the duplication process or immediately customized on each target computer. Cloning can be used to distribute KeyAccess as part of the master image, but some of its configuration settings must be exempted from duplication. If you are making an image that will only be used to restore a single computer to its original state (e.g., using products such as "Deep Freeze" and "Drive Shield"), then all files can (and probably should) be included in the image. If a master image will be cloned to more than one computer, consult the lists below for KeyAccess-related files and settings that must be excluded from the master image. Virtual ComputersA virtual computer is implemented simply as a file (or small collection of files) within some host computer, and therefore a virtual computer is especially easy to clone (either consciously or otherwise). But beware: the same precautions described below should be followed within any virtual computer image before it is cloned. When using a version of KeyAccess 6.1.2.2 or better in a virtual computer, and when following the instructions below, KeyServer will create a new computer record for the virtual computer that is identified by the letter V prefixing the computer ID (as seen in the Computers window).
To avoid this problem, every cloned instance of a virtual computer must be customized with a distinct virtual ethernet hardware address. This requirement is in addition to the more obvious requirement that the virtual computer name must likewise be made unique to avoid name conflicts in the domain. Fortunately, the various virtualization technologies and KeyServer generally provide configuration options that will result in distinct computer records for each distinct instance of a virtual computer. Feel free to call Sassafras for help through this maze. Windows file listThe following files and directories should NOT be copied from one computer to another:
The following registry settings should NOT be copied from one computer to another:
Note: The KeyAccess client install creates a keyacc.ini file in the windows directory even when you accept the default, "store settings in registry". The line, "registry=2" in keyacc.ini tells KeyAccess to consult the registry for additional settings, so keyacc.ini must be included in the cloned image. If you have customized the client install (using the k2clientconfig utility) so it stores all settings in the keyacc.ini, then this file must be edited before cloning. Remove all lines beginning "previd" or "prevhw". OS X file listThe following files should NOT be copied from one computer to another:
If you want cloned clients to point to the same KeyServer as the computer you took the image from, you should be sure to copy the file /Library/Preferences/com.sassafras.KeyAccess.plist OS 9 file listThe following files should NOT be copied from one computer to another:
If you want cloned clients to point to the same KeyServer as the computer you took the image from, you should be sure to copy the file [System Folder]:Preferences:KeyAccess Prefs Carbon Copy ClonerCarbon Copy Cloner is an OS X utility from Bombich Software. In order to exclude the KeyAccess files from the images it writes, edit the file at Library/Preferences/com.bombich.ccc.plist (probably relative to your home directory). Find the cacheItems section that starts with: <key>cacheItems</key> <array>Add the following items to the end of the array: <array> <string>var/root/Library/Preferences/KeyAccess\ Audit</string> </array> <array> <string>var/root/Library/Preferences/KeyAccess\ Offline</string> </array> <array> <string>var/root/Library/Preferences/KeyAccess\ Prefs</string> </array> <array> <string>var/root/Library/Preferences/Portable\ Keys\ (don???t\ move\)</string> </array> <array> <string>/Library/Preferences/KeyAccess/KeyAccess\ Audit</string> </array> <array> <string>/Library/Preferences/KeyAccess/KeyAccess\ Offline</string> </array> <array> <string>/Library/Preferences/KeyAccess/KeyAccess\ Prefs</string> </array> <array> <string>/Library/Preferences/KeyAccess/Portable\ Keys</string> </array> Symantec GhostSymantec Ghost is a Windows utility from Symantec. In order to exclude the KeyAccess files from the images it writes, you should first manually delete the registry entries listed above, then run ghost.exe with the flag -skip=@skipfile. * skipfile should contain the following text: [ghost exclusion list] *\Documents and Settings\All Users\Application Data\KeyAccess Audit *\ProgramData\KeyAccess\KeyAccess Audit *\Documents and Settings\All Users\Application Data\KeyAccess\KeyAccess Audit *\Local Settings\Application Data\KeyAccess Offline *\ProgramData\KeyAccess\KeyAccess Offline *\Documents and Settings\All Users\Application Data\KeyAccess\KeyAccess Offline *\portable.dir\ [end of list]Alternatively, you could create the image, and then use Norton Ghost Explorer to remove these manually. *Note: when the master image uses the NTFS file system the ghost tools mentioned above can't be used so you will have to manually delete the files and directory. Before deleting, use the task manager to shutdown keyacc32.exe and then freeze the master image before rebooting. Other ProgramsThere are many other utilities which can be used for cloning, for which we don't have specific instructions on how to exclude files. If you use one of these products, and know how to configure excluded files, please send us an email describing how: support@sassafras.com. These utilities include:
|
Related TopicsFile LocationsHelp Index |
Depending on the particular virtual computer technology and network setup configuration, there may be some surprises. In particular (depending on how the ethernet hardware interface is virtualized), cloned virtual computers running on multiple hosts may all attach themselves to a single computer record in the KeyServer's Computer window! Obviously this will lead to some confusing anomalies in license control and reporting. You might see multiple active sessions in the "Users of KeyServer" window that all correspond to the same computer in the Computers window.