HP BL680c XenServer Virtual Machine Installation 4.1.0 - Page 15

Copying ISOs to local storage, Procedure 3.1. To use local ISO storage from the control domain

Page 15 highlights

Installing Windows VMs 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 type in: 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: • Windows Server 2003 • Windows Server 2003 x64 • Windows 2000 SP4 • Windows XP SP2 3.1.1. Copying ISOs to local storage In XenServer 3.2 and earlier, ISOs could be copied directly to the control domain into the /opt/xensource/packages/iso directory. In XenServer 4.1.0 hosts, this directory is reserved for use of the builtin 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. Procedure 3.1. 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 by: xe sr-create name-label= type=iso \ device-config:location=/var/opt/xen/iso_import/ \ 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 xe vdi-list, or checking the CD drop-down box in XenCenter. 10

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44

Installing Windows VMs
10
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 type in:
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:
Windows Server 2003
Windows Server 2003 x64
Windows 2000 SP4
Windows XP SP2
3.1.1. 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 4.1.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.
Procedure 3.1. 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 by:
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
xe vdi-list
, or checking the CD drop-down box in
XenCenter.