[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-users] Small DataCenter has an example.


  • To: "Tran Minh" <trminh1@xxxxxxxxx>
  • 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
  • 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=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

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

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.