본문 바로가기

Virtualization

[XenServer] ISO 저장소 생성 및 갱신 방법

ISO 이미지 사용
xe sr-create name-label=<name> type=iso \
device-config:location=<where iso file exist> \
device-config:legacy_mode=true \
content-type=iso

EX) /var/opt/xen/iso_import/
xe sr-create name-label=windows_iso type=iso \
device-config:location=/var/opt/xen/iso_import/ \
device-config:legacy_mode=true content-type=iso

[root@xen12 ~]# xe sr-list name-label=windows_iso
uuid ( RO)                : 7bdf8f9c-ba67-eeba-ff59-ec590f8f3692
          name-label ( RW): iso-file
    name-description ( RW):
                host ( RO): xen12
                type ( RO): iso
        content-type ( RO): iso

sftp 와 같은 툴을 이용해서 ISO 파일을 /var/opt/xen/iso_import 디렉토리에 업로드한 뒤
스캔해서 업로드된 ISO 파일을 인식시킨다.

[root@xen12 ~]# xe sr-scan uuid=7bdf8f9c-ba67-eeba-ff59-ec590f8f3692