Xen FAQ Linux Distributions: Difference between revisions
Lars.kurth (talk | contribs) (Added links to distro resources) |
(→Where do I find more information about Xen and my favorite Linux/Unix distro?: Update gentoo wiki link for Xen) |
||
(One intermediate revision by one other user not shown) | |||
Line 10: | Line 10: | ||
== What Debian packages do I need for Xen? == |
== 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'''. |
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'''. |
||
== Why does Fedora Core 3 stop working after printing the line "Freeing unused kernel memory: ..."? == |
|||
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> |
|||
# mknod /path/to/dev/null c 1 3 |
|||
# mknod /path/to/dev/console c 5 1 |
|||
</nowiki></pre> |
|||
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. |
|||
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:". |
|||
== 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. == |
|||
<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. |
|||
The problem does not occur in xen-testing, which uses curl3. |
|||
== How do I fix the 4gb seg fixup messages in my syslog? == |
== How do I fix the 4gb seg fixup messages in my syslog? == |
||
Line 64: | Line 46: | ||
'''Gentoo''' |
'''Gentoo''' |
||
* [ |
* [https://wiki.gentoo.org/wiki/Xen Xen wiki page] |
||
'''Arch Linux''' |
'''Arch Linux''' |
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
- Xen lists
- Xen wiki page
- There are also other Xen-related pages on CentOS wiki... see search
OpenSUSE
Gentoo
Arch Linux
NetBSD
FreeBSD
Solaris