| XEN on fedora 8 - part 1: the basic setup |
|
| XEN | ||||||||||||||||
|
This article describes how to install and use the XEN Hypervisor on Fedora Linux 8. I use Fedora Linux as host operating system (Domain 0) and I use Fedora as operating system for the paravirtualized XEN guest (DomU) as well. Requirements:
If you dont have a Fedora 8 ISO, you can download it from this site: http://mirrors.fedoraproject.org/publiclist/Fedora/8/i386/
1. Install XEN software First you have to install XEN. the XEN kernel and the virt-manager (You have to run this command with root privileges):
If you use the "standard" Fedora 8 repositories, yum will resolve all dependencies for you
2. Change grub.conf
Now you have to change the default boot option in grub.conf, to make your new kernel the default: open /boot/grub/grub.conf with vi:
Change the line "default=" to match your XEN kernel. The first entry in the boot list is 0, the second entry 1 and so on. In my case it looks now like this:
default=0
(...)
Now you have to reboot to use the new kernel.
3. Prepare your installation source
Unfortunately you cannot install a paravirtualized guest from a CD or DVD. Actually, there are only 3 options:
It seems like the best solution is to use nfs. The next step is to create a new directory and copy the Fedora 8 iso image to this new folder:
(Depending on how you have organized your storage, it might be better to create a new filesystem first.)
Now you have to create a new mountpoint to access the content of the ISO image and then mount the ISO to this new mountpoint;
Now we have to setup the nfs share. First edit /etc/exports with vi:
And add your new mountpoint with read-only access:
(save and close the file with :wq)
now we have to start the nfs daemon and check if everything is exported as expected:
There is also a GUI to install a new XEN machine (DomU), but I prefer the command line tool virt-install which comes with the package python-virtinst (it is already installed because its a requirement for virt-manager).
There are many options for virt-install. For a standard installation you need only a few of them:
I call my new virtual machine "myguest" and I will start with 256MB RAM and a 4GB virtual disk. My host system has the IP address 192.168.1.101. The command I have to enter to install my machine is:
Note: myguest is NOT the hostname, it is just the name of the virtual machine. However, I think it makes sense to use the same name for both.
After you type enter You will go through the normal Fedora 8 installation:
(...)
Thats it! you have now installed a virtual Linux machine!
http://www.madmadmod.com/xen/10-xen-on-fedora-8-part-2-management-basics.html
Comments (0)
Powered by !JoomlaComment 4.0 beta1
!joomlacomment 4.0 Copyright (C) 2009 Compojoom.com . All rights reserved." |


)