Friday, August 26, 2011

XEN 4.1.1 on Ubuntu Lucid 10.04 LTS (easy and efficient with debs)

 How to build debs with XEN 4.1.1 for Lucid in 7 steps:

Assumptions:
  • Build environment is up and running
Steps:
  1. Temporary change sources in /etc/apt/sources.list from lucid to oneiric.
  2. apt-get source apt-get source xen-hypervisor-4.1-amd64 ipxe
  3. install ipxe via executing dpkg-buildpackage -b -rfakeroot && dpkg -i ./../ipxe*deb
  4. go to xen-4.1.1 and edit debian/rules.real: change dh_python2 to simply dh_python
  5. edit debian/control and change XS-Python-Version: 2.7 to XS-Python-Version: 2.6
  6. edit debian/changelog appropriately
  7. dpkg-buildpackage -b -rfakeroot and you are done.