XCP on Debian 7 (Wheezy)

Background

Historically, XCP is more a software appliance, installed directly from an ISO, containing packaged XCP with CentOS. But some people prefer to add XCP on a existing OS (for various reasons, like for us, using Debian). That's why project Kronos was born.

Let's start

We'll install XCP in bridged mode. OpenVSwitch is a great tool, but we'll discover it later (discover both in the same time will be harder). Thanks to the tremendous work of Debian packagers, it's dead easy:

aptitude install xcp-xapi

Modify or check /etc/xcp/network.conf to have this and only this:

bridge

Modify /etc/default/xen to have this:

TOOLSTACK=xapi

Modify /etc/network/interface (let's say that we are in DHCP and eth0 is your network interface):

# The loopback network interface
auto lo
iface lo inet loopback

# bridge
auto xenbr0
iface xenbr0 inet dhcp
bridge_ports eth0

# indeed, I removed eth0

Modify grub boot order to boot on Xen first:

mv /etc/grub.d/10_linux /etc/grub.d/21_linux
update-grub

Reboot, and you're NOT done! Thanks to jms for this tips ;)

dpkg-reconfigure xcp-squeezed
dpkg-reconfigure xcp-xapi

Then, you can check that control domain is up and running by:

xe vm-list

We'll see next time how it works (with CLI).