Skip to content

Xen 3.0 Fedora Core, RHEL, Centos 4.x How-to

I gave a talk on the use of Xen for web developers at Lampsig. It took me a while to get my notes transcribed, but here at last they are. This prescription has been used by me to install Xen successfully on a Fedora core 4 box, Centos 4.3 and 4.4 boxes, and should probably work on RHEL, assuming you can figure out how to get the packages you need.

I cover use of file backed file systems, and how to mount and edit them, as well as expanding a file based filesystem.

I have run gentoo and Centos guests I got from jailtime.org and have found them to be very stable. I even was able to use this on a 64 bit server, although I did have to build my own guest. Many people who have had trouble getting Xen to work reliably when using the packaged (rpm) versions of Xen may find this prescription fixes their problems.

Xen 3.0 Centos How-to
Defined tags for this entry: , , , , ,

Trackbacks

No Trackbacks

Comments

Display comments as Linear | Threaded

James Cardinal on :

*Hi!

Thanks for the nice article. However, I had a problem on the portion of xm create area.

I downloaded a Fedora image at http://www.jailtime.org/ and mount it using your article. However, at the final stage I encountered this error, as follows:

[root@vmsrv xen-images]# xm create fedora.fc6.xen3.cfg
Using config file "./fedora.fc6.xen3.cfg".
Error: Device 2049 (vbd) could not be connected.
File /home/xen-images/fedora.fc6.img is loopback-mounted through /dev/loop0,
which is mounted in the privileged domain,
and so cannot be mounted by a guest.


I placed the image:
/home/xen-images/fedora.fc6.img

And my config:

kernel = "/boot/vmlinuz-2.6.20-2925.13.fc7xen"
memory = 512
name = "fedora.fc6"
vif = [ '' ]
dhcp = "dhcp"
disk = ['file:/home/xen-images/fedora.fc6.img,sda1,w', 'file:/home/xen-images/fedora.swap,sda2,w']
root = "/dev/sda1 ro"


How can I resolve the problem? Please help me. I'm stuck for almost 2 weeks already. Can't seem to find definite solutions everywhere.

Thank you so much.

David Rolston on :

*Based on the message it looks like you have the fedora.fc6.img file mounted on a loopback device. Unmount that, as you want it to be treated like a file by Xen, not a filesystem.

Add Comment

Pavatar, Gravatar, Favatar, MyBlogLog, Pavatar author images supported.
BBCode format allowed
E-Mail addresses will not be displayed and will only be used for E-Mail notifications.
Form options