The Citrix XenClient team is kicking off a series of XenClient Best Practices articles. For our first article of 2012, we’ll explain how to mount an image file to the virtual drive in a XenClient VM. Typically, our customers do this so they can install an operating system from an ISO file. This is an alternative to installing the OS from a DVD.

Here are the step by step instructions:

1. In Citrix Receiver for XenClient, bring up a terminal window (CTRL-SHIFT-T) and enter the password you created when installing XenClient.

2. Run the following command to enable remote file access: xec set enable-ssh true

3. Identify the IP address used by XenClient by clicking on the Network icon and selecting Connection Information.

4.1. Copy the image file from another computer to the XenClient system. In this example I use the free program WinSCP (available here but any SCP program will work. Make sure the ISO file extension is using lowercase letters or it won’t be visible in the GUI. For example use XP.iso instead of XP.ISO.

4.2. Launch WinSCP and connect to the XenClient system. The host name is the IP determined in step 3. The username is root, and the password is the same password you used in step 1.

4.3. On the left side, navigate to the directory containing the ISO file. On the right side, navigate to the /storage/isos directory.

4.4. Drag and drop the ISO into /storage/isos to copy the file.

5. After the file has been copied to the XenClient device, while focus in on Citrix Receiver for XenClient, hit Ctrl-Q to refresh the UI.

6.1. Create a new VM.

6.2. Click on the Add VM icon.

6.3. Select Install from Disc.

6.4. Go through the wizard and on the last step choose Create VM & Install OS later.

7.1. Map the ISO file to the VM:

7.2. Hover over the VM you just created and click Details.

7.3. Click on the Hardware tab.

7.4. Click the Edit button.

7.5. Click the dropdown menu next to Tools CD and select the ISO you imported.

7.6. Click the Save button.

8. When you boot the VM it will boot to the ISO.

9. Don’t forget to remount the xc-tools.iso after you are done installing the OS by following step 7 and selecting xc-tools.iso from the dropdown menu. You’ll need the tools mapped to your VM in order to install the PV drivers in the guest OS.

Connect with the XenClient team online!