- This topic has 17개 답변, 3명 참여, and was last updated 14 years, 1 month 전에 by ELem. This post has been viewed 2003 times
-
-
https://www.fedoralinux.or.kr/forums/topic/8447
링크의 글 보시면 아시겠지만... 이 글 쓰다가 새로고침돼서 날렸습니다... 고로 이거 다시쓰고있는거 ㅠ
그래서 그냥 간단히 쓰겠습니다...흑흑..ps. 인베인님이 쓰신 글도 참조하세요. https://fedoralinux.or.kr/article/event/126345432721866
===============================================================================
Fedora 12에서 Xen 쉽게 설치하고 Dom0 커널로 부팅하는 방법
How to install Xen and boot with Dom0 kernel in Fedora 12yum으로 xen, virt-manager 설치하세요.
Install xen, virt-manager with yum.sudo yum install xen virt-manager
https://fedorapeople.org/~myoung/dom0/ 에서 자신의 아키텍쳐가 써진 디렉터리로 가서 kernel을 다운받아 설치하든지 https://fedorapeople.org/~myoung/dom0/myoung.dom0.repo 를 /etc/yum.repos.d 에 넣고 yum으로 그 커널 설치하세요. (저는 거기서 kernel-2.6.31.9-1.2.82.xendom0.fc12.x86_64.rpm 다운받아 설치했습니다.)
Download and install kernel from directory named as your architecture in https://fedorapeople.org/~myoung/dom0/ or add https://fedorapeople.org/~myoung/dom0/myoung.dom0.repo in /etc/yum.repos.d and install the kernel with yum. (I installed kernel-2.6.31.9-1.2.82.xendom0.fc12.x86_64.rpm downloaded from the site.)설치가 끝났으면 심벌릭 링크 /boot/xen.gz와 링크 대상이 존재하는지 확인하세요.
Check a symbolic link /boot/xen.gz and the link target are existing.
/boot/grub/grub.conf (GRUB 메뉴 설정 파일 경로는 다를 수 있어요;;) 가셔서 xendom0 커널에 대한 부트 엔트리들을 수정하세요.
Edit boot entries about xendom0 kernel in /boot/grub/grub.conf. (GRUB menu configuration file location can vary.)제 경우 이렇게 수정했는데요,
I edited like this,title XEN Dom0 Fedora (2.6.31.9-1.2.82.xendom0.fc12.x86_64)
root (hd0,0)
kernel /xen.gz iommu=1
module /vmlinuz-2.6.31.9-1.2.82.xendom0.fc12.x86_64 ro root=/dev/mapper/lvm_fedora-lvm_fedora_root LANG=ko_KR.UTF-8 KEYBOARDTYPE=pc KEYTABLE=ko rhgb quiet nomodeset
module /initrd-2.6.31.9-1.2.82.xendom0.fc12.x86_64.imgtitle은 맘대로 하시고...
any titles are fine...
root는 그대로 냅두시고...
Keep the root...kernel은 xen.gz로 해야합니다. 제 경운 /boot 파티션이 따로 나와있어서 /xen.gz긴 한데 /boot 가 / 파티션에 포함된 경우는 잘 모르겠네요. /boot/xen.gz로 해야할지도.
kernel has to be xen.gz. In my case, there's /xen.gz and maybe that's because I have external /boot partition not included in / so I don't sure about case of /boot in / partition. Maybe it should be /boot/xen.gz.kernel의 iommu=1 이부분은 VT-x 지원 활성화입니다. CPU가 VT-x 지원 안되면 지워주세요.
iommu=1 part of kernel boot option is about VT-x support. Remove this if your CPU doesn't support VT-x.원래 있던 kernel, initrd는 module로 바꿔주세요.
Change kernel, initrd to module.
ps. module로 바꾼 kernel부분 뒤쪽 부트옵션에 nomodeset 추가해주시지 않으면 디스플레이 얼어버립니다.
ps. If you don't add nomodeset to kernel module boot option, your display will freeze.위에 제가 올린 예제 참조하세요 @_@
Refer my example @_@이제 설정파일을 저장하세요.
Now save your configuration file.xenconsoled, xend, xendomains, libvirtd 서비스를 사용하도록 해주세요.
Turn xenconsoled, xend, xendomains, libvirtd services on.
chkconfig xenconsoled on
chkconfig xend on
chkconfig xendomains on
chkconfig libvirtd on리붓해주세요.
Reboot.===============================================================================
뭔가 이상한 메시지들과 함께 리붓하시고 오셨다면
If you rebooted with something strange messages
터미널에서 " sudo xm info " 실행해보세요.
run " sudo xm info " in terminal.
별 에러 없이 xen 정보가 나오면 된겁니다.
If you can see some informations about xen without errors, it's succeed.이제 "가상 장치 관리자" 가서 파일 -> Add Connection, 그리고 Hypervisor: Xen, Connection: Local 하고 연결.
Now open "Virtual Machine Manager" and click File -> Add Connection. Select Hypervisor: Xen, Connection: Local, and Connect.
별 문제 없으면 된겁니다.
If there's no error, it's succeed.이제 게스트만 추가하면 되는데...
Now only steps left are adding guests...
이건 나중에 쓸게요;;
I'll add this later;;
- 답변은 로그인 후 가능합니다.