Gentoo Archives: gentoo-user

From: Michael Mol <mikemol@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Xen vs Citrix XenServer
Date: Sun, 01 Jan 2012 19:40:48
Message-Id: CA+czFiATeYs1MPKdLog+pTuZ74d4grfGT9MSGkKCgcvq0PoNng@mail.gmail.com
In Reply to: Re: [gentoo-user] Xen vs Citrix XenServer by Tanstaafl
1 On Sun, Jan 1, 2012 at 12:40 PM, Tanstaafl <tanstaafl@×××××××××××.org> wrote:
2 > Thanks for your response Michael...
3 >
4 > On 2012-01-01 11:51 AM, Michael Mol <mikemol@×××××.com> wrote:
5 >
6 >> On Sun, Jan 1, 2012 at 11:18 AM, Tanstaafl wrote:
7 >> While I haven't played with XenServer, I have played with its
8 >> open-source clone, XCP, and was very annoyed by it. I'd rather run a
9 >> Gentoo dom0.
10 >
11 >
12 > I just thought that running a bare metal hyperviser would be more
13 > stable/reliable, and running it on a thumb drive would be much more
14 > convenient.
15 >
16 >
17 >>> First - I want to use a bare metal hypervisor that supports the
18 >>> following:
19 >>>
20 >>> 1. Can be installed on a USB FLASH drive (I have some Dell
21 >>> Poweredge 2970 servers with the internal USB slot for just this
22 >>> purpose), and
23 >
24 >
25 >> I don't think I've heard of anyone doing this, but I don't see why
26 >> it'd be a problem.
27 >
28 >
29 > Definitely not a problem for XenServer (although v6 isn't officially
30 > supported on a thumb drive yet), so I was mainly wondering about Xen
31 > itself...
32
33 XenServer is "just" the Xen hypervisor prepackaged with a custom Linux
34 distribution running in the dom0.
35
36 >>> 2. Fully supports both Windows Server 2008 (our Domain Controller),
37 >>> and Gentoo Linux (our mail and web servers).
38 >
39 >
40 >> The xen supports hvm, where it emulates hardware; in a full hvm VM,
41 >> *any* operating system comfortable on x86 should run.
42 >>
43 >> There's also paravirtualization, which is faster, and is likely what
44 >> you're thinking of wrt 'bare metal'. Signed drivers for paravirt
45 >> mode for hardware (such as your network, disk or system clock) are
46 >> available for current versions of Windows.
47 >
48 >
49 > Yes, PV is what I was thinking of, thanks - and apparently this wouldn't be
50 > a problem with gentoo either?
51
52 You'd want to either run xen-sources or another Linux kernel recent
53 enough to have specific support for communicating with the xen
54 hypervisor.
55
56 >>> I can't seem to find an ebuild for the xenserver tools, and when
57 >>> looking found out about Xen (I had thought that it went away a long
58 >>> time ago)...
59 >
60 >
61 >> * app-emulation/xen-tools
62 >>      Available versions:  3.4.2-r3 ~3.4.2-r5 ~4.1.1-r5 4.1.1-r6
63 >> ~4.1.2-r2!t {acm api custom-cflags debug doc flask hvm pygrub qemu
64 >> screen xend}
65 >>      Homepage:            http://xen.org/
66 >>      Description:         Xend daemon and tools
67 >
68 >
69 > Hmm... so will these tools work with XenServer? Or are they just for Xen?
70
71 xend is a daemon which runs in your dom0. If you're running XenServer
72 or XCP, you're running Citrix's custom Linux distribution in your
73 dom0. If you're running Gentoo in your dom0, you're not running
74 XenServer.
75
76 > Also, I ran across an article on the gentoo wiki that said that the VM
77 > images for Xen and XenServer are NOT compatible, which I find odd if
78 > XenServer is just Xen with some additional tools provided by Citrix.
79
80 Don't know. I can make any number of educated guesses as to why this could be.
81
82 > The article also said that the single biggest advantage of XenServer is the
83 > amount of time required to get something up and running - minutes for
84 > XenServer, compared to days for Xen - is this dated info, or still true?
85
86 It's analogous to running something like RHEL versus something like
87 Gentoo; there's a huge number of different ways you could do things in
88 Linux, but RHEL ties more of the pieces together for you than Gentoo
89 would. Likewise, XenServer ties more of the pieces together for you
90 than running Xen on top of some random Linux distribution.
91
92 [Drawing off my playing with XCP, the open-source clone of XenServer]
93
94 If you're going to use XenServer, you get most of a pretty interface
95 set up for you fairly quickly; the default console interface lets you
96 perform a variety of maintenance tasks through scripts and toolchains
97 that are already set up. (If I understand things properly, the backend
98 in question is the XAPI toolstack[1], for which there doesn't appear
99 to be an ebuild.)
100
101 [1] http://blog.xen.org/index.php/2009/11/03/xapi-toolstack-release-details/
102
103
104 >> * sec-policy/selinux-xen
105 >>      Available versions:  [M]2.20110726
106 >>      Homepage:            http://www.gentoo.org/proj/en/hardened/selinux/
107 >>      Description:         SELinux policy for xen
108 >>
109 >> * sys-kernel/xen-sources
110 >>      Available versions:
111 >>         (2.6.18-r12)    2.6.18-r12!b!s
112 >>         (2.6.34-r3)     ~2.6.34-r3!b!s
113 >>         (2.6.34-r4)     ~2.6.34-r4!b!s
114 >>         (2.6.38)        ~2.6.38!b!s
115 >>         {build deblob symlink}
116 >>      Homepage:            http://xen.org/
117 >>      Description:         Full sources for a dom0/domU Linux kernel to
118 >> run under Xen
119 >
120 >
121 > I though that xen-sources were no longer needed as of kernel 2.6.33+?
122
123 My understanding is that xen features are getting slowly reimplemented
124 in the mainline kernel tree, and that not all of the features are
125 there yet.
126
127 > Thanks again Michael,
128
129 IANAXE, but I'll happily explain my understanding. :)
130
131 --
132 :wq