Xen FAQ Linux Distributions: Difference between revisions

From Xen
Jump to navigationJump to search
(Removed TODO)
 
(2 intermediate revisions by 2 users not shown)
Line 11: Line 11:
To run Xen and a single OS from a binary release you need install no extra packages. To build Xen, XenLinux and documentation from source you will need: '''make''', '''libncurses5-dev''', '''libncurses5''', '''gcc''', '''libc6-dev''', '''zlib1g-dev''', '''python''', '''python-dev''', '''python-twisted''', '''openssl''', '''openssl-dev''', '''bridge-utils''', '''iproute''', '''libcurl3''', '''libcurl3-dev''', '''bzip2''', '''module-init-tools''', '''latex''', '''latex2html''', '''transfig''', and '''tgif'''.
To run Xen and a single OS from a binary release you need install no extra packages. To build Xen, XenLinux and documentation from source you will need: '''make''', '''libncurses5-dev''', '''libncurses5''', '''gcc''', '''libc6-dev''', '''zlib1g-dev''', '''python''', '''python-dev''', '''python-twisted''', '''openssl''', '''openssl-dev''', '''bridge-utils''', '''iproute''', '''libcurl3''', '''libcurl3-dev''', '''bzip2''', '''module-init-tools''', '''latex''', '''latex2html''', '''transfig''', and '''tgif'''.


== How do I fix the 4gb seg fixup messages in my syslog? ==
== Why does Fedora Core 3 stop working after printing the line "Freeing unused kernel memory: ..."? ==
<br><br> These messages are from a glibc that was built with negative GS register offsets. Xen can run with negative GS register references, but it must "trap and emulate" this condition, which is relatively resource intensive, and quite slow. <br><br> If you don't have a patched glibc, see the no-tls-direct-seg-refs patch mentioned in [[XenSpecificGlibc]]. <br><br> Most newer distributions are shipped with a "-mno-tls-direct-seg-refs" compiled glibc, but it might not be enabled by default. <br><br> Some newer distributions like the RHEL5 Beta1/Beta2 require the ld.so.conf.d trick below to refer to the patched glibc. <br><br> Some slightly older distributions like Ubuntu Dapper can be fixed with a simple rebuild of glibc: (see [[UbuntuDapperHowTo]]).
FC3 uses the new udev system for managing device nodes in <code><nowiki>/dev</nowiki></code>. To successfully boot, and to get any console output from <code><nowiki>init</nowiki></code>, you either need to manually create some device nodes or you need to load and run a suitable initrd. The former solution requires you to mount the root filesystem and then:




<pre><nowiki>
<pre><nowiki>
echo 'hwcap 0 nosegneg' > /etc/ld.so.conf.d/libc6-xen.conf && ldconfig
# mknod /path/to/dev/null c 1 3
# mknod /path/to/dev/console c 5 1
</nowiki></pre>
</nowiki></pre>


Reference Link: http://lists.xensource.com/archives/html/xen-users/2006-11/msg00026.html and http://www.mail-archive.com/fedora-xen@redhat.com/msg00041.html <br><br>
If you instead wish to load an initrd file then you can use one provided in the <code><nowiki>/boot</nowiki></code> directory of your FC3 filesystem, or you can use the slightly-modified one that [http://www.cl.cam.ac.uk/Research/SRG/netos/xen/downloads/initrd-fc3.img we supply]. To load and run your initrd file, or to modify it, see [[#loadruninitrd|this]] and [[#distroinitrd|this]] above.


== Where do I find more information about Xen and my favorite Linux/Unix distro? ==
You may also want to disable X by editing <code><nowiki>/etc/inittab</nowiki></code> if you do not use X, or if X is configured incorrectly and is causing your boot to fail. To do this, change "id:5:initdefault:" to "id:3:initdefault:".
'''Ubuntu'''
* [https://help.ubuntu.com/community/VirtualMachines Virtualization help page]
* [https://wiki.ubuntu.com/Xen Xen wiki page]
* [https://help.ubuntu.com/community/Xen Xen help page]


'''Debian'''
== Why can't I save VM instances or migrate with Fedora Core 3 or Debian Sarge? I get a connection refused error from twisted referring to port 111. ==
* [http://wiki.debian.org/Xen Xen wiki page]
<br><br> Fedora Core 3 and [[DebianSarge]] are missing <code><nowiki>/usr/lib/libcurl.so.2</nowiki></code> (they come with <code><nowiki>libcurl.so.3.0.0</nowiki></code> instead when updated to the latest RPMs as of 5/2/2005). This causes <code><nowiki>/usr/sbin/xfrd</nowiki></code> to fail and it is required for save (and other) operations. A workaround tried on both FC3 and Sarge is to just set up a symlink for <code><nowiki>libcurl.so.2</nowiki></code> which points at <code><nowiki>libcurl.so.3.0.0</nowiki></code>. With Debian, you can instead try installing [ftp://ftp.debian.org/debian/pool/main/c/curl/libcurl2_7.9.5-1_i386.deb the libcurl2 package from oldstable], though this workaround is untested and may cause you other problems.
* [http://lists.alioth.debian.org/mailman/listinfo/pkg-xen-devel Debian Xen package development list]


'''Fedora'''
The problem does not occur in xen-testing, which uses curl3.
* [http://fedoraproject.org/wiki/Getting_started_with_virtualization Virtualization Wiki page]
* [http://www.redhat.com/mailman/listinfo/fedora-xen Xen list]
* [http://www.redhat.com/mailman/listinfo/fedora-virt Virtualization list]


'''CentOS'''
== How do I fix the 4gb seg fixup messages in my syslog? ==
* [http://lists.centos.org/mailman/listinfo/centos-virt/ Xen lists]
<br><br> These messages are from a glibc that was built with negative GS register offsets. Xen can run with negative GS register references, but it must "trap and emulate" this condition, which is relatively resource intensive, and quite slow. <br><br> If you don't have a patched glibc, see the no-tls-direct-seg-refs patch mentioned in [[XenSpecificGlibc]]. <br><br> Most newer distributions are shipped with a "-mno-tls-direct-seg-refs" compiled glibc, but it might not be enabled by default. <br><br> Some newer distributions like the RHEL5 Beta1/Beta2 require the ld.so.conf.d trick below to refer to the patched glibc. <br><br> Some slightly older distributions like Ubuntu Dapper can be fixed with a simple rebuild of glibc: (see [[UbuntuDapperHowTo]]).
* [http://wiki.centos.org/HowTos/Xen/InstallingCentOSDomU Xen wiki page]
* There are also other Xen-related pages on CentOS wiki... see [http://wiki.centos.org/?action=fullsearch&context=180&value=xen&titlesearch=Titles search]


'''OpenSUSE'''
* [http://lists.opensuse.org/opensuse-virtual/ Xen lists]
* [http://en.opensuse.org/openSUSE:SUSE_Studio_Xen_Howtos Xen wiki page]


'''Gentoo'''
<pre><nowiki>
* [https://wiki.gentoo.org/wiki/Xen Xen wiki page]
echo 'hwcap 0 nosegneg' > /etc/ld.so.conf.d/libc6-xen.conf && ldconfig
</nowiki></pre>


'''Arch Linux'''
Reference Link: http://lists.xensource.com/archives/html/xen-users/2006-11/msg00026.html and http://www.mail-archive.com/fedora-xen@redhat.com/msg00041.html <br><br>
* [https://wiki.archlinux.org/index.php/Xen Xen wiki page]

'''NetBSD'''
* [http://www.netbsd.org/mailinglists/#port-xen Xen list]
* [http://www.netbsd.org/ports/xen/ Xen wiki page]

'''FreeBSD'''
* [http://wiki.freebsd.org/FreeBSD/Xen Xen wiki page]

'''Solaris'''
* [http://hub.opensolaris.org/bin/view/Community+Group+xen/ Xen wiki page]


[[Category:Xen]]
[[Category:Xen]]

Latest revision as of 18:30, 15 December 2014


What Debian packages do I need for Xen?

To run Xen and a single OS from a binary release you need install no extra packages. To build Xen, XenLinux and documentation from source you will need: make, libncurses5-dev, libncurses5, gcc, libc6-dev, zlib1g-dev, python, python-dev, python-twisted, openssl, openssl-dev, bridge-utils, iproute, libcurl3, libcurl3-dev, bzip2, module-init-tools, latex, latex2html, transfig, and tgif.

How do I fix the 4gb seg fixup messages in my syslog?



These messages are from a glibc that was built with negative GS register offsets. Xen can run with negative GS register references, but it must "trap and emulate" this condition, which is relatively resource intensive, and quite slow.

If you don't have a patched glibc, see the no-tls-direct-seg-refs patch mentioned in XenSpecificGlibc.

Most newer distributions are shipped with a "-mno-tls-direct-seg-refs" compiled glibc, but it might not be enabled by default.

Some newer distributions like the RHEL5 Beta1/Beta2 require the ld.so.conf.d trick below to refer to the patched glibc.

Some slightly older distributions like Ubuntu Dapper can be fixed with a simple rebuild of glibc: (see UbuntuDapperHowTo).


 echo 'hwcap 0 nosegneg' > /etc/ld.so.conf.d/libc6-xen.conf && ldconfig

Reference Link: http://lists.xensource.com/archives/html/xen-users/2006-11/msg00026.html and http://www.mail-archive.com/fedora-xen@redhat.com/msg00041.html

Where do I find more information about Xen and my favorite Linux/Unix distro?

Ubuntu

Debian

Fedora

CentOS

OpenSUSE

Gentoo

Arch Linux

NetBSD

FreeBSD

Solaris