본문 바로가기
Server/OpenStack

Openstack Instance novnc link IP 설정

by 얽디 2023. 5. 23.

/etc/nova/nova.conf

[vnc]

[vnc]
novncproxy_base_url = http://xxx.xxx.xx.xx.6080/vnc_auto.html //IP 또는 domain으로 변경 외부 접근 가능
ex) novncproxy_base_url = http://127.0.0.1:6080/vnc_auto.html //localhost로 외부에서 링크 클릭 시 접속 불가

 

[변경 전]

#nova get-vnc-console [Name or ID] novnc

+-------+------------------------------------------------------------------------------------------+
| Type  | Url                                                                                      |
+-------+------------------------------------------------------------------------------------------+
| novnc | [<http://127.0.0.1:6080/vnc_auto.html?path=%3Ftoken%3Dec8eb7e5-12ee-4b9c-9f14-19c9f8ee8f6a>](<http://127.0.0.1:6080/vnc_auto.html?path=%3Ftoken%3Dec8eb7e5-12ee-4b9c-9f14-19c9f8ee8f6a>) |
+-------+------------------------------------------------------------------------------------------+

#systemctl restart nova* //nova 관련 모두 데몬 재시작 

 

[변경 후]

#nova get-vnc-console [Name or ID] novnc //vnc링크 제작

+-------+----------------------------------------------------------------------------------------------+
| Type  | Url                                                                                          |
+-------+----------------------------------------------------------------------------------------------+
| novnc | [<http://xxx.xx.xxx.xx:6080/vnc_auto.html?path=%3Ftoken%3D7dac994d-32cc-4b2d-a810-106b09ffe3bb>]() |
+-------+----------------------------------------------------------------------------------------------+

댓글