[[PageOutline]] = Xen = * [https://help.ubuntu.com/community/Xen Xen - Community Ubuntu Documentation] * [http://blog.sibrof.net/ken/2008/05/12/769/ Xen – Ubuntu Hardy | Ken's blog] * [http://d.hatena.ne.jp/yuyarin/20090512/1242104908 Xen をインストールしたことのある Ubuntu で init 後に login プロンプトが表示されない - yuyarinの日記] * tail /var/log/syslog {{{ Oct 26 06:40:10 noel init: tty1 main process (21344) terminated with status 1 Oct 26 06:40:10 noel init: tty1 main process ended, respawning Oct 26 06:40:20 noel init: tty1 main process (21455) terminated with status 1 Oct 26 06:40:20 noel init: tty1 main process ended, respawning Oct 26 06:40:30 noel init: tty1 main process (21456) terminated with status 1 Oct 26 06:40:30 noel init: tty1 main process ended, respawning Oct 26 06:40:40 noel init: tty1 main process (21457) terminated with status 1 Oct 26 06:40:40 noel init: tty1 main process ended, respawning }}} * => edit /etc/event.d/tty1 and system reboot {{{ -exec /sbin/getty 38400 xvc0 +exec /sbin/getty 38400 tty1 }}} * see also [http://blog.o-x-t.com/2008/05/09/ttys-killed-on-ubuntu-hardy-heron-vps/ OXT blog » Blog Archive » tty’s killed on Ubuntu Hardy Heron VPS] = Xen with Ubuntu lucid = * https://help.ubuntu.com/community/Xen * Maverick Notes (Xen 4.0.1 pvops on Ubuntu 10.10) > The Xen packages that come with Ubuntu 10.10 ubuntu-xen-desktop and ubuntu-xen-server have broken dependencies. Therefore, we will have to download Xen source and build it. == force install ubuntu-xen-server == * 結論としては「失敗」 * $ sudo aptitude install -R ubuntu-xen-server {{{ The following packages are BROKEN: ubuntu-xen-server The following NEW packages will be installed: libc6-xen libsdl1.2debian{a} libsdl1.2debian-alsa{a} linux-generic-pae linux-image-2.6.32-27-generic-pae linux-image-generic-pae linux-server python-dev{a} python-xen-3.3 python2.6-dev{a} xen-docs-3.3 xen-hypervisor-3.3 xen-utils-3.3 The following packages are RECOMMENDED but will NOT be installed: libc6-dev 0 packages upgraded, 14 newly installed, 0 to remove and 0 not upgraded. Need to get 39.3MB/39.5MB of archives. After unpacking 120MB will be used. The following packages have unmet dependencies: ubuntu-xen-server: Depends: xen-tools which is a virtual package. The following actions will resolve these dependencies: Keep the following packages at their current version: ubuntu-xen-server [Not Installed] Score is -9881 Accept this solution? [Y/n/q/?] Y The following NEW packages will be installed: libc6-xen libsdl1.2debian{a} libsdl1.2debian-alsa{a} linux-generic-pae linux-image-2.6.32-27-generic-pae linux-image-generic-pae linux-server python-dev{a} python-xen-3.3 python2.6-dev{a} xen-docs-3.3 xen-hypervisor-3.3 xen-utils-3.3 The following packages are RECOMMENDED but will NOT be installed: libc6-dev 0 packages upgraded, 13 newly installed, 0 to remove and 0 not upgraded. Need to get 39.3MB/39.5MB of archives. After unpacking 120MB will be used. Do you want to continue? [Y/n/?] (snip) Processing triggers for python-central ... Setting up xen-utils-3.3 (3.3.0-1ubuntu11) ... update-rc.d: warning: xend stop runlevel arguments (0 1 6) do not match LSB Default-Stop values (S 0 1 6) grep: /proc/xen/capabilities: No such file or directory update-rc.d: warning: xendomains start runlevel arguments (2 3 4 5) do not match LSB Default-Start values (3 4 5) update-rc.d: warning: xendomains stop runlevel arguments (0 1 6) do not match LSB Default-Stop values (0 1 2 6) (snip) }}} * $ uname -a {{{ Linux milly 2.6.32-27-generic-pae #49-Ubuntu SMP Thu Dec 2 00:07:52 UTC 2010 i686 GNU/Linux }}} === cannot start xend === * $ sudo service xend start {{{ grep: /proc/xen/capabilities: No such file or directory }}} === remove xen 3.3 === * $ sudo vim /etc/fstab {{{ xenfs /proc/xen xenfs defaults 0 0 }}} > An error occured while mounting /proc/xen * $ sudo aptitude remove -R \ {{{ > libc6-xen libsdl1.2debian libsdl1.2debian-alsa linux-generic-pae\ > linux-image-2.6.32-27-generic-pae linux-image-generic-pae linux-server\ > python-dev python-xen-3.3 python2.6-dev xen-docs-3.3\ > xen-hypervisor-3.3 xen-utils-3.3 }}} {{{ The following packages will be REMOVED: libc6-xen libsdl1.2debian libsdl1.2debian-alsa linux-generic-pae linux-image-2.6.32-27-generic-pae linux-image-generic-pae linux-server python-dev python-xen-3.3 python2.6-dev xen-docs-3.3 xen-hypervisor-3.3 xen-utils-3.3 0 packages upgraded, 0 newly installed, 13 to remove and 0 not upgraded. }}} == build 4.0.1 from source == * https://help.ubuntu.com/community/Xen > The packages are: gettext, bin86, bcc, libc6-dev-i386, iasl, texinfo, git, uuid-dev. * これだけでは十分ではない(後述) 1. $ sudo aptitude install -R gettext bin86 bcc libc6-dev-i386 iasl texinfo git uuid-dev {{{ Couldn't find any package whose name or description matched "libc6-dev-i386" No candidate version found for git Couldn't find any package whose name or description matched "libc6-dev-i386" No candidate version found for git The following NEW packages will be installed: bcc bin86 gettext iasl libc-dev-bin{a} libc6-dev{a} libgomp1{a} linux-libc-dev{a} texinfo uuid-dev The following packages are RECOMMENDED but will NOT be installed: cvs cvsnt elks-libc manpages-dev 0 packages upgraded, 10 newly installed, 0 to remove and 0 not upgraded. }}} 1. $ sudo aptitude install -R git-core {{{ The following NEW packages will be installed: git-core libdigest-sha1-perl{a} liberror-perl{a} The following packages are RECOMMENDED but will NOT be installed: patch 0 packages upgraded, 3 newly installed, 0 to remove and 0 not upgraded. }}} 1. $ wget http://bits.xensource.com/oss-xen/release/4.0.1/xen-4.0.1.tar.gz 1. ~/xen-4.0.1$ make world * [./4.0.1lucid#gcc] 1. $ sudo aptitude install -R gcc {{{ binutils{a} gcc gcc-4.4{a} }}} 1. ~/xen-4.0.1$ make world * [./4.0.1lucid#zlib] 1. $ sudo aptitude install -R zlib1g-dev 1. ~/xen-4.0.1$ make world * [./4.0.1lucid#somethingwrong] === rm and re-make === 1. $ rm -rf xen-4.0.1 1. ~/xen-4.0.1$ make world * [./4.0.1lucid#opensslx11] * $ sudo aptitude install -R libssl-dev x11proto-core-dev 1. $ rm -rf xen-4.0.1 1. ~/xen-4.0.1$ make world * [./4.0.1lucid#sdlncurses] * $ sudo aptitude install -R libsdl1.2-dev libncurses5-dev {{{ The following NEW packages will be installed: libaa1{a} libaa1-dev{a} libasound2-dev{a} libaudio-dev{a} libaudio2{a} libaudiofile-dev{a} libavahi-client-dev{a} libavahi-common-dev{a} libcaca-dev{a} libcaca0{a} libdbus-1-dev{a} libdirectfb-dev{a} libdirectfb-extra{a} libdrm-dev{a} libesd0-dev{a} libflac8{a} libfreetype6-dev{a} libgl1-mesa-dev{a} libgl1-mesa-glx{a} libglib2.0-dev{a} libglu1-mesa{a} libglu1-mesa-dev{a} libice-dev{a} libjpeg62-dev{a} libncurses5-dev libogg0{a} libpng12-dev{a} libpthread-stubs0{a} libpthread-stubs0-dev{a} libpulse-browse0{a} libpulse-dev{a} libpulse-mainloop-glib0{a} libpulse0{a} libsdl1.2-dev libsdl1.2debian{a} libsdl1.2debian-alsa{a} libslang2-dev{a} libsm-dev{a} libsndfile1{a} libsysfs-dev{a} libvorbis0a{a} libvorbisenc2{a} libx11-dev{a} libxau-dev{a} libxcb1-dev{a} libxdmcp-dev{a} libxext-dev{a} libxt-dev{a} libxt6{a} libxtst6{a} libxxf86vm1{a} mesa-common-dev{a} pkg-config{a} x11proto-input-dev{a} x11proto-kb-dev{a} x11proto-xext-dev{a} xtrans-dev{a} The following packages are RECOMMENDED but will NOT be installed: libgl1-mesa-dri }}} 1. $ rm -rf xen-4.0.1 1. ~/xen-4.0.1$ make world