Version 12 (modified by mitty, 14 years ago) (diff) |
---|
Xen
- Xen - Community Ubuntu Documentation
- Xen – Ubuntu Hardy | Ken's blog
- http://wiki.xensource.com/xenwiki/XenNetworking
- 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 OXT blog » Blog Archive » tty’s killed on Ubuntu Hardy Heron VPS
- tail /var/log/syslog
Xen with Debian squeeze
- $ sudo xen-create-image --hostname squeeze-ubuntu --dhcp --dir /var/lib/libvirt/images/
- /var/log/xen-tools/squeeze-ubuntu.log にログが出来る
Installation Summary --------------------- Hostname : squeeze-ubuntu Distribution : squeeze IP-Address(es) : dynamic RSA Fingerprint : c7:4f:41:bb:27:df:fd:5a:54:6c:65:40:cf:4e:e5:1f Root Password : gP2zHhCR
- root password が画面に出力される!
- virt-managerにはDom-0のまま、作成したゲストは登録されない
- /var/log/xen-tools/squeeze-ubuntu.log にログが出来る
- $ sudo xm create /etc/xen/squeeze-ubuntu.cfg
Using config file "/etc/xen/squeeze-ubuntu.cfg". Started domain squeeze-ubuntu (id=1)
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.
- Maverick Notes (Xen 4.0.1 pvops on Ubuntu 10.10)
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
- $ sudo vim /etc/fstab
xenfs /proc/xen xenfs defaults 0 0
An error occured while mounting /proc/xen
remove xen 3.3
- $ 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.
- これだけでは十分ではない => log
- Xen4.0 with Ubuntu 10.04 LTS Server Install|Digital Lab
- コンパイルに必要なパッケージの取得。
#sudo apt-get install bcc bin86 gawk bridge-utils iproute libcurl3 libcurl4-openssl-dev bzip2 module-init-tools transfig tgif texinfo texlive-latex-base texlive-latex-recommended texlive-fonts-extra texlive-fonts-recommended pciutils-dev mercurial build-essential make gcc libc6-dev zlib1g-dev python python-dev python-twisted libncurses5-dev patch libvncserver-dev libsdl-dev libjpeg62-dev iasl libbz2-dev e2fslibs-dev git-core uuid-dev
- イメージファイルを使うときは tap を有効にする。
Backend driver support (XEN_BACKEND) [Y/n/?] y Block-device backend driver (XEN_BLKDEV_BACKEND) [Y/n/m/?] y Block-device tap backend driver (XEN_BLKDEV_TAP) [N/m/y/?] (NEW) y
- コンパイルに必要なパッケージの取得。
cannot boot
case 1
build kernel
- $ sudo aptitude install -R bcc bin86 build-essential gettext ghostscript git-core iasl libncurses5-dev libsdl1.2-dev libssl-dev python2.6-dev texinfo texlive-binaries texlive-fonts-recommended texlive-latex-base texlive-latex-recommended transfig uuid-dev x11proto-core-dev zlib1g-dev
Reading package lists... Done Building dependency tree Reading state information... Done Reading extended state information Initializing package states... Done The following NEW packages will be installed: bcc bin86 binutils{a} build-essential defoma{a} dpkg-dev{a} esound-common{a} fontconfig-config{a} g++{a} g++-4.4{a} gawk{a} gcc{a} gcc-4.4{a} gettext ghostscript git-core gsfonts{a} iasl libaa1{a} libaa1-dev{a} libasound2{a} libasound2-dev{a} libaudio-dev{a} libaudio2{a} libaudiofile-dev{a} libaudiofile0{a} libavahi-client-dev{a} libavahi-client3{a} libavahi-common-data{a} libavahi-common-dev{a} libavahi-common3{a} libc-dev-bin{a} libc6-dev{a} libcaca-dev{a} libcaca0{a} libcroco3{a} libcups2{a} libcupsimage2{a} libdbus-1-dev{a} libdigest-sha1-perl{a} libdirectfb-1.2-0{a} libdirectfb-dev{a} libdirectfb-extra{a} libdrm-dev{a} liberror-perl{a} libesd0{a} libesd0-dev{a} libflac8{a} libfontconfig1{a} libfreetype6-dev{a} libgl1-mesa-dev{a} libgl1-mesa-glx{a} libglib2.0-dev{a} libglu1-mesa{a} libglu1-mesa-dev{a} libgomp1{a} libgs8{a} libice-dev{a} libice6{a} libjpeg62{a} libjpeg62-dev{a} libkpathsea5{a} liblcms1{a} liblzma1{a} libncurses5-dev libogg0{a} libpaper1{a} libpng12-dev{a} libpoppler5{a} libpthread-stubs0{a} libpthread-stubs0-dev{a} libpulse-browse0{a} libpulse-dev{a} libpulse-mainloop-glib0{a} libpulse0{a} libpython2.6{a} libsdl1.2-dev libsdl1.2debian{a} libsdl1.2debian-alsa{a} libslang2-dev{a} libsm-dev{a} libsm6{a} libsndfile1{a} libssl-dev libstdc++6-4.4-dev{a} libsysfs-dev{a} libsysfs2{a} libtiff4{a} libts-0.0-0{a} libvorbis0a{a} libvorbisenc2{a} libx11-dev{a} libxau-dev{a} libxaw7{a} libxcb1-dev{a} libxdamage1{a} libxdmcp-dev{a} libxext-dev{a} libxfixes3{a} libxi6{a} libxmu6{a} libxpm4{a} libxt-dev{a} libxt6{a} libxtst6{a} libxxf86vm1{a} linux-libc-dev{a} luatex{a} mesa-common-dev{a} patch{a} pkg-config{a} python2.6-dev tex-common{a} texinfo texlive-base{a} texlive-binaries texlive-common{a} texlive-doc-base{a} texlive-fonts-recommended texlive-latex-base texlive-latex-recommended transfig tsconf{a} ttf-dejavu-core{a} uuid-dev x11-common{a} x11proto-core-dev x11proto-input-dev{a} x11proto-kb-dev{a} x11proto-xext-dev{a} xtrans-dev{a} xz-utils{a} zlib1g-dev The following packages are RECOMMENDED but will NOT be installed: cvs cvsnt elks-libc esound-clients fakeroot latex-beamer latex-xcolor libgl1-mesa-dri libpaper-utils lmodern manpages-dev netpbm prosper psfontmgr texlive-fonts-recommended-doc texlive-latex-base-doc texlive-latex-recommended-doc texlive-luatex tipa 0 packages upgraded, 133 newly installed, 0 to remove and 0 not upgraded. Need to get 108MB of archives. After unpacking 310MB will be used.
- $ wget http://bits.xensource.com/oss-xen/release/4.0.1/xen-4.0.1.tar.gz
- ~/xen-4.0.1$ make world
install -d -m0755 -p /home/mitty/xen-4.0.1/dist/check install -m0644 -p ./COPYING /home/mitty/xen-4.0.1/dist install -m0644 -p ./README /home/mitty/xen-4.0.1/dist install -m0755 -p ./install.sh /home/mitty/xen-4.0.1/dist install -m0755 -p tools/check/chk tools/check/check_* tools/check/funcs.sh /home/mitty/xen-4.0.1/dist/check make[1]: Leaving directory `/home/mitty/xen-4.0.1'
- ~/xen-4.0.1$ sudo make install
install -d -m0755 -p //usr/share/man cp -dR man1 //usr/share/man cp -dR man5 //usr/share/man [ ! -d html ] || cp -dR html //usr/share/doc/xen make[1]: Leaving directory `/home/mitty/xen-4.0.1/docs'
edit GRUB conf
- $ sudo vim /etc/default/grub
@@ -2,7 +2,7 @@ # /boot/grub/grub.cfg. GRUB_DEFAULT=0 -GRUB_HIDDEN_TIMEOUT=0 +#GRUB_HIDDEN_TIMEOUT=0 GRUB_HIDDEN_TIMEOUT_QUIET=true GRUB_TIMEOUT=10 GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
- $ sudo vim /etc/grub.d/40_custom
@@ -3,3 +3,12 @@ # This file provides an easy way to add custom menu entries. Simply type the # menu entries you want to add after this comment. Be careful not to change # the 'exec tail' line above. +menuentry "Xen 4.0.1 2.6.32-27 pvops" { +insmod part_msdos +insmod ext2 +set root=(hd0,msdos1) +search --no-floppy --fs-uuid --set 95142d06-fa2c-4af5-ae7f-c237b109c320 +multiboot /boot/xen.gz +module /boot//boot/initrd.img-2.6.32-27 root=/dev/sda1 +module /boot/initrd.img-2.6.32-27 +}
- $ sudo update-grub
case 2
- $ sudo aptitude install -R bcc bin86 gawk bridge-utils iproute libcurl3 libcurl4-openssl-dev bzip2 module-init-tools transfig tgif texinfo texlive-latex-base texlive-latex-recommended texlive-fonts-extra texlive-fonts-recommended pciutils-dev mercurial build-essential make gcc libc6-dev zlib1g-dev python python-dev python-twisted libncurses5-dev patch libvncserver-dev libsdl-dev libjpeg62-dev iasl libbz2-dev e2fslibs-dev git-core uuid-dev
Note: selecting "libpci-dev" instead of the virtual package "pciutils-dev" The following NEW packages will be installed: bridge-utils comerr-dev{a} e2fslibs-dev krb5-multidev{a} libbz2-dev libcurl3 libcurl4-openssl-dev libgssrpc4{a} libidn11-dev{a} libkadm5clnt-mit7{a} libkadm5srv-mit7{a} libkdb5-4{a} libkrb5-dev{a} libldap2-dev{a} libpci-dev libvncserver-dev libvncserver0{a} mercurial mercurial-common{a} python-crypto{a} python-dev python-openssl{a} python-pkg-resources{a} python-pyasn1{a} python-twisted python-twisted-bin{a} python-twisted-conch{a} python-twisted-core{a} python-twisted-lore{a} python-twisted-mail{a} python-twisted-names{a} python-twisted-news{a} python-twisted-runner{a} python-twisted-web{a} python-twisted-words{a} python-zope.interface{a} texlive-fonts-extra tgif The following packages are RECOMMENDED but will NOT be installed: python-pam python-serial texlive-fonts-extra-doc 0 packages upgraded, 38 newly installed, 0 to remove and 0 not upgraded. Need to get 92.6MB of archives. After unpacking 264MB will be used.
- ~/xen-4.0.1$ make world
Block-device tap backend driver (XEN_BLKDEV_TAP) [N/m/y/?] (NEW) y
- ~/xen-4.0.1$ sudo make install
- $ sudo vi /etc/fstab
xenfs /proc/xen xenfs defaults 0 0
- $ sudo mkinitramfs -o /boot/initrd.img-2.6.32.27 2.6.32.27
- $ sudo vi /etc/grub.d/40_custom
menuentry "Xen 4.0.1 2.6.32-27 pvops" { insmod part_msdos insmod ext2 set root=(hd0,msdos1) search --no-floppy --fs-uuid --set 96bc95f7-2de5-48a2-be1a-7bfd9d8ed206 multiboot /boot/xen.gz module /boot/vmlinuz-2.6.32-27 root=/dev/sda1 module /boot/initrd.img-2.6.32.27 }
- $ sudo update-grub
how to boot
- WORK IN PROGRESS
- $ sudo mkinitramfs -o /boot/initrd.img-2.6.32-27-generic 2.6.32-27-generic
- /etc/grub.d/40_custom を併せて修正したが効果なし
Attachments (7)
- ubuntu-xen4-elf_xen_note_check.png (5.6 KB) - added by mitty 14 years ago.
- xen4-virt.png (38.8 KB) - added by mitty 14 years ago.
- xen4-virt-guest.png (41.6 KB) - added by mitty 14 years ago.
- xen-intelgpu-1.png (106.7 KB) - added by mitty 9 years ago.
- xen-intelgpu-2.png (115.5 KB) - added by mitty 9 years ago.
- xen-intelgpu-3.png (106.3 KB) - added by mitty 9 years ago.
- xen-intelgpu-4.jpg (213.7 KB) - added by mitty 9 years ago.
Download all attachments as: .zip