Environment Information:
XenServer Version: 6.0.2
XenCenter Version: 6.0.2
NFS server OS Version: CentOS 6.3
Citrix XenServer is a free enterprise-level virtual platform for cloud computing. It is a competing product with VMware ESX/ESXi. The Installation Process of XenServer is the same as that of VMware ESX/ESXi. Similar to VMware ESX/ESXi, the main operations and configurations can be completed on another machine with the XenCenter Client (the same as VMware vShpere Client ).
Www.2cto.com
Unlike VMware ESX/ESXi, XenServer cannot directly Import iso to the XenCenter client management interface before installing the operating system. You need to pre-store these iso files on another server first, then use NFS (of course there are other methods, this method is used by default. Therefore, we need to set up an NFS server, place the corresponding iso file under the NFS directory, and then manually mount the directory on the XenServer server, in this way, all the iso files can be seen on the XenServer and XenCenter management interfaces. That is to say, XenServer encourages you to store the iso files separately to another independent server for convenient management, however, the cost is that the entire process is a little more difficult than ESX/ESXi.
Next we will Configure NFS on CentOS_6.3:
1. Minimize the installation of CentOS 6.3 and configure the IP address.
2. Mount the source disc to/media/cdrom.
3. Disable iptables and selinux.
4. Add the following line to the. bashrc file in the root directory: alias yumcdrom = 'yum -- disablerepo = \ * -- enablerepo = c6-media'
5. Install NFS file server
# Yumcdrom groupinstall "NFS file server"
6. Open the/etc/exports file and append the following content:
/Usr/local/apache2/htdocs/IOS * (rw, sync, no_root_squash)
Note: The directories and permissions that nfs allows for mounting are defined in the file/etc/exports. The meanings of each field are as follows:
/Usr/local/apache2/htdocs/IOS: directory to be shared. Place the iso file under this directory.
*: Allow access from all network segments
Rw: read/write permission
Sync: data is synchronized to internal and hard disks.
No_root_squash: nfs client shares directory User Permissions
7. Start the service
#/Etc/init. d/rpcbind restart is very important and must be restarted. nfs is an RPC program. before using it, you must map the port to portmap in other Linux versions.
#/Etc/init. d/nfs start
8. view the shared directory www.2cto.com
# Showmount-e
Export list for localhost. localdomain:
/Usr/local/apache2/htdocs/IOS *
9. Run the mount command on the local machine to check whether NFS is successfully mounted.
10. Use XenCentor to connect to the XenServer Server
11. Create a new storage warehouse (nfs iso library) to store. iso files.
12. After completion, as shown in: