| | 127 | |
| | 128 | === cannot boot === |
| | 129 | * 以下の手順ではXen Kernelの起動に成功していない |
| | 130 | |
| | 131 | ==== build kernel ==== |
| | 132 | 1. $ 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 |
| | 133 | {{{ |
| | 134 | Reading package lists... Done |
| | 135 | Building dependency tree |
| | 136 | Reading state information... Done |
| | 137 | Reading extended state information |
| | 138 | Initializing package states... Done |
| | 139 | The following NEW packages will be installed: |
| | 140 | bcc bin86 binutils{a} build-essential defoma{a} dpkg-dev{a} |
| | 141 | esound-common{a} fontconfig-config{a} g++{a} g++-4.4{a} gawk{a} gcc{a} |
| | 142 | gcc-4.4{a} gettext ghostscript git-core gsfonts{a} iasl libaa1{a} |
| | 143 | libaa1-dev{a} libasound2{a} libasound2-dev{a} libaudio-dev{a} |
| | 144 | libaudio2{a} libaudiofile-dev{a} libaudiofile0{a} libavahi-client-dev{a} |
| | 145 | libavahi-client3{a} libavahi-common-data{a} libavahi-common-dev{a} |
| | 146 | libavahi-common3{a} libc-dev-bin{a} libc6-dev{a} libcaca-dev{a} |
| | 147 | libcaca0{a} libcroco3{a} libcups2{a} libcupsimage2{a} libdbus-1-dev{a} |
| | 148 | libdigest-sha1-perl{a} libdirectfb-1.2-0{a} libdirectfb-dev{a} |
| | 149 | libdirectfb-extra{a} libdrm-dev{a} liberror-perl{a} libesd0{a} |
| | 150 | libesd0-dev{a} libflac8{a} libfontconfig1{a} libfreetype6-dev{a} |
| | 151 | libgl1-mesa-dev{a} libgl1-mesa-glx{a} libglib2.0-dev{a} libglu1-mesa{a} |
| | 152 | libglu1-mesa-dev{a} libgomp1{a} libgs8{a} libice-dev{a} libice6{a} |
| | 153 | libjpeg62{a} libjpeg62-dev{a} libkpathsea5{a} liblcms1{a} liblzma1{a} |
| | 154 | libncurses5-dev libogg0{a} libpaper1{a} libpng12-dev{a} libpoppler5{a} |
| | 155 | libpthread-stubs0{a} libpthread-stubs0-dev{a} libpulse-browse0{a} |
| | 156 | libpulse-dev{a} libpulse-mainloop-glib0{a} libpulse0{a} libpython2.6{a} |
| | 157 | libsdl1.2-dev libsdl1.2debian{a} libsdl1.2debian-alsa{a} libslang2-dev{a} |
| | 158 | libsm-dev{a} libsm6{a} libsndfile1{a} libssl-dev libstdc++6-4.4-dev{a} |
| | 159 | libsysfs-dev{a} libsysfs2{a} libtiff4{a} libts-0.0-0{a} libvorbis0a{a} |
| | 160 | libvorbisenc2{a} libx11-dev{a} libxau-dev{a} libxaw7{a} libxcb1-dev{a} |
| | 161 | libxdamage1{a} libxdmcp-dev{a} libxext-dev{a} libxfixes3{a} libxi6{a} |
| | 162 | libxmu6{a} libxpm4{a} libxt-dev{a} libxt6{a} libxtst6{a} libxxf86vm1{a} |
| | 163 | linux-libc-dev{a} luatex{a} mesa-common-dev{a} patch{a} pkg-config{a} |
| | 164 | python2.6-dev tex-common{a} texinfo texlive-base{a} texlive-binaries |
| | 165 | texlive-common{a} texlive-doc-base{a} texlive-fonts-recommended |
| | 166 | texlive-latex-base texlive-latex-recommended transfig tsconf{a} |
| | 167 | ttf-dejavu-core{a} uuid-dev x11-common{a} x11proto-core-dev |
| | 168 | x11proto-input-dev{a} x11proto-kb-dev{a} x11proto-xext-dev{a} |
| | 169 | xtrans-dev{a} xz-utils{a} zlib1g-dev |
| | 170 | The following packages are RECOMMENDED but will NOT be installed: |
| | 171 | cvs cvsnt elks-libc esound-clients fakeroot latex-beamer latex-xcolor |
| | 172 | libgl1-mesa-dri libpaper-utils lmodern manpages-dev netpbm prosper |
| | 173 | psfontmgr texlive-fonts-recommended-doc texlive-latex-base-doc |
| | 174 | texlive-latex-recommended-doc texlive-luatex tipa |
| | 175 | 0 packages upgraded, 133 newly installed, 0 to remove and 0 not upgraded. |
| | 176 | Need to get 108MB of archives. After unpacking 310MB will be used. |
| | 177 | }}} |
| | 178 | 1. $ wget http://bits.xensource.com/oss-xen/release/4.0.1/xen-4.0.1.tar.gz |
| | 179 | 1. ~/xen-4.0.1$ make world |
| | 180 | {{{ |
| | 181 | install -d -m0755 -p /home/mitty/xen-4.0.1/dist/check |
| | 182 | install -m0644 -p ./COPYING /home/mitty/xen-4.0.1/dist |
| | 183 | install -m0644 -p ./README /home/mitty/xen-4.0.1/dist |
| | 184 | install -m0755 -p ./install.sh /home/mitty/xen-4.0.1/dist |
| | 185 | install -m0755 -p tools/check/chk tools/check/check_* tools/check/funcs.sh /home/mitty/xen-4.0.1/dist/check |
| | 186 | make[1]: Leaving directory `/home/mitty/xen-4.0.1' |
| | 187 | }}} |
| | 188 | 1. ~/xen-4.0.1$ sudo make install |
| | 189 | {{{ |
| | 190 | install -d -m0755 -p //usr/share/man |
| | 191 | cp -dR man1 //usr/share/man |
| | 192 | cp -dR man5 //usr/share/man |
| | 193 | [ ! -d html ] || cp -dR html //usr/share/doc/xen |
| | 194 | make[1]: Leaving directory `/home/mitty/xen-4.0.1/docs' |
| | 195 | }}} |
| | 196 | |
| | 197 | ==== edit GRUB conf ==== |
| | 198 | 1. $ sudo vim /etc/default/grub |
| | 199 | {{{ |
| | 200 | @@ -2,7 +2,7 @@ |
| | 201 | # /boot/grub/grub.cfg. |
| | 202 | |
| | 203 | GRUB_DEFAULT=0 |
| | 204 | -GRUB_HIDDEN_TIMEOUT=0 |
| | 205 | +#GRUB_HIDDEN_TIMEOUT=0 |
| | 206 | GRUB_HIDDEN_TIMEOUT_QUIET=true |
| | 207 | GRUB_TIMEOUT=10 |
| | 208 | GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian` |
| | 209 | }}} |
| | 210 | 1. $ sudo vim /etc/grub.d/40_custom |
| | 211 | {{{ |
| | 212 | @@ -3,3 +3,12 @@ |
| | 213 | # This file provides an easy way to add custom menu entries. Simply type the |
| | 214 | # menu entries you want to add after this comment. Be careful not to change |
| | 215 | # the 'exec tail' line above. |
| | 216 | +menuentry "Xen 4.0.1 2.6.32-27 pvops" { |
| | 217 | +insmod part_msdos |
| | 218 | +insmod ext2 |
| | 219 | +set root=(hd0,msdos1) |
| | 220 | +search --no-floppy --fs-uuid --set 95142d06-fa2c-4af5-ae7f-c237b109c320 |
| | 221 | +multiboot /boot/xen.gz |
| | 222 | +module /boot//boot/initrd.img-2.6.32-27 root=/dev/sda1 |
| | 223 | +module /boot/initrd.img-2.6.32-27 |
| | 224 | +} |
| | 225 | }}} |
| | 226 | 1. $ sudo update-grub |
| | 227 | |
| | 228 | ==== how to boot ==== |
| | 229 | * WORK IN PROGRESS |
| | 230 | |
| | 231 | * $ sudo mkinitramfs -o /boot/initrd.img-2.6.32-27-generic 2.6.32-27-generic |
| | 232 | * /etc/grub.d/40_custom を併せて修正したが効果なし |