Citrix Systems 5.5.0 Washer User Manual


 
XenServer Virtual Machine Installation Guide Installing Windows VMs 9
Making the ISO available to XenServer hosts
To make an ISO library available to XenServer hosts, create an external NFS or SMB/CIFS share directory.
The NFS or SMB/CIFS server must allow root access to the share. For NFS shares, this is accomplished by
setting the no_root_squash flag when you create the share entry in /etc/exports on the NFS server.
Then either use XenCenter to attach the ISO library, or connect to the host console and run the command:
xe-mount-iso-sr host:/volume
Additional arguments to the mount command may be passed in, for advanced use.
If making a Windows SMB/CIFS share available to the XenServer host, either use XenCenter to make it
available, or connect to the host console and run the command:
xe-mount-iso-sr unc_path -t smbfs -o username=myname/myworkgroup
The unc_path argument should have back-slashes replaces by forward-slashes. -t cifs can be used
for CIFS instead of SMB. Examples:
xe-mount-iso-sr //server1/myisos -t cifs -o username=johndoe/mydomain
xe-mount-iso-sr //server2/iso_share -t smbfs -o username=alice
After mounting the share, any ISOs in it should be available by name from the CD pulldown list in XenCenter,
or as CD images from the CLI commands. The ISO should be attached to an appropriate Windows template.
Copying ISOs to local storage
In XenServer 3.2 and earlier, ISOs could be copied directly to the control domain into the /opt/xen-
source/packages/iso directory. In XenServer 5.5.0 hosts, this directory is reserved for use of the built-
in ISO images, and is not intended for general use. This directory is considered to be identical across hosts
in a resource pool, and CD images may fail to attach if the contents are modified.
To use local ISO storage from the control domain
1. Log onto the host console.
2. Create a directory to copy the local ISOs into:
mkdir -p /var/opt/xen/iso_import
3. Create an ISO storage repository:
xe sr-create name-label=<name> type=iso \
device-config:location=/var/opt/xen/iso_import/<name> \
device-config:legacy_mode=true content-type=iso
4. Copy the ISO images into this directory, taking care not to fill up the control domain filesystem.
5. Verify that the ISO image is available for use by using the xe vdi-list command, or by checking in
XenCenter.