티스토리 뷰
virtualization
Installing Xen 3.2 and Xenoprofile on Debian 5.0.7 - Not quite (2011/01/12)
kenshin579 2011. 1. 11. 15:02
Install Xen
># apt-get install xen-hypervisor-3.2-1-amd64 xen-linux-system-2.6.26-2-xen-amd64 linux-image-2.6.26-2-xen-amd64 linux-modules-2.6.26-2-xen-amd64 linux-headers-2.6.26-2-xen-amd64 linux-headers-2.6.26-2-common-xen xen-tools
Since we are going to use image-based VM, let's increase the limit on loop device.
># vim /etc/modules
loop max_loop=64
Next, we need to config the xen
># vim /etc/xen/xend-config.sxp
...
(network-script network-bridge)
#(network-script network-dummy)
(vif-script vif-bridge)
...
># reboot
># ifconfig
Installing VM
Need to edit xen-tools.conf
># vim /etc/xen-tools/xen-tools.conf
...
dir = /home/xen
dist = lenny
gateway = 1921.68.1.1
netmask = 255.255.255.0
broadcast = 192.168.1.255
mirror = http://ftp.kr.debian.org/debian/
serial_device = hvc0
disk_device = xvda
...
># mkdir /home/xen
># 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 --size=2Gb --memory=512Mb --arch=amd64 --partitions=green --force --boot --passwd --role udev
Installing Xenoprofile from source code.
Please refer to http://kenshin579.tistory.com/298
After the xenoprofile installation
># opcontrol --init
Make sure that active_domains and passive_domains are listed.
># find /dev/oprofile
Now it's time to test Xenoprofile
* We need to have xen-syms and vmlinux so let's just build a xen package from scratch.
Building debian packages from source
1. linux-image-*-xen to get the vmlinuz file
># apt-get build-dep linux-image-2.6.26-2-xen-amd64
># apt-get source linux-image-2.6.26-2-xen-amd64
We need to add more PROFILE options to .config
* I thought by doing this would enable hardware performance counter, but I just realized that I need to patch kernel to support hardware performance counters. This left as future work. No time at the moment!!
So currently the system only supports timer interrupt.
># dpkg-buildpackage -uc -B
># cp ~/src/linux-2.6-2.6.26/debian/build/build_amd64_xen_amd64/vmlinux /boot/vmlinux-`uname -r`
2. trying to get the xen-syms file
># apt-get build-dep xen-hypervisor-3.2-1-amd64
># apt-get source -b xen-hypervisor-3.2-1-amd64
># cp ~/src/xen-3-3.2.1/debian/build/build-hypervisor_amd64_amd64/xen/xen-syms /boot/xen-syms-`uname -r`
Profiling from dom0 just for testing
* oprofile-0.9.5 with xen patch does not work on this system. Just use the binary format.
dom0># apt-get install oprofile
dom0># opcontrol --init
dom0># opcontrol --start --vmlinux=/boot/vmlinux-2.6.26-2-xen-amd64
dom0># stress -t 10 -c 1
dom0># opcontrol --dump
dom0># opcontrol --shutdown
dom0># opreport -lt1
References
2. Virtulization with Xen on Debian Lenny (5.0, AMD64), http://www.howtoforge.com/virtualization-with-xen-on-debian-lenny-amd64
3. Virtulization with Xen 3.3.1 on Debian Etch (4.0), http://www.howtoforge.com/virtualization-with-xen-3.3.1-on-debian-etch
4. Apt, dpkg Quick Reference Sheet, http://www.cyberciti.biz/ref/apt-dpkg-ref.html
5. Building the package, http://www.debian.org/doc/maint-guide/ch-build.en.html
6. CONFIG_PERF_COUNTERS, http://cateee.net/lkddb/web-lkddb/PERF_COUNTERS.html
7. Profiling the kernel, http://homepages.cwi.nl/~aeb/linux/profile.html
8.
'virtualization' 카테고리의 다른 글
Running 32-bit DomU on 64-bit Dom0 (0) | 2011.03.22 |
---|---|
Installing Xen on Ubuntu 9.04 w/ binary package. (0) | 2011.02.23 |
XenOprofile, OProfile on Ubuntu 10.04 - Unsuccessful (2011/01/11) (0) | 2011.01.10 |
Workload Characterization for VM and process in Non-virtualized Environment (0) | 2011.01.07 |
Installing Xen on Ubuntu 10.04 (0) | 2011.01.06 |
댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- benchmark
- meld
- Ubuntu 9.04
- deb
- Java profiler
- r
- latex on ubuntu
- Xen
- ubuntu 8.10
- C
- ubuntu
- C정리
- benchmarks
- MPI
- spec
- SNU latex 논문
- perfmon2
- VIM
- KVM
- YourKit
- 서울대 학위논문 포멧
- SNU 석사논문 latex
- ssh
- SNU 학위논문 latex 포멧
- C언어 정리
- known_hosts
- nas parallel benchmark
- latex
- opennebula
- hprof
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함