Windows
Creating an Imaging Reservation
- Select “Reservations” from the left navigation bar.
- Click “New Reservation“.
- Select the “Imaging Reservation” button at the top of the dialog.
- From the base image pull-down menu, select a base image to start with. Examples:
- Windows 10 Base (64 bit VM), CentOS 7 Base (64 bit VM) or one of the existing images you may have access to.
- Select the Now under “When would you like to start the imaging process?”
- Select a duration for your reservation. It is a good idea to give yourself plenty of time; so, select something like 8 or more hours. If you run out of time, you can extend your reservation from the Current Reservations page as long as the computer you are using has not been allocated for another reservation when yours ends.
- Click “Create Imaging Reservation“
- The Reservations page will refresh. If the image you have chosen is already preloaded, your wait time should be less than a minute. If the image is not preloaded you may have to wait 5-20 minutes while the computer is being loaded.
- Click the Connect button on the Reservations page when it appears. The connection information will be displayed:
- The remote VCL computer’s IP address
- The user ID you will use.
- A one-time password for the reservation.
- Login using a remote desktop client. You can either enter the connection information manually after launching the Remote Desktop Connection program or you can use a pre-configured RDP file:
- Click the Get RDP File button
- Save the RDP file to your computer
- Double-click the RDP file to launch the Remote Desktop Connection program with the VCL connection information pre-configured
After connecting to your reservation:
- Run Windows Update
- Reboots are OK. It usually takes about 2-6 minutes for the computer to reboot before you can connect via RDP again
- Install your applications
- Some suggestions/tips on loading software to the remote machine:
- If you have access to enough AFS space, it may be easier to copy the software installation files in network filespace and access them from the remote machine through AFS (J: drive).
- Put media on a webserver and download on the remote node.
- Another option that has worked, is to share the CD-ROM from a local windows workstation and mount the shared CD-ROM on the remote machine.
- Remote Desktop Connection allows access to your local workstation drives, installing with this method typically does not work (IO is not fast enough for installer).
- Copying the media to the remote machine and then running the installer tends to work better, though it does take a while to copy.
- Copy the media contents through SCP. If you have a personal machine with ssh server you can use this method. This would also work for ftp.
- Upload the file to http://velocity.ncsu.edu and then download from the VCL image
- Post install of software:
- Remove any copies of software media (needlessly takes up space in the image which increases the loading time for new reservations of the image)
- Make sure all wanted icons are in “All users” desktop.
- Configure any application customizations
- Customize the default user profile if desired (Windows 7, Server 2008)
- Add shortcuts to the taskbar if desired (Windows 10)
- Some suggestions/tips on loading software to the remote machine:
Save the Image
When you’re done configuring the remote computer and are ready to save the image:
- Log off of the remote VCL computer
- From your own machine, return to the Reservations page on the VCL website
- Select More Options…->End Reservation & Create Image
- Select Creating New Image and then click Submit
- Enter an image name and description. Something simple related to the applications you installed is fine. The image name is displayed when a user makes a reservation and can be changed later if needed.
- The settings under Advanced Options can be left at the defaults
- Confirm the image properties are correct
- Click Submit
After about 20-25 minutes, you will receive an email saying your image ready for testing when the image creation process is done (occasionally, if there is a lot of software installed in the image or if the system is extremely busy, this can take as long as 90 minutes).
Grant access to use the image
Once you have tested that the image works correctly, access to use the image will need to be granted to other users. If you have the appropriate access, you can follow the instructions on granting access to new images. If you don’t have access to everything mentioned there, you will need to contact your IT support to have it done.
Linux
Creating an Imaging Reservation
- Select Reservations from the main VCL site
- Click New Reservation
- Select the Imaging Reservation button
- From the pull-down menu, select the base image you would like to start with
- Delect the Now button
- Click Create Imaging Reservation
- If the image you have chosen is preloaded wait time will be less than a minute, else you may wait 10-15 minutes while the remote node is being loaded.
- Click the Connect button when it appears. Information on how to connect will be displayed
- Use sudo bash to get a root shell.
- You’ll have a set amount of time, usually 12 hours, to complete any changes to the image before the reservation expires and the node is wiped clean.
Tips & Tricks
When processing an image for creation, the VCL system cleans or modifies out several locations to make the image suitable for VCL to reload and other users.
- /home (unless /home is a network drive)
- /etc/rc.local
- /etc/udev/rules/d/70-persistent-net.rules
- /etc/ssh/sshd_config
The exclude the files from being modified. Add the full file path to an exclude file /root/.vclcontrol/vcl_exclude_list
VCL Post load and reserve scripts
VCL post scripts allow for customization after a node is loaded or reserved. If these scripts exists in the default location they will be executed at their designated times. These scripts are often used for cluster on demand or handling custom tasks that are local to the node.
The scripts are:
- vcl_post_load
- File location /etc/init.d/vcl_post_load
- Created by the image owner
- Executed after the node is loaded
- Ideal for editing configuration files and starting services
- vcl_post_reserve
- File location /etc/init.d/vcl_post_reserve
- Created by the image owner/creator.
- Executed when user hits the “Connect” button
- Ideal for making custom changes based on user names.
Save the Image
When you’re done configuring the remote computer and are ready to save the image:
- Log off of the remote VCL computer
- From your own machine, return to the Reservations page on the VCL website
- Select More Options…->End Reservation & Create Image
- Select Creating New Image and then click Submit
- Enter an image name. Something simple related to the applications you installed is fine. The image name is displayed when a user makes a reservation and can be changed later if needed.
- The settings under Advanced Options can normally be left at the defaults
- Confirm the image properties are correct
- Click Submit
After about 20-25 minutes, you will receive an email saying your image ready for testing when the image creation process is done (occasionally, if there is a lot of software installed in the image or if the system is extremely busy, this can take as long as 90 minutes).
Grant access to use the image
Once you have tested that the image works correctly, access to use the image will need to be granted to other users. If you have the appropriate access, you can follow the instructions on granting access to new images. If you don’t have access to everything mentioned there, you will need to contact your IT support to have it done.