Installation guide

Installing XenServer
15
4. Edit the file /etc/exports and add the line
/<vm_share_dir> *(rw,no_root_squash,sync)
Save and close the file.
5. Restart the portmap and nfs daemons as follows:
service portmap restart
service nfs restart
The <vm_share_dir> should now be exported on the network and you should be able to use Xen-
Center to point to it using the Storage wizard. See the XenCenter online help for details.
Procedure 3.7. Create an SR on the NFS share at the pool level
1. Open a host text console on any XenServer Host in the pool.
2. Create the storage repository on server:/path
xe sr-create content-type=user type=nfs name-label=<SR name> \
shared=true device-config-server=<server> \
device-config-serverpath=<path>
The device-config-server refers to the hostname of the NFS server and device-con-
fig-serverpath refers to the path on the server. Since shared is set to true, the shared storage will
be automatically connected to every host in the pool and any hosts that subsequently join will also be
connected to the storage. The UUID of the created storage repository will be printed on the screen.
3. Find the UUID of the pool
xe pool-list
4. Set the shared storage as the pool-wide default
xe pool-param-set uuid=<UUID of the pool> \
default-SR=<UUID of the storage repository>
Since the shared storage has been set as the pool-wide default, all future VMs will have their disks
created on shared storage by default.
3.3.3. XenServer Hosts with shared iSCSI storage
Adding shared storage to the XenServer network enables grouping of XenServer Hosts into resource pools,
enabling live relocation of VMs and sharing of server resources.
Requirements
two or more 64-bit x86 servers with local storage
one or more Windows workstations, on same network as the XenServer Hosts