Skip to contentSkip to conversation

Newbie Question...

DISCUSSION David Templer 3 participants 3 messages Dec 23, 2004 – Dec 24, 2004

lore
Share & tools
lore
#0 lore raw

Hi,

I would like to try Xen but I have a couple of questions ....

Is setting up Xen similar to installing a distro ... ? if so how does Xen seperate virtual machines (& is possible to switch between them?)

I have 40gb spare is that enough to run a couple of VM just to test it out ?

Dave T.

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/

#1 lore raw

I am a newbie too, but I can answer of your some questions:

Quoted 1 line

Is setting up Xen similar to installing a distro ... ?

That is different. Xen use paravirtualizaion technique, so the kernel must be tweaked a little bit. You cannot install distro in normal way. Please read the Xen manual at homepage.

Also take a look at the papers at
http://www.cl.cam.ac.uk/Research/SRG/netos/xen/architecture.html to understand about Xen's architecture.

regards,
AQ

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/

#2 lore raw
In reply to David Templer
Quoted 1 line

Is setting up Xen similar to installing a distro ... ?

No, you install by dropping the Xen hypervisor and XenLinux kernel down onto your existing distro install and adding a grub entry to boot them. It's like a kernel install (plus a few user tools on top). See the manual for more details ;-)

Quoted 1 line

if so how does Xen seperate virtual machines (& is possible to switch between them?)

Each virtual machine needs a separate root filesystem installed. There's a number of ways you can do this: * boot a distro install CD, make a new partition for the VM and do an install into that partition. Then boot back into your main distro and set up a VM to boot off that partition. * if you're using Redhat, you can use anaconda --root (I think) to install a new filesystem into some directory or disk file * if you're using SuSE, you could probably use the UML install tool to create a new SuSE filesystem and then tweak the disk image to work in a Xen VM * if you want to use Debian in your VM, you can download the debootstrap tool and use that to install into a directory or disk image (steps for this are described in the user manual) * you could copy files from your existing distro filesystem to create the new filesystem - this is described in the user manual

Quoted 1 line

I have 40gb spare is that enough to run a couple of VM just to test it out ?

Sure thing! If it's enough space to install multiple distros on your disk then it's enough space to install them an run them under Xen. If you're using the same distro in all domains, you could also consider sharing a /usr partition between them.

Note that the user manual provides a tutorial based around a modified version of ttylinux (available from our SF.net page). This can run out of a disk file and only requires about 4meg of space.

HTH,
Mark

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/