XenServer

ISO library on SMB/CIFS

The ISO type handles CD images stored as files in ISO format. This storage repository (SR) type is useful for creating shared ISO libraries.

The ISO SR type cifs uses the Windows File Sharing (SMB/CIFS) SR type to handle CD images stored as files in ISO format available as a Windows (SMB/CIFS) share.

If you do not specify the storage type to use for the SR, XenServer uses the location device config parameter to decide the type.

Device-config parameters for ISO SRs on CIFS/SMB:

Parameter Name Description Required?
location Path to the mount. Yes
type Storage type to use for the SR: For CIFS/SMB, set to cifs. No
vers For the storage type CIFS/SMB, the version of SMB to use: 1.0 or 3.0. The default is 3.0. No
username For the storage type CIFS/SMB, if a user name is required for the Windows file server. No
cifspassword_secret (Recommended) For the storage type CIFS/SMB, you can pass a secret instead of a password for the Windows file server. No
cifspassword For the storage type CIFS/SMB, if a password is required for the Windows file server. We recommend that you use the cifspassword_secret parameter instead. No

Note:

When running the sr-create command, we recommend that you use the device-config:cifspassword_secret argument instead of specifying the password on the command line. For more information, see Secrets.

For more information about using the SMB SR type, see SMB storage.

Create an ISO SR on CIFS/SMB

xe CLI

We recommend that you use SMB version 3 to mount ISO SR on a Windows file server. Version 3 is selected by default because it is more secure and robust than SMB version 1.0.

Create an SMB version 3 ISO SR (using the recommended cifspassword_secret option) as

     xe secret-create description="SMB ISO SR" value=<password>
     xe sr-create content-type=iso type=iso shared=true device-config:location=<path_to_mount> \
     device-config:username=<username> device-config:cifspassword_secret=<uuid returned from secret-create> \
     device-config:type=cifs name-label="Example ISO SR"
<!--NeedCopy-->

If SMB version 1 is required due to filer limitations, you can mount ISO SR using SMB version 1 using the following command:

     xe sr-create content-type=iso type=iso shared=true device-config:location=<path_to_mount> \
     device-config:username=<username> device-config:cifspassword=<password> \
     device-config:type=cifs device-config:vers=1.0 name-label="Example ISO SR"
<!--NeedCopy-->

In XenCenter®

  1. Open the New Storage Repository wizard: click New Storage on the toolbar.
  2. Under ISO library, select Windows File Sharing (SMB/CIFS) as the storage type, then click Next.
  3. On the Name page, enter the name of the new SR. By default, the wizard generates a description of the SR. This description includes a summary of the configuration options you select as you progress through the wizard. To enter your own description, clear the Auto-generate description check box and type in the Description box.

    Click Next to continue.

  4. On the Location page, specify the ISO storage target details:
    • Share Name: For example, \\server\sharename where server is the DNS name or IP address of the server computer, and sharename is a folder or file name.
    • Use different user name: If you want to connect to an SMB server using a different user name, select this check box and then enter your login user name and password.
  5. Click Finish to complete the new SR configuration and close the wizard.
ISO library on SMB/CIFS