[VirtualBox]
- VirtualBox를 실행하고
- 새로만들기 버튼 클릭
- CentOS 5.1의 커널버전이 kernel 2.6.x 이므로 운영체제 종류 선택시 Linux 2.6 선택
- 설정 버튼을 눌러 다운로드 받아놓은 DVD iso 이미지 파일을 CD/DVD 드라이브로 마운트 시킴
- 시작 버튼을 눌러 cdrom 부팅으로 CentOS 시작
- 설치를 완료한 다음 CD/DVD 드라이브 마운트 해제하고 부팅
[CentOS]
http://isoredirect.centos.org/centos/5/isos/i386/
http://mirror.tini4u.net/centos/5.1/isos/i386/CentOS-5.1-i386-bin-DVD.iso
or http://mirror.mirr4u.com/centos/5.1/isos/i386/CentOS-5.1-i386-bin-DVD.iso
* CentOS 5.1 설치가 완료되면 반드시 yum을 사용해서 커널을 업데이트 한다. # yum update kernel kernel-devel kernel-headers |
< 개발환경 구축 >
프로그램 > 소프트웨어 추가/삭제 >> 패키지 관리자
- 검색 탭: 개발용 도구 선택
: [v] 개발용 도구 [v] 개발용 라이브러리 [v] 레거시 소프트웨어 개발 |
- 목록 탭: VirtualBox 게스트 확장 설치를 위해
+ 커널 개발용 라이브러리 패키지와 SDL 라이브러리 패키지를 찾아 설치
[v] kernel-devel - 2.6.18-53-1.21.el5.i686 - Development package for building kernel modules to match the kernel. [v] kernel-headers - 2.6.18-53.1.21.el5.i686 - glibc에 의해 사용될 Linux 커널의 헤더 파일 [v] SDL - 1.2.10-8.el5.i386 - 크로스 플랫폼 멀티미디어 라이브러리. |
- 적용 버튼 클릭 >> 패키지 선택 > 계속 (잠시 기다려야 함)
< VirtualBox 게스트 확장 설치 >
VirtualBox 상에서 CentOS를 설치했다면 기본적인 해상도는 800x600이다.
그 이상의 해상도(1024x768)를 사용하고, 클립보드 및 공유폴더를 공유하고 싶다면 게스트 확장을 설치한다.
1. VirtualBox의 장치 메뉴에서 게스트 확장 설치 클릭
- 게스트 확장용 이미지가 /media 디렉토리 아래로 마운트 된다.
2. 일반유저로 로그인 되어 있는 상태에서 root로 전환
[dozob@localhost ~]$ su - Password: |
3. /media 디렉토리 아래에 마운트된 게스트 확장 실행
[root@localhost ~]# cd /media/VBOXADDITIONS_1.6.2_31466 [root@localhost ~]# /bin/sh VBoxLinuxAdditions.run Verifying archive intergrity... All Good. Uncompressing VirtualBox 1.6.2 Guest Additions for Linux installation... ... VirtualBox 1.6.2 Guest Additions installation Building the VirtualBox Guest Additions kernel module... Building the shared folder support kernel module... Installing the VirtualBox Guest Additions...
Successfully installed the VirtualBox Guest Additions. You must restart your guest system in order to complete the installation. |
< 호스트 운영체제와 게스트 운영체제의 폴더 공유 >
- 오른쪽의 '새 공유 폴더 추가' 이미지 버튼 클릭
- 리눅스 상에서 /mnt/share 디렉토리를 만들고, mount 파티션 타입을 vboxsf로 지정해서 마운트
[root@localhost ~]# mkdir /mnt/share [root@localhost ~]# mount -t vboxsf E_DRIVE /mnt/share [root@localhost ~]# df -h Filesystem... |
- 마운트한 공유폴더를 언마운트 할 때
[root@localhost ~]# umount /mnt/share [root@localhost ~]# df -h Filesystem... |