앞선 포스팅에서 소개드린 기능은 LiveUSB로 LiveCD 기능을 USB로 하는 기능이었습니다. 이번에는 USB에 OpenSolaris를 설치해 보도록 하겠습니다. USB에 OpenSolaris를 설치하면 OpenSolaris를 내가 원하는 환경대로 구성하고 데이터를 저장하여 어느 디바이스에나 USB만 연결하면 나의 OpenSolaris 이미지를 사용할 수 있게 되는 것입니다.

설치는 아주 간단해서 LiveCD 또는 LiveUSB 등으로부터 부팅하여 인스톨러를 실행하여 일반 디스크 장치에 설치하듯이 USB 장치에 설치만 하면 되는데 OpenSolaris b106 부터 시디에 바로 설치하는 것을 지원하고 있습니다.

Blogfinger(http://blogs.sun.com/blogfinger/entry/installing_opensolaris_2008_11_on)의 포스팅에 따르면 과정은 아래와 같습니다.

1. BIOS에서 CD또는 USB로부터 부팅하도록 부트 장치 선택

2. OpenSolaris 2008.11 (b106이상) CD (또는 USB) 부팅

3. OpenSolaris를 설치할 USB 메모리 장착

4. Installer 실행 및 설치

그런데 USB 장치의 zpool 로부터 부팅하지 못하는 버그 (4755)가 있어 다음과 같은 추가 과정을 거쳐야 합니다.

1. Download this file (76.8 kB)

2. unzip and untar it to /tmp, using command
   cd /tmp
   gzip -d grub_zfs_devid.tar.gz | tar -xf -
   (will create two files: stage1 and stage2)

3. run
   zpool status
   to find out the device name of the newly created pool on the USB stick. Let's assume the device name shown is /dev/rdsk/c4t0d0s0.

4. and install the two files from the tar file on that device:
      installgrub /tmp/stage1 /tmp/stage2 /dev/rdsk/c4t0d0s0

그리고 시스템을 리붓하면 끝입니다. 다만 버그가 수정되기 전까지는 BIOS에서 부트 디바이스 순서를 변경(?!)하면 USB로 부팅이 실패한다고 합니다.

Comments:

Post a Comment:
Comments are closed for this entry.

This blog copyright 2009 by Sangpill Kim