We seem to be under the bottom of the pond. From one moon to another. -Wang Xiaobo
XCP is the platform virtualization solution of xen, which is an open source implementation of critix xenserver. The installation process is quite simple, just like installing a Linux system.
XCP must be directly installed on bare metal. You can select CD and PXE.
Installation version: XCP 1.1.0
Installation Method: PXE Installation
Installation machine: servers with PXE enable Nic
PXE environment server: centos 6.0
XCP base pack CD download: http://xen.org/download/xcp/index_1.1.0.html
Reference:
Http://wiki.openstack.org/XenServer/Install/PXE
Http://xen.org/files/XenCloud/installation.pdf
The installation process is as follows:
1. Deploy the PXE installation environment on another server, involving DHCP services, TFTP services, and HTTP Services. install these services.
The Dhcp Service provides IP addresses for the machines started with PXE, TFTP enables the installation machines to start with PXE, and HTTP stores related files of the installation system.
Install the TFTP service
1 rpm-Q syslinux // install syslinux 2 rpm-q tftp-server // check whether TFTP has installed 3 Yum-y TFTP-server // if not, then install 4 5 edit/etc/xinetd. d/tftp6 disable = No // change Yes to no7 8 service xinetd restart // restart the service and manage TFTP
Install Dhcp Service
1 Yum-y DHCP // install Dhcp Service 2. Configure DHCP service and edit the file/etc/DHCP/DHCPD. conf 3 allow BOOTP; 4 5 Use-host-Decl-names true; 6 Option domain-name "Network 1"; 7 option domain-name-servers 192.168.0.1; 8 subnet 192.168.0.0 netmask 255.255.255.0 {9 Range 192.168.0.100 192.168.0.200; 10 FILENAME "pxelinux.0"; 11}
12 service DHCPD restart // start the service
Install HTTP service
1 yum -y httpd2 3 service httpd restart
2. After the PXE environment is configured, start preparing for XCP Installation
1 mkdir xenserver // create a folder in/tftpboot 2 3 CD/usr/lib/syslinux // enter this directory 4 5 Mount mboot. c32 pxelinux.0 these two files are copied to the tftpboot directory 6 7 will be downloaded in the XCP disk install. copy IMG, vmlinuz, xen.gz to/tftpboot/xenserver directory 8 9 in the tftpoot directory, create a folder, pxelinux. CFG, in this directory, Create File default10 Add the following content to the default file: 11 default xenserver-auto12 label xenserver-auto13 kernel mboot. c3214 append/tftpboot/xenserver/xen.gz dom0_mem = 752 M COM1 = 115200, 8n1 \ 15 console = COM1, tty ---/tftpboot/xenserver/vmlinuz \ 16 xencons = HVc console = hvc0 console = tty0 \ 17 answerfile = http://pxehost.example.com/answerfile \ 18 install ---/tftpboot/xenserver/install. IMG
Configure the answerfile for HTTP access. Put the answerfile in the/var/www/html directory.
1 <? XML version = "1.0"?> 2 <installation srtype = "Ext"> 3 <primary-disk> SDA </primary-disk> 4 <keymap> us </keymap> 5 <root-Password> password of the system after installation </root-Password> 6 <source type = "url"> HTTP: // 192.168.0.1/xenserver/</source> 7 <NTP-Server> IP address of my NTP server </NTP-Server> 8 <admin-interface name = "eth0" Proto = "DHCP"/> 9 <timezone> Asia/Shanghai </timezone> 10 </installation>
Create xenserver in this directory and copy the following files in the installation disk to this directory
1 cp -r packages* /var/www/html/xenserver2 cp XS-REPOSITORY-LIST /var/www/html/xenserver
3. Restart the XCP server and start PXE installation.
4. The installation result is as follows:
The journey to experience XCP begins.