6

I tried to install Xen a few weeks ago with Ubuntu 11.10 as the Dom0. At the time, I encountered too many problems to list here. And an internet search revealed that others were having similar problems. Although my searches revealed a few workarounds, ultimately I punted Ubuntu and used Fedora 16 as the Dom0. (The process for getting Fedora 16 up and running as the Dom0 for Xen was relatively painless.)

Ubuntu is my preferred distro, and so I'd like to try again. But before I do so, could anyone kindly recommend a site that provides CURRENT and up-to-date tips, including a list dependencies that I'll need, for installing Xen with Ubuntu 11.10 as a Dom0? (I fear that many of the sites and answers that I previously found may be out of date.) Or better still, would someone kindly post a brief, but up-to-date, tutorial here?

Thanks much!

Jorge Castro
  • 73,717
Lexalt
  • 413
  • 1
  • 5
  • 9

3 Answers3

1

Here how it worked for me.

The lessons I learned:

I wanted to use xen as hypervisor so I can play around with different OS a software without ruining my primary system.

So first I downloaded the 64 bit client version from Ubuntu and followed Martins guide http://martincarstenbach.wordpress.com/2011/11/30/getting-started-with-xen-virtualisation-on-ubuntu-11-10/. Thanks Martin, great work.

A few things I had to figure out myself.

I had one problem with my Ubuntu 64 Bit client. Even though I installed on an Intel box I had to use the xen-hypervisor-4.1-amd64 package it seems also to cover the intel 64 Bit machines. The i386 package did not work.

Then I wanted to get the virtualisation GUI to work: To get virsh up and running I hat to add “export VIRSH_DEFAULT_CONNECT_URI=xen:///” to root .bashrc file. Then it started without problems.

Now xen is up and running. Just need to create a guest VM. Before I could do that I had to enable the virtualisation options im my EFI BIOS. After a reboot and changing the BIOS settings everything worked fine, but I could not see a virtual network bridge on my system.

I wanted my vm to share the network interface with the physical machine. I had to do the following to Configuring the network:

in /etc/network/interfaces

auto xenbr0
iface xenbr0 inet dhcp
bridge_ports eth0

one reboot later the bridge was up.

now I had to deal with some virt-manager errors.

I had to do an “ln -s qemu-linaro qemu” in /usr/share to get rid of some “Could not read keymap file: ‘/usr/share/qemu/keymaps/en-us” errors and to get rid of the problem.

cd /usr
mkdir lib64
cd lib64
ln -s ../lib/xen-4.1/ xen

A good idea is to monitor the xen logs in /var/log/xen for errors.

After these steps I could create a VM and install the guest OS.

Ruediger
  • 2,202
1

What did you actually try? (can you provide details, authorative sources)

Something like: (to start with)

sudo apt-get install xen-hypervisor-4.1-amd64 xen-utils-4.1 xenwatch xen-tools xen-utils-common xenstore-utils

sudo apt-get install virtinst virt-viewer virt-manager
david6
  • 14,528
  • 5
  • 38
  • 46
0

This LINK is up to date on how to build and install Xen on Ubuntu and Debian Linux.

I hope that helps.

all4naija
  • 1,554