Skip to content

- XEN 설치
yum 을 사용하여 설치를 진행합니다.
[root@ruo91 ~]# yum install -y kernel-xen xen

설치가 완료 되면 grub에 XEN 커널이 추가가 됩니다.
menu.lst 파일에 'default=1' 을 'default=0' 으로 수정한 후 재부팅 합니다.
[root@ruo91 ~]# vi /boot/grub/menu.lst
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /boot/, eg.
#          root (hd0,0)
#          kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol00
#          initrd /initrd-version.img
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title CentOS (2.6.18-164.11.1.el5xen)
        root (hd0,0)
        kernel /xen.gz-2.6.18-164.11.1.el5
        module /vmlinuz-2.6.18-164.11.1.el5xen ro root=/dev/VolGroup00/LogVol00
        module /initrd-2.6.18-164.11.1.el5xen.img
title CentOS (2.6.18-164.el5)
        root (hd0,0)
        kernel /vmlinuz-2.6.18-164.el5 ro root=/dev/VolGroup00/LogVol00
        initrd /initrd-2.6.18-164.el5.img
[root@ruo91 ~]# reboot

XEN.png

 

- Guest OS 설치
가상화 목록을 확인 합니다.
[root@ruo91 ~]# xm list
Name                                      ID Mem(MiB) VCPUs State   Time(s)
Domain-0                                   0      879     1 r-----    170.7

Guest OS 가 생성될 디렉토리를 만들고 설치를 진행 합니다.
[root@ruo91 ~]# mkdir /vm
[root@ruo91 ~]# virt-install -n CentOS_5.4 --prompt consol
How much RAM should be allocated (in megabytes)? 256
 What would you like to use as the disk (file path)? /vm/CentOS_5.4.img
 What is the install URL? http://centos.mirror.cdnetworks.com/5.4/os/i386


Starting install...
Retrieving file .treeinfo...                                                              |  413 B     00:00
Retrieving file vmlinuz...                                                               | 2.1 MB     00:00
Retrieving file initrd.img...                                                             | 6.6 MB     00:00
Creating domain...                                                                      |    0 B     00:04
Connected to domain CentOS_5.4
Escape character is ^]
Linux version 2.6.18-164.el5xen (mockbuild@builder16.centos.org) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-46)) #1 SMP Thu Sep 3 04:47:32 EDT 2009
..........................
..............................
옵션 및 설명
-n : 가상 OS 이름
-v : 전 가상화 (Full virtualization)
-p : 반 가상화 (Para virtualization)
--prompt consol : 콘솔 기반으로 설치
How much RAM should be allocated (in megabytes)?
-> 가상 OS에 메모리 용량을 얼마나 줄것인지.. 기본 MB(메가바이트) 단위
 What would you like to use as the disk (file path)?
-> 가상 OS의 이미지 파일이 저장될 경로
 What is the install URL?
-> 미러링 서버로 설치 하기 위한 주소
이후 가상 OS 설치를 할수 있게 됩니다.

1.PNG

 

2.PNG

 

XEN 을 이용한 가상 OS 를 확인 해봅니다.

[root@ruo91 ~]# xm list
Name                                      ID Mem(MiB) VCPUs State   Time(s)
CentOS_5.4                                 4      255     1 -b----    259.7
Domain-0                                   0      747     1 r-----   2693.5
 
List of Articles
번호 제목 글쓴이 날짜 조회 수sort
367 도메인 Status 상태별 설명 안내 ADMINPLAY 2012-12-28 4832
366 dpkg 사용법 ADMINPLAY 2013-04-03 4930
365 HDD Guardian (a graphical user interface for smartctl) ADMINPLAY 2013-09-22 4951
364 ubuntu 10.04 에서 Nginx, Mysql, PHP5 ADMINPLAY 2013-02-28 5124
363 HP 서버 disk 증설 (hpacucli 사용) ADMINPLAY 2015-08-05 5127
362 top 화면 내용중 load average와 PRI : priority(우선순위... ADMINPLAY 2013-12-24 5138
361 리눅스 메모리 관리, 왜 메모리 여유공간이 없을까? (top ... ADMINPLAY 2013-04-25 5241
360 make 정리 ADMINPLAY 2013-05-12 5264
359 ZFS 파일에 ACL 설정 ADMINPLAY 2014-02-03 5271
358 windows smartctl ADMINPLAY 2013-09-22 5273
357 EXT4 파일 시스템을 Btrfs 파일 시스템으로 변환하기 ADMINPLAY 2015-07-07 5339
356 SSL 패스워드 삭제 하기 ADMINPLAY 2014-04-27 5347
355 tar 압축을 실수로 디렉토리 생성 안하고 풀었을때 대처법 ADMINPLAY 2013-09-22 5386
354 ll 명령시 날짜 전체가 보이도록 하기 ADMINPLAY 2014-01-02 5431
353 hddtemp와 mrtg를 이용한 하드디스크 온도 체크 file ADMINPLAY 2013-12-19 5450
352 python과 mysql 연동시 libmysqlclient_r.so.* 에러가 날 ... ADMINPLAY 2014-03-27 5519
351 error: Hm, kex protocol error: type 30 seq 1 [preauth]... file ADMINPLAY 2016-05-20 5536
350 linux 커널 파라메터 수정 ADMINPLAY 2013-05-12 5554
349 우분투(Ubuntu) ssh 설정하기 ADMINPLAY 2013-02-27 5597
348 운영중인 Linux 서버에서 NTFS 파일 시스템 삭제하기 ADMINPLAY 2013-01-16 5673

Copyright ADMINPLAY corp. All rights reserved.

abcXYZ, 세종대왕,1234

abcXYZ, 세종대왕,1234