Accueil | Réseautique | Virtualisation

Xen

 

Notes préliminaires pour la migration de vmWare à Xen...

 

 

==================================================

==================================================

             Xen Virtualization

==================================================

==================================================

 

The machine needs to be prepared with LVM

 

a free partition on your harddrive which is partioned for LVM 

and has usually a name lets name "mygreatlvmvolume"

You can make it with the pvcreate commando.

On my machine a pvscan give the following output:

PV /dev/sda5   VG mygreatlvmvolume   lvm2 [372,52 GB / 45,29 GB free]

 

Then you can create within this partition a specific volume

 

lvcreate -n sme_lv -L 60GB mygreatlvmvolume <<<this creates an logical 

volume where your sme installation will go inside.

mkfs -t ext3 /dev/mygreatlvmvolume/sme_lv

 

after this you type lvscan in your command prompt and this will show 

something like this:

 

/dev/mygreatlvmvolume/sme_lv' [60,00 GB] inherit

==================================================

 

# create LVM With an empty space on the disk:

 

==================================================

 

# use tpe "Linux LVM" for "Physical Volume" (pv)

 

pvcreate /dev/sdb1

 

# Volumegroup on this Physical Volume (vg)

 

vgcreate mygreatlvmvolume /dev/sdb1

 

# Logical-Volumes inside your Volumegroup (lv)

 

lvcreate -n sme_lv -L 60GB mygreatlvmvolume

 

# format this volume

 

mkfs -t ext3 /dev/mygreatlvmvolume/sme_lv

 

==================================================

 

# Prepare for sme

 

==================================================

 

# To deal with the problem with

# "Could not find an installable distribution".

# replace http://distro/.ibiblio.org/pub/linux/distributions/smeserver/releases/7/...

# with "/mnt" 

 

#Downloaded smeserver-7.4-i386.iso on /img

# http://distro.ibiblio.org/pub/linux/distributions/smeserver/releases/7/s...

 

mount /img/smeserver-7.4-i386.iso /mnt -o loop

 

# Create a VM with virt-manager (GUI) or virt-install

 

virt-install --paravirt --name hermes --ram 1024 --file /dev/vg0/hermes --nographics --location /mnt

 

 

==================================================

 

# RHEL5/CentOS5 box you can also do this which is a whole lot easier and quicker:

# /dev/main/sme => empty lvm

 

virt-install -n sme -r 512 -f /dev/main/sme \

  -b xenbr0 --nographics -l \

  http://distro.ibiblio.org/pub/linux/distributions/smeserver/releases/7/smeos/i386 \

  -x 'ksdevice=link ip=dhcp selinux=0 text'