Re: Kernel and Xen on an Intel Quad-Core Xeon E5320 processor

2007-09-12 Thread GNUbie
Hello Gilles,

On 9/11/07, Gilles Mocellin [EMAIL PROTECTED] wrote:



 You you really want to mix Xen and Vservers, What I would do myself, is a
 light Xen Dom0 without the vserver patch, and a DomU specialized for
 vservers, with the vserver and xen kernel.
 Other DomU for other virtual machines, perhaps Windows one ore full
 virtuallized other distro...

 By not using vservers directly on Dom0, you'll keep the possibility of
 online
 migration of the Xen DomU.

 But, I must say, I nerver used vservers... specialy with Xen...


Thank you for your suggestion.

Regards,

GNUbie


Re: Kernel and Xen on an Intel Quad-Core Xeon E5320 processor

2007-09-11 Thread Gilles Mocellin
Le Tuesday 11 September 2007 04:05:08 GNUbie, vous avez écrit :
 Hello Gilles,

[...]
 I already installed the linux-image-2.6.18-5-xen-vserver-amd64 on my server
 and decided to have a VServer and Xen setup.  But, I can't find a good
 HOWTO on such setup.  Is it having VServer inside Xen or the other way
 around?

Vserver in Xen. In facts vservers in the same Xen virtual machine.

 My Debian GNU/Linux Etch AMD64 main system is currently running 
 the
 linux-image-2.6.18-5-xen-vserver-amd64 kernel and Xen is already running:

 # xm list
 Name  ID Mem(MiB) VCPUs State   Time(s)
 Domain-0   0  256 8 r-201.4

Here, I see that you have only the Xen Dom0 running.

From here you already can run vservers, as your Dom0 kernel is a vserver one.

If you only want to have Linux vservers, no other operating systems, You don't 
need Xen at all ! Use linux-image-*-vserver-amd64 kernel.

You you really want to mix Xen and Vservers, What I would do myself, is a 
light Xen Dom0 without the vserver patch, and a DomU specialized for 
vservers, with the vserver and xen kernel.
Other DomU for other virtual machines, perhaps Windows one ore full 
virtuallized other distro...

By not using vservers directly on Dom0, you'll keep the possibility of online 
migration of the Xen DomU.

But, I must say, I nerver used vservers... specialy with Xen...


signature.asc
Description: This is a digitally signed message part.


Re: Kernel and Xen on an Intel Quad-Core Xeon E5320 processor

2007-09-10 Thread Gilles Mocellin
Le Tuesday 04 September 2007 16:42:54 GNUbie, vous avez écrit :
 Hello Gilles,

 Sorry for the late response to your e-mail.

After some vacation, I more late than you !

 linux-image-2.6.18-5-xen-amd64
 linux-image-2.6.18-5-xen-vserver-amd64

This question ahas been answered many times on several lists, but perhaps not 
on this. So :
Vserver is another virtualisation technologie (sort of enhanced chroot).
It is not in the standard kernel, so you have à linux-image*vserver package. 
But, as it is not like Xen (para or full virtualization), it can be used with 
it.
You can Have a server with several virtual machines with Xen, and in on of 
them (Dom0 or DomU), you can have some vservers if you use a 
linux-image-*-xen-vserver-*.

 Also, what is the difference between xen-linux-system-2.6.18-5-xen-amd64
 and the xen-linux-system-2.6.18-5-xen-vserver-amd64 and which of these two
 shall I install?

Install xen-linux-system-2.6.18-5-xen-amd64.

 Please advice.

 Thank you in advance.

 GNUbie


signature.asc
Description: This is a digitally signed message part.


Re: Kernel and Xen on an Intel Quad-Core Xeon E5320 processor

2007-09-10 Thread GNUbie
Hello Gilles,

On 9/11/07, Gilles Mocellin [EMAIL PROTECTED] wrote:


 This question ahas been answered many times on several lists, but perhaps
 not
 on this. So :
 Vserver is another virtualisation technologie (sort of enhanced chroot).
 It is not in the standard kernel, so you have à linux-image*vserver
 package.
 But, as it is not like Xen (para or full virtualization), it can be used
 with
 it.
 You can Have a server with several virtual machines with Xen, and in on of
 them (Dom0 or DomU), you can have some vservers if you use a
 linux-image-*-xen-vserver-*.


I already installed the linux-image-2.6.18-5-xen-vserver-amd64 on my server
and decided to have a VServer and Xen setup.  But, I can't find a good HOWTO
on such setup.  Is it having VServer inside Xen or the other way around?  My
Debian GNU/Linux Etch AMD64 main system is currently running the
linux-image-2.6.18-5-xen-vserver-amd64 kernel and Xen is already running:

# xm list
Name  ID Mem(MiB) VCPUs State   Time(s)
Domain-0   0  256 8 r-201.4

# xm info
host   : host
release: 2.6.18-5-xen-vserver-amd64
version: #1 SMP Thu Aug 30 03:23:33 UTC 2007
machine: x86_64
nr_cpus: 8
nr_nodes   : 1
sockets_per_node   : 2
cores_per_socket   : 4
threads_per_core   : 1
cpu_mhz: 1861
hw_caps:
bfebfbff:20100800::0140:0004e3bd::0001
total_memory   : 4095
free_memory: 3766
xen_major  : 3
xen_minor  : 0
xen_extra  : .3-1
xen_caps   : xen-3.0-x86_64 hvm-3.0-x86_32 hvm-3.0-x86_32p
hvm-3.0-x86_64
xen_pagesize   : 4096
platform_params: virt_start=0x8000
xen_changeset  : Tue Oct 17 22:09:52 2006 +0100
cc_compiler: gcc version 4.1.2 20061028 (prerelease) (Debian
4.1.1-19)
cc_compile_by  : ultrotter
cc_compile_domain  : debian.org
cc_compile_date: Fri Nov  3 00:21:27 CET 2006
xend_config_format : 2

Please advice.

Thank you in advance.

GNUbie


Re: Kernel and Xen on an Intel Quad-Core Xeon E5320 processor

2007-09-04 Thread GNUbie
Hello Gilles,

Sorry for the late response to your e-mail.

On 8/28/07, Gilles Mocellin [EMAIL PROTECTED] wrote:



 Start simple :
 - 1 vCPU per domU, try to let one for dom0, specially if it manages a
 complex
 storage (soft RAID, DRBD, LVM, iSCSI...)
 - Let at least 512Mo for dom 0, spread the rest on your domUs depending on
 what they do. Good to know, you can change the memory allocated for a domU
 online !

 Make some tests, load tests.

 If you know or you see that some tasks are slow because they can't be
 parallelised, add a vCPU to the domU.

 The essential here, is to know what your domUs will really do, and how
 much
 you planned.


Thank you for the tips.  Now, I just check the output of my apt-cache
search xen on my Debian GNU/Linux Etch AMD64 and I got many outputs.  What
are the packages I just need to setup Xen images?  Like for instance, I'm
confused which linux-images shall I install between the two (2) because they
both have the same description:

linux-image-2.6.18-5-xen-amd64
linux-image-2.6.18-5-xen-vserver-amd64

Also, what is the difference between xen-linux-system-2.6.18-5-xen-amd64 and
the xen-linux-system-2.6.18-5-xen-vserver-amd64 and which of these two shall
I install?

Please advice.

Thank you in advance.

GNUbie


Re: Kernel and Xen on an Intel Quad-Core Xeon E5320 processor

2007-08-28 Thread GNUbie
Hello Len,

On 8/28/07, Lennart Sorensen [EMAIL PROTECTED] wrote:



 You already show cpuinfo showing 4 cpu cores.  Debian kernels support
 SMP by default on x86/amd64.


Thank you for confirming this.  I don't need to compile a kernel for my
machine.

Regards,

GNUbie


Re: Kernel and Xen on an Intel Quad-Core Xeon E5320 processor

2007-08-28 Thread GNUbie
Hello Jim,

On 8/28/07, Jim Crilly [EMAIL PROTECTED] wrote:



 You can't give each VM (or domU in Xen terms) all of your memory so at the
 very least you'll have to rethink that part of your setup.


Then how will I allocate memory for each domU?  What's the best practice for
this kind of setup?

As for the CPUs,
 Xen 3.0 and up does seem to support SMP domUs but I can't imagine it would
 be a very good idea to give multiple domUs all 4 CPUs.


What can you advice then based from your experience?

If you have this kind of machine, how will you design your Xen domUs in such
a way that you can properly utilize all your hardware components with the
optimum performance for your network services as well as hosting different
web domains you plan to deploy in a production environment?

Please advice.

Thank you in advance.

GNUbie


Re: Kernel and Xen on an Intel Quad-Core Xeon E5320 processor

2007-08-28 Thread Gilles Mocellin
Le Tuesday 28 August 2007 08:05:59 GNUbie, vous avez écrit :
 Hello Jim,

 On 8/28/07, Jim Crilly [EMAIL PROTECTED] wrote:
  You can't give each VM (or domU in Xen terms) all of your memory so at
  the very least you'll have to rethink that part of your setup.

 Then how will I allocate memory for each domU?  What's the best practice
 for this kind of setup?

 As for the CPUs,

  Xen 3.0 and up does seem to support SMP domUs but I can't imagine it
  would be a very good idea to give multiple domUs all 4 CPUs.

 What can you advice then based from your experience?

 If you have this kind of machine, how will you design your Xen domUs in
 such a way that you can properly utilize all your hardware components with
 the optimum performance for your network services as well as hosting
 different web domains you plan to deploy in a production environment?

 Please advice.

 Thank you in advance.

 GNUbie

Start simple :
- 1 vCPU per domU, try to let one for dom0, specially if it manages a complex 
storage (soft RAID, DRBD, LVM, iSCSI...)
- Let at least 512Mo for dom 0, spread the rest on your domUs depending on 
what they do. Good to know, you can change the memory allocated for a domU 
online !

Make some tests, load tests.

If you know or you see that some tasks are slow because they can't be 
parallelised, add a vCPU to the domU.

The essential here, is to know what your domUs will really do, and how much 
you planned.


signature.asc
Description: This is a digitally signed message part.


Re: Kernel and Xen on an Intel Quad-Core Xeon E5320 processor

2007-08-27 Thread Jim Crilly
On 08/28/07 10:23:41AM +0800, GNUbie wrote:
 Hello all,
 
 I have an Intel Quad-Core Xeon E5320 processor running a Debian GNU/Linux
 Etch and I am confused on two things mainly:
 
 [1]  Do I need to re-compile a new kernel to support SMP?  Currently, it's
 running the stock linux-image-2.6.18-5-amd64 kernel.
 
 [2]  I'm planning to install Xen on this machine so that I can create Xen
 images where the real network services will run on these images.  Do I need
 to compile the newest version of Xen and related packages onto this machine
 from its project page or re-compile the Debian GNU/Linux Etch's Xen sources
 onto this machine or just use whatever is available from the Debian
 GNU/Linux Etch repository?
 
 Basically, I want that my Xen images will see that they're also running on a
 machine that comes with these four (4) processors and 4GB RAM.
 

You can't give each VM (or domU in Xen terms) all of your memory so at the
very least you'll have to rethink that part of your setup. As for the CPUs,
Xen 3.0 and up does seem to support SMP domUs but I can't imagine it would
be a very good idea to give multiple domUs all 4 CPUs.

Jim.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]