XenServer – local ISO Library만들기

xenserver Aug 11, 2017

XenServer 구성 시 설치할 os의 iso 이미지 attach 하는 가장 기본적인 방법은 cifs 를 사용해서

윈도우 머신의 공유 폴더를 attach하여 사용하는 방법이 있다.

근데 요상하게 cifs가 잘 안잡히거나 하는 경우에는 xenserver host에 local iso library를 만들어 사용하면 된다.

큰 파일의 ISO Library 만들기

Xenserver 호스트의 루트 파티션은 기본이 아마 4G로 되어 있으므로 sr-mount 되어 있는 파티션에 xenserver storage를 만들면 된다.

[root@localhost ~]# df -k
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/sda1              4127440   2012800   1904976  52% /
none                    954268       112    954156   1% /dev/shm
/opt/xensource/packages/iso/XenCenter.iso
                         57216     57216         0 100% /var/xen/xc-install
/dev/mapper/XSLocalEXT--bb2de5e6--d46d--c812--a949--dd0934750a62-bb2de5e6--d46d--c812--a949--dd0934750a62
                     3829180512 866521236 2768148020  24% /var/run/sr-mount/bb2de5e6-d46d-c812-a949-dd0934750a62 <-- 여기에 만들면 된다.

스토리지 location을 아래와 같이 생성하고

$ mkdir /var/run/sr-mount/bb2de5e6-d46d-c812-a949-dd0934750a62/iso_storage

다음과 같이 스토리지를 생성하면 된다.

xe sr-create name-label=ISO_Storage type=iso device-config:location=/var/run/sr-mount/bb2de5e6-d46d-c812-a949-dd0934750a62/iso_storage device-config:legacy_mode=true content-type=iso

요렇게 xencenter에서 보면 새로운 iso library가 생성된것이 보인다.

alt

인터넷이 되는 환경이라면 wget으로 파일을 직접 받음 되고 ftp로 해당 location에 이미지를 넣고 storage 옵션에서 rescan을 하면 iso 이미지가 보이게 된다.

alt

이제 VM 생성 시 해당 iso 이미지를 선택해서 guest os 설치하면 된다.

alt

DVD도 없고 큰 파일의 iso(everything 버전 등)들을 설치하기 힘든 환경인 경우 위처럼 ISO Library를 생성하고 사용하면 좋을 듯 하다.

Tags

권혁

백발까지 코딩하고 싶은 상부상조 프로그래머

Great! You've successfully subscribed.
Great! Next, complete checkout for full access.
Welcome back! You've successfully signed in.
Success! Your account is fully activated, you now have access to all content.