차이

문서의 선택한 두 판 사이의 차이를 보여줍니다.

차이 보기로 링크

다음 판
이전 판
kvm_-_wok_kimchi_manager [2018/09/06 06:47] – 만듦 koovkvm_-_wok_kimchi_manager [2021/07/13 07:25] (현재) – [Session timeout 설정] koov
줄 17: 줄 17:
 <code bash> <code bash>
 # systemctl disable NetworkManager # systemctl disable NetworkManager
 +</code>
 +</WRAP>
 +
 +==== firewalld 중지 ====
 +
 +방화벽의 경우도 귀찮은경우가 있을수 있으므로 중지하도록 한다.
 +
 +<WRAP prewrap>
 +<code bash>
 +# systemctl disable firewalld
 </code> </code>
 </WRAP> </WRAP>
줄 84: 줄 94:
 </WRAP> </WRAP>
  
-서비스를 실행하고 나면 ''http://hostname_or_ip:8001/'' 사이트로 접속이 가능하며 아래와같은 화면이 나온다.+서비스를 실행하고 나면 ''https://hostname_or_ip:8001/'' 사이트로 접속이 가능하며 아래와같은 화면이 나온다.
  
 {{::kvm:kimchi1.png|}} {{::kvm:kimchi1.png|}}
  
 시스템 OS 계정으로 로그인하면 된다. 시스템 OS 계정으로 로그인하면 된다.
 +
 +
 +===== 사용법 =====
 +==== 네트워크 ====
 +
 +{{:kvm:kimchi2.png|}}
 +
 +네트워크탭은 위의 사진처럼 KVM에서 설정 가능한 모든 네트워크 유형을 추가할 수 있으며 웹인터페이스로 설정 가능하다.
 +
 +{{:kvm:kimchi3.png|}}
 +
 +이와같이 추가한 인터페이스를 ''Start'', ''Stop'' 명령을 통해 활성화 할 수 있다.
 +
 +==== 스토리지 ====
 +
 +스토리지는 VM데이터를 저장할 경로를 설정할 수 있다.
 +
 +{{:kvm:kimchi4.png|}}
 +
 +스토리지는 위와같이 5가지 형태의 스토리지를 추가 할 수 있다.
 +
 +==== 템플리트 ====
 +
 +템플릿은 기본적으로 VM생성시 미리 설정된 값을 의미한다. 기본적으로 우분투 이미지를 제공하고 스토리지 탭에서 설정된 스토리지 영역에 있는 ISO파일들 검색해서 아래쪽에 목록으로 나타난다.
 +
 +{{:kvm:kimchi5.png|}}
 +
 +
 +<WRAP center round info>
 +템플릿 생성시 네트워크와 스토리지는 반드시 ''default''로 선언된 항목이 있어야 한다. 기본적으로 ''default''로 선택이 되기 때문에 ''default''항목이 없는 네트워크나 스토리지는 설정이 불가능하다.
 +</WRAP>
 +
 +==== Session timeout 설정 ====
 +
 +기본적으로 wok은 세션 유지시간이 10분으로 되어있어서 다른 작업을 하다보면 관리자 페이지에서 로그아웃 되어있는 경우가 많다.
 +해당 시간을 길게 잡아주기 위해서는 ''/etc/wok/wok.conf''내의 ''session_timeout'' 옵션을 변경하도록 한다.
 +
 +<WRAP prewrap>
 +<code vim /etc/wok/wok.conf>
 +[server]
 +# Start an SSL-enabled server on the given port
 +#proxy_port = 8001
 +
 +# Cherrypy server port
 +#cherrypy_port = 8010
 +
 +# Port for websocket proxy to listen on
 +#websockets_port = 64667
 +
 +# Number of minutes that a session can remain idle before the server
 +# terminates it automatically.
 +session_timeout = 360            # <<-- 이부분을 수정한다. (단위:분)
 +
 +# Running environment of the server
 +#environment = production
 +
 +# Max request body size in KB, default value is 4GB
 +#max_body_size = 4 * 1024 * 1024
 +
 +# Wok server root. Set the following variable to configure any relative path to
 +# the server. For example, to have Wok pointing to https://localhost:8001/wok/
 +# uncomment the following:
 +#server_root=/wok
 +
 +# Federation feature: register Wok server on openSLP and discover peers
 +# in the same network. Check README-federation for more details.
 +#federation = off
 +
 +</code>
 +</WRAP>
 +
 +
 +수정 후 ''wokd'' 를 재시작 한다.
 +
 +<WRAP prewrap>
 +<code bash>
 +$ systemctl restart wokd.service
 +</code>
 +</WRAP>
 +
 +
 +
 +===== 버그 =====
 +2.5 해당 버전의 버그가 있는데 디스크 추가 시에 용량 설정이 ''KBytes''단위로 입력이 된다. 웹UI에서는 ''GBytes'' 단위라고 되어있는데 실제로는 ''KBytes'' 단위로 입력이 되기 때문에 주의해야 한다.
 +
 +해당 부분 수정은 ''/usr/share/wok/plugins/kimchi/ui/js/kimchi.min.js''의 ''4387'' line을 수정하도록 한다.
 +
 +<WRAP prewrap>
 +<code vim /usr/share/wok/plugins/kimchi/ui/js/kimchi.min.js>
 +                    var sizeInMB = parseInt(settings['capacity']) * 1024 * 1024;
 +                    var sizeInGB = sizeInMB * 1024;
 +                    settings['capacity'] = sizeInGB;
 +</code>
 +</WRAP>
  
  • kvm_-_wok_kimchi_manager.1536216431.txt.gz
  • 마지막으로 수정됨: 2018/09/06 06:47
  • 저자 koov