티스토리 뷰
I used to be able to install Xen on 9.04 with binary format seamlessly somewhat. But after upgrading to 10.04, I am not sure whether the installation would work seamless as it was on 9.04.
There are many tutorials on installing Xen 4.0 on 10.04 by compiling source codes, but I just want to install xen with the binary to make it simpler.
Let me try with installing older version on 10.04. Here we go....
Install Xen 3.0.3(?) from binary (tried - no luck)
># sudo apt-get install ubuntu-xen-server
Add jaunty distribution to sources.list
># vim /etc/apt/sources.list
deb http://kr.archive.ubuntu.com/ubuntu/ jaunty main restricted universe multiverse
deb-src http://kr.archive.ubuntu.com/ubuntu/ jaunty main restricted universe multiverse
># apt-get update
># apt-get install ubuntu-xen-server
It seems like there is a bug.
I can't find solutions for this so I guess I just have to install xen from source. From here on, I am following #2 guideline.
Installing Xen 4.0 from source
># mkdir xen4x; cd xen4x
># wget -q -O - \
catdoc > .sh; sh .sh
1. To build xen-hypervisor
># debian/bin/packageXen40x.sh
2. To install build binary files
For xen packages,
># sudo dpkg --purge --force-depends python-xml
># sudo dpkg -i /usr/src/build-lucid/python-xml/python-xml_0.8.4-10.1ubuntu2*.deb
># cd /usr/src/build-lucid
># sudo dpkg --purge --force-depends libxen4-dev libxen4 python-xen-4.0 xen-docs-4.0 xen-hypervisor-4.0 xen-utils-4.0
># sudo dpkg -i libxen4-dev_4.0.1-0ubuntu2_amd64.deb libxen4_4.0.1-0ubuntu2_amd64.deb python-xen-4.0_4.0.1-0ubuntu2_amd64.deb xen-docs-4.0_4.0.1-0ubuntu2_all.deb xen-hypervisor-4.0_4.0.1-0ubuntu2_amd64.deb xen-utils-4.0_4.0.1-0ubuntu2_amd64.deb
3. To build xen-kernel
># head debian/bin/kpkgXenKernel.sh
#!/bin/bash -x
# ./kpkg2XenKernel.sh
# Use:
# ./kpkg2XenKernel.sh stable-2.6.31.x 100402212843 #or# ./remakeXenKernel.sh stable-2.6.31.x f3d5fe8050
# ./kpkg2XenKernel.sh stable-2.6.32.x 100430201127 #or# ./remakeXenKernel.sh stable-2.6.32.x 4dd582f35f
# ./kpkg2XenKernel.sh stable-2.6.32.x 100517202304 #or# ./remakeXenKernel.sh stable-2.6.32.x ba739f9abd
# ./kpkg2XenKernel.sh stable-2.6.33.x # picks up the last commit
# TWEAKCONFIG=yes ./kpkg2XenKernel.sh stable-2.6.32.x # Configuration before the build of the last commit
Select the appropriate kernel
** 2.6.32.27 DOES NOT WORK T.T **
Let me try with 2.6.31.x
># debian/bin/kpkgXenKernel.sh stable-2.6.31.x 100402212843
Install and config grub config.
># dpkg -i linux-headers-2.6.31.12-xen_100402212843_amd64.deb linux-image-2.6.31.12-xen_100402212843_amd64.deb
># ls /lib/modules
># mkinitramfs -o /boot/initrd.img-2.6.31.12-xen 2.6.31.12-xen
Edit grub configuration
* Make sure that the following line is included.
># vim /boot/grub/menu.lst
...
module /boot/initrd.img-2.6.31.12-xen
...
># reboot
** 2.6.31.12 WORKS **
Let's try installing a VM, then...
># apt-get install xen-tools_4.2-1_all.deb
># vim /etc/xen-tools/partitions.d/green
[root]
size=2G
type=ext3
mountpoint=/
options=sync,errors=remount-ro
[swap]
size=512M
type=swap
># sudo xen-create-image --hostname=green1 --ip=192.168.1.164 --gateway=192.168.1.1 --netmask=255.255.255.0 --broadcast=192.168.1.255 --dist=lucid --mirror=http://kr.archive.ubuntu.com/ubuntu --size=2Gb --memory=512Mb --arch=amd64 --partitions=green --force --boot --passwd --role udev --dir /home/xen
Installing a VM with virt-manager
* At the moment, I am not sure how to fix this.
References
4. Complete manual setup for VM, http://xen.1045712.n5.nabble.com/How-to-install-an-Ubuntu-DomU-on-Ubuntu-10-04-Dom0-td3252265.html
'virtualization' 카테고리의 다른 글
댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- latex
- KVM
- C언어 정리
- r
- ubuntu 8.10
- Xen
- MPI
- C
- C정리
- benchmark
- ssh
- opennebula
- YourKit
- SNU latex 논문
- hprof
- VIM
- Ubuntu 9.04
- perfmon2
- 서울대 학위논문 포멧
- deb
- latex on ubuntu
- Java profiler
- known_hosts
- meld
- ubuntu
- spec
- nas parallel benchmark
- SNU 석사논문 latex
- benchmarks
- SNU 학위논문 latex 포멧
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
글 보관함