Forum archive
XenServer 6.x optimized builds?
Hell TKL Community! My community and I have been using TKL apps for a little over a year now, but this is my first post here on the forums.
We just finished migrating out network and apps from VMware ESXi to XenServer 6.2. Our host boards have 2nd gen AMD Opterons, 8224's, that do not support HVM, so we are stuck with Xen's Paravirtualization. My migration method from VMware to XenServer was to
- Export VM from VMware ESXi
- Import VM to VirtualBox running locally - I had to do all of this within VirtualBox for some reason, XenServer refused to load my imports directly from VMware, when the OS was fully configured for PV in VMware instead of VirtualBox
- Install xe-guest-utilities from apt
- change startup console to use hvc0 instead of tty1 (this breaks the stock TKL Management Console, but gets a console working in Xen
- nano /etc/inittab
add this line:
co:2345:respawn:/sbin/getty 38400 hvc0
immediate above: 1:2345:respawn:/sbin/getty 38400 tty1
- nano /etc/inittab
- Uninstall vmware-tools from TKL App
- Export VM from VirtualBox to an OVA package
- Import VM to XenServer
- Change bootloader from HVM to PyGrub for PV
- xe vm-list power-state=halted (write down UUID for the VM)
- xe vm-param-set uuid=UUID HVM-boot-policy= (leave blank after equals sign)
- xe vm-param-set uuid=UUID PV-bootloader=pygrub
- xe vm-disk-list uuid=UUID (find VDB disk's UUID of root partition)
- xe vbd-param-set uuid=VBD's UUID bootable=true
On a side note, Debian Wheezy installs without issues Paravirtualized in XenServer, without any additional adjustments.
This is a lot of hassle to get our apps running in XenServer. On the other hand, we have seen a 10-20% performance increase with our apps being paravirtualized in XenServer.
For fresh TKL Apps, I will download the .iso format, then use pretty much the same procedure, but cutting out anything related to VMware. Install in Virtualbox, install xe-guest-utils, change startup console in inittab, etc.
Is there a simpler way to do this that I am missing? The "Xen Optimized" builds give me a filesystem that appears to be optimized for an older version of Xen.
As for fresh install from ISO , I lifted this from ServerFault for our docs. It looks pretty straight forward to install directly into XenServer, but I haven't tested it...
Oops! I just realised that is for HVM; not PV... So that won't apply to you. Hmm... I just had a quick google and it seems that there is a bit of info floating about (no doubt you looked too) although much of it seems quite old.
Regardless, the docs are a wiki so please feel free to add to them as you see fit...
Also we have just released RC1 of TurnKey v14.0 (just ISOs of Core and TKLDev at this point) so if you get a chance then perhaps it would be useful to test how that goes installing?