You are on page 1of 6

Install Xen XCP 1.1.

0 on a USB flash drive (Citrix logon

egondal789 Eilz123!)
This how-to will guide you through the steps to create a bootable XCP 1.1.0 USB flash drive.

1. Download and burn ISO to CD when it starts to load press the F2 key. With XenServer it presents a "Welcome to XenServer" screen, and when you press F2 it gives you a prompt where you would type "shell" then press the enter key. XCP 1.1.0 does not do this so you have to wing it a bit. You will most likely see a blank screen, but if you pay attention you should see a faint image of dark blue text. At this point just type "shell" and press enter. Wait until it continues to load, and it should stop at a prompt and not load the installer program.

Patch installer to allow installation on targets with a size less than 16Gb
Open the installers preferences file by typing: vi /opt/xensource/installer/constants.py If its opened, search for the line containing "min_primary_disk_size = 16 #GB" by typing (followed by enter): :s/min_primary_disk Change the value "16" into whatever you want (should not be less than 3Gb) and save the changes typing: Change block size to 2196 (or other lower) :wq Now you are at the shell-prompt again.

Continue installation
Start the installer by typing: /opt/xensource/installer/init Continue installation as usual and you will find your USB/SD device in the available targets list. Use this and go on. Keep in mind that USB devices are slower than disks, so

it may take longer as you expect. After the installation is done, the installer quits and you are in the shell again. 5.

Prepare installed version to boot from USB/SD


The next steps are needed to tell the Kernel that there is a USB device as root disk, otherwise it continously reboots because of not finding a root partition. Reboot box, when it starts to load press the F2 key. With XenServer it presents a "Welcome to XenServer" screen, and when you press F2 it gives you a prompt where you would type "shell" then press the enter key. XCP 1.1.0 does not do this so you have to wing it a bit. You will most likely see a blank screen, but if you pay attention you should see a faint image of dark blue text. At this point just type "shell" and press enter. Wait until it continues to load, and it should stop at a prompt and not load the installer program. mkdir /tmp/sda mount -t ext3 /dev/sda1 /tmp/sda chmod -R 664 /sys/block cp -R /sys/block /tmp/sda/sys/ # Ignore I/O errors chroot /tmp/sda cd /boot mv initrd-2.6.18-128.1.6.el5.xs5.5.0.505.1024xen.img initrd-2.6.18128.1.6.el5.xs5.5.0.505.1024xen.img.old mkinitrd --with-usb initrd-2.6.18-128.1.6.el5.xs5.5.0.505.1024xen.img 2.6.18128.1.6.el5.xs5.5.0.505.1024xen ABOVE INIT PROCESS READ BELOW IF you get "no modules available for kernel " THEN check below
ls -al /lib/modules (check whats on here 1st)

these are the result, 2.6.31.5-1mnbcustom-default/ 2.6.31.5-server-1mnb/ Then your command should be mkinitrd /boot/initrd-2.6.31.5-default-1mnb.img 2.6.31.5-1mnbcustom-default or mkinitrd /boot/initrd-2.6.31.5-default-1mnb.img 2.6.31.5-server-1mnb

6.

Reboot and enjoy !


Now just reboot the server and it should simply boot from the USB/SD device. You're done! Adidtional thing need to be done to hypservisor http://new-wiki.xen.org/wiki/XenCenterXCP BELOW IS FOR XCP 1.5 Only (see link above for older version also)

For those experimenting with XCP 1.5beta (1.4.90)


As some of you may have noticed, there is a beta version of XCP 1.5 (currently numbered 1.4.90) availible from the download server since Feb 07th 2012. (See: Download Link XCP 1.4.90) There are some differences regarding neccessary compatibility fixes if you want XenCenter to work nicely with XCP 1.4.90, and I'll post here what I've personally found out so far - for those eager to try themselves: Regarding Fix #1 (xapi_version_override): This doesn't seem to work with XCP 1.4.90 (but may work with later releases). For now, you need to do a binary patch of /opt/xensource/bin/xapi. Otherwise XenCenter will always recognize XCP as a very old XenServer release and this causes trouble in many situations. To do the binary patch, do the following on every XCP 1.4.90 host:
cd /opt/xensource/bin /etc/init.d/xapi stop cp -vp xapi xapi.original sed -i 's/1\.4\.90/6.0.99/g' xapi /etc/init.d/xapi start

After re-connecting XenCenter to the XCP host, it will be identified as a XenServer 6.0 host, enabling all the wonderful modern features and fixing some strange behavior you may have encountered before patching. Btw., of course there is no 6.0.99 version of XenServer, but it should be the highest value the version identification of XenServer 6.0 should ever reach (unless there's a new service/feature pack or completely new version released), so it should be the best setting to get all features in XenCenter 6.0 for any 6.0-compatible XCP release. As mentioned above in the Fix #1 section, XenCenter will complain about the official XCP Xen Tools being outdated, since they also report 1.4.90 as version identification.

Taking the fixes for XenTools as described above and modifying them for XCP 1.4.90, they now look like this: On each Linux guest with xe-guest-utilities (Xen Tools) installed:
sed -i /usr/sbin/xe-update-guest-attrs -e 's/MajorVersion" "1"/MajorVersion" "6"/' sed -i /usr/sbin/xe-update-guest-attrs -e 's/MinorVersion" "4"/MinorVersion" "0"/' sed -i /usr/sbin/xe-update-guest-attrs -e 's/MicroVersion" "90"/MicroVersion" "99"/' # wait 2 minutes and check XenCenter again (or just execute /usr/sbin/xe-update-guest-attrs )

On each Windows guest with Xen Tools installed, modify the following registry values: Server 2003/XP - Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Citrix\XenTools Server 2008 64-bit Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Citrix\XenTools Name MajorVersion MicroVersion MinorVersion Data (hex) 6 0 99

(Only decimal values shown here, Windows Registry will show both decimal and hex.) Then reboot the Windows guest or restart the 'Citrix Tools for Virtual Machine Service' service. Restarting XenTools on Windows command line (cmd) works like this:
net stop xensvc net start xensvc

Regarding Fix #2 (license expiry): It seems that XCP 1.4.90 comes with something like a local license server (at 127.0.0.1) preinstalled and preconfigured. So far, I didn't get any expirating warning in XenCenter at all. XenCenter 6.0 License Manager recognizes the host like this: XenServer Version: 6.0.99 XenServer Edition: Citrix XenServer Expires: Never Noticing this, I felt an extreme urge to try out Citrix Web Self Service (WSS) Virtual Appliance (you must be logged in with your Citrix.com account to see all downloads, then click "Show Download" for the Enterprise Edition) on my XCP 1.4.90 host.

This appliance usually requires the paid XenServer 6.0 Enterprise Edition to work, but what a surprise, it works just fine on free XCP 1.4.90! It seems unable to check the XCP license at all (at least on a single host, I didn't try a multi-machine XCP pool yet) and continues nevertheless. This way, you can host virtual machines not only for yourself, but for others as well, and offer those others a way to control their own VMs on your host in a safe way without a chance to modify anything else where their tiny little fingers don't belong. ;-) Regarding Fix #3 (enable the Import feature of XenCenter): You can definitely ignore this section if you're using XCP 1.4.90+, it has it's own version of the said RPM file already installed, so you can import VMs right out-of-thebox with XenCenter. Also XCP 1.4.90 doesn't need a Linux Extra Disc at installation point, the base package supports all the usual Linux distributions out-of-the-box as well. First thing I tried was a network install of CentOS 6 x64 (template "CentOS 6.0 (64-bit) (experimental)"). It works fine so far and of course its fully Xen-aware, using Xen Virtual Disks, Xen Network Interface and Xen Tools (XCP-provided, not taken from XenServer) for resource reporting and VM-migrate feature. As far as I've found out yet, XCP 1.4.90 (with 6.0.99 version patch) w/ XenCenter 6.0 supports the following exciting features for free: Dynamic Memory Assignment (RAM): fixed RAM or min/max RAM per VM Live Snapshots of a VM's virtual disk, optionally including machine state (RAM), machine state requires at least Enterprise Edition in commercial XenServer! able to take scheduled snapshots automatically, you can define how often to take a snapshot and how many snapshots to keepper VM (oldest gets deleted first when limit is reached) I hope you'll find my additional content in this article useful.

You are Here: Home Xen Removing A Lost Xen Server From Resource Pool

Removing A Lost Xen Server From Resource Pool


By adminPublished: July 1, 2009 at 12:56 PMTags:

A xen server that was in a resource pool became corrupted and lost all nic/network information & needed to be reinstalled from scratch. After reinstalling it, there were duplicate server entries in the pool within the XenCenter console, one was the new server that was reinstalled and added back into the pool, the other was the old ghost entry that was no longer valid. There was no way to remove this lost entry from the XenCenter console. The way to do this is shown below using the xe command. On the PC with XenCenter installed first get the uuid of the lost host by doing poolsync-database. You need to connect to the pool master host ip:
C:\Program Files\Citrix\XenCenter>xe -s 10.10.1.25 -u root -pw PASSWORD pool-sync-database You attempted an operation which involves a host which could not be contacted. host: 1500f12e-54c6-4d23-b1ab-88ff5216c0d1 (ubcxensrv5)

Next, use the host-forget command to remove the host.


C:\Program Files\Citrix\XenCenter>xe -s 10.10.1.25 -u root -pw PASSWORD host-forget uuid=1500f12e-54c6-4d23-b1ab-88ff5216c0d1 WARNING: A host should only be forgotten if it is physically unrecoverable; WARNING: if possible, Hosts should be 'ejected' from the Pool instead. WARNING: Once a host has been forgotten it will have to be reinstalled. WARNING: This operation is irreversible. Type 'yes' to continue yes Read yes

After that, the lost entry will disappear from the XenCenter console

Video training course!!!!!! http://training.citrix.com/mod/ctxcatalog/view.php#catid=6&sort=name&page=1&prod id=6 Additional info on intel card (maybe required later)
XCP] Intel 82576 DomU network problems

http://www.gossamer-threads.com/lists/xen/api/229611 GOOD RESEARCH THREAD http://www.gossamer-threads.com/lists/xen/ jhjjhjh