WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

[Xen-users] Small DataCenter has an example.

To: "Tran Minh" <trminh1@xxxxxxxxx>
Subject: [Xen-users] Small DataCenter has an example.
From: "Thiago Camargo Martins Cordeiro" <thiagocmartinsc@xxxxxxxxx>
Date: Mon, 29 Sep 2008 03:09:08 -0300
Cc: XEN Mailing List <xen-users@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Sun, 28 Sep 2008 23:09:54 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:mime-version:content-type; bh=qdIyDCZVaiDqY1Ph5lI6jErBI/VKTzY/x8CpHYJQbz0=; b=hV/bVCzg64JxnnPAhxmwkOp90FrXaxwF3l5NFqZlEgbMXwetgkhgg3TX48r1MjcC6Z q/VvqamBcw3sYAW6155VwjBPbWI1rr7rtvyOFiMMYJW9j8AKXmCz8R5gih92adpj7qPM mMW0FqWxWY3SlE5jLnluyeJtkmWEO7+y1UwIE=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:mime-version:content-type; b=YBe+xqb/uynGBsW8d40vqXQTlwk9s5mxI0NYBn+HaOzmkXU4zKXUcbTslRvH9x7DX8 pkQPUPvPbtV0kqxt7h2MsbJUzg9lq6//H13HJuYrmR5BCYdVgdnIC+JERtNfTyUmGDvv Sk7AR2QYVQlZS2wL0ZSZR6TEKhY0ZbUeNB/9Q=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Tran,

 You can install Ubuntu Hardy, Xen on Ubuntu is very easy to setup. You can do it in 3 steps, 1 install Ubuntu, 2 install Xen and 3 create and mange your virtual machines.

 Installing your first Xen, hostnamed hyper01:

 Prefer a 64bits version of Ubuntu Server 8.04.1 with the following partitions (you can use LVM2 over RAID1 for a production server):

1- /dev/sda1 128M /boot (or /dev/md0 on RAID1)
2- /dev/sda2 1024M SWAP (and /dev/sdb2 on second disc)
3- /dev/sda3 199G LVM2 (or /dev/md1 on RAID1)

 Then you will use this 199G LVM2 Phisical Volume to create a Volume Group called HyperVG01, and all partitions of your dom0 (first Linux started by Xen Hypervisor) will be there, look:

 5 Logical Volumes for your dom0 hyper01 on HyperVG01 named:

1 hyper01-root (640M on /)
2 hyper01-tmp (512M on /tmp)
3 hyper01-home (5G on /home)
4 hyper01-usr (2G on /usr)
5 hyper01-var (2G on /var)

 After installation complete, log into your hyper01 and add this line to your /etc/apt/sources.list:

deb http://us.archive.ubuntu.com/ubuntu/ hardy-proposed main restricted universe multiverse

 And do: "aptitude update;aptitude dist-upgrade;aptitude install openssh-server" and reboot...

 Now you can install Xen and start creating your domUs.

 Install Xen:

 aptitude install ubuntu-xen-server ; reboot

 Configure Xen Tools:

Edit /etc/xen-tools/xen-tools.conf and add this lines:

lvm = HyperVG01
mirror = http://us.archive.ubuntu.com/ubuntu/

Edit /etc/xen-tools/partitions.d/sample-server and setup partitions for your first domU.

Create your first virtual machine (domU):

xen-create-image --hostname=domu01 --dhcp --partitions=sample-server --arch=amd64 --verbose --dist=hardy --force

Create another domU:

xen-create-image --hostname=domu02 --dhcp --partitions=sample-server --arch=amd64 --verbose --dist=hardy --force

 You can change "--dhcp" for "--ip=192.168.Y.Z --netmask=255.255.255.0 --gateway=192.168.Y.X".

 Start your domU:

xm create /etc/xen/domu01.cfg
or
xm create -c /etc/xen/domu01.cfg ... to connect to console immediately.

Connect to your domu01 console:

xm console domu01

To detach from console, type control+].

 That's it!

 Note.: Don't use some hardwares with Ubuntu, like Adapted Raid Controller or some HP machines does't work under Xen/Ubuntu. Look: https://help.ubuntu.com/community/Xen

Best Regards,
Thiago


2008/9/29 Tran Minh <trminh1@xxxxxxxxx>
Hi, every body,
I am new one in Virtualization's works, especially in Xen. I need to
build a big Computer from 4 PC (with CPU= Intel Xeon 2x2GHz, RAM=8Gb
for each, HDD=200Gb). My purpose is setup a small Data Center as an
example for my student's class with some services like e-mail, voip,
video conferencing, Education Document's storage. . ..
I need any help from you. Is there any body have guide line or
tutorial documents for the beginner like me? Pleased, send me.
Thank you so much in advance.

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
<Prev in Thread] Current Thread [Next in Thread>