2006/11/23

Brandz configuration guide : 솔라리스(x86)에서 레드햇 리눅스를 돌리자 !!!


일단, 디렉토리를 두개 만듭니다.
1) mkdir /zone
2) mkdir /zone/shared ; (나중을 위해서 만들어줌)

첨부되어 있는 redhat3.zfg 화일 안에서, bge0의 ip 주소를 원하시는 ip로 변
경하십니다. 이때 ip는 솔라리스 설치시 할당했던 ip와 같은 네트웍대의 ip를 주셔야 합니다.

그런 다음 다음과 같이 실행합니다.

3)#zonecfg -z redhat3 -f redhat3.zfg

구성이 정상적으로 끝났으면, 다음 명령으로 확인할 수 있습니다.
#zoneadm list -cv

4) 구성된 가상 서버에 설치를 하려면 다음과 같이 합니다.
#zoneadm -z redhat3 install

잠시 있다가, redhat enterprise linux 3의 첫번째 CD를 넣으라고 나옵니다.
CD를 넣으시고, 잠시 있으시면, CD1의 목록을 스캔하고, CD2,CD3,CD4를
넣으라고 한후, 다시 CD1부터 넣으라고 나옵니다. 그때부터, 실제 패키지들을
설치합니다.

모두 설치가 끝나면 리눅스 컨테이너를 부팅한 후 로그인해보실 수 있습니다.
5) 레드햇 존 부팅
#zonecfg -z redhat3 boot

6) 로그인은 콘솔 로그인과 일반 로그인이 있습니다. 이는 텔넷을 사용하지
않고 로그인을 하는 방법입니다. 물론, ip를 이용해서 네트웍으로 로그인하실
수도 있습니다.

; 콘솔로그인
#zlogin -C redhat3
; 비 콘솔 로그인
#zlogin redhat3

최초 설치에 root는 패스워드가 없습니다. 설정하시고, root를 사용하진 마시고
일반 사용자로 사용하시기 바랍니다.

설치하는 과정은 두번째 첨부에 나와있습니다. 참고하십시요.

도움이 되셨다면 위의 광고한번 살짝 클릭해주세요.


----- redhat3.zfg

create -b
set zonepath=/zone/redhat3
set brand=lx
set autoboot=true
add net
set address=172.168.1.2/24
set physical=bge0
end
add attr
set name=audio
set type=boolean
set value=true
end



--- brandz installation process : zoneadm -z redhat3 install

bash-3.00# zoneadm -z redhat3 install
Please insert disc 1 in the removable media drive and press
<ENTER>

Installing cluster 'desktop'

You will need discs 1 - 4 to fully install
"Red Hat Enterprise Linux 3"

Please insert disc 2 in the removable media drive and press
<ENTER>

Installing zone miniroot.
Attempting to expand 30 RPM names...
Please insert disc 3 in the removable media drive and press
<ENTER>

Attempting to expand 1 RPM name
Please insert disc 4 in the removable media drive and press
<ENTER>

Attempting to expand 1 RPM name
Please insert disc 1 in the removable media drive and press
<ENTER>

Attempting to expand 1 RPM name
Setting up the initial lx brand environment.
System configuration modifications complete!
Duplicating miniroot; this may take a few minutes...
Booting zone miniroot...
Miniroot zone setup complete.
Please insert disc 2 in the removable media drive and press
<ENTER>

Attempting to expand 664 RPM names...

Installing zone 'redhat3' from disc 2.
Installing 475 RPM packages; this may take several minutes...

Please insert disc 3 in the removable media drive and press
<ENTER>

Attempting to expand 189 RPM names...

Installing zone 'redhat3' from disc 3.
Installing 148 RPM packages; this may take several minutes...

Please insert disc 4 in the removable media drive and press
<ENTER>

Attempting to expand 41 RPM names...

Installing zone 'redhat3' from disc 4.
Installing 23 RPM packages; this may take several minutes...

Please insert disc 1 in the removable media drive and press
<ENTER>

Attempting to expand 18 RPM names...

Installing zone 'redhat3' from disc 1.
Installing 18 RPM packages; this may take several minutes...

Completing install processing; this may take a few
minutes...
Setting up the initial lx brand environment.
System configuration modifications complete!
Initial installation of zone 'redhat3' complete Thu Nov 16 16:32:25 KST 2006
Installation of zone 'redhat3' completed successfully.
Details saved to log file:
"/zone/redhat3/root/var/log/redhat3.install.2988.log"