PVE 호스트 이름 변경 방법
/etc/hostname 파일과 /etc/hosts 파일 모두 동일하게 변경 후 재부팅 합니다.
본 예제에서는 proxhost → prox01i 로 변경합니다.
# vi hostname prox01i # vi /etc/hosts ... 100.100.100.100 prox01i ... # reboot
/etc/pve 디렉터리의 소프트링크가 hostname 을 따라 변경되었습니다.
Web UI에서 VM이 사라져 있습니다. qemu-server 설정을 새로운 호스트이름 밑으로 옮겨주어야 VM이 보입니다.
# tree -a /etc/pve /etc/pve ... ├── local -> nodes/prox01i ├── lxc -> nodes/prox01i/lxc ├── nodes │ ├── prox01i │ │ ├── host.fw │ │ ├── lrm_status │ │ ├── lxc │ │ ├── openvz │ │ ├── priv │ │ ├── pve-ssl.key │ │ ├── pve-ssl.pem │ │ ├── qemu-server/ │ │ └── ssh_known_hosts │ ├── proxhost │ │ ├── host.fw │ │ ├── lrm_status │ │ ├── lxc │ │ ├── openvz │ │ ├── priv │ │ ├── pve-ssl.key │ │ ├── pve-ssl.pem │ │ ├── qemu-server │ │ │ ├── 101.conf │ │ │ ├── 102.conf │ │ │ ├── 103.conf │ │ │ ... │ │ └── ssh_known_hosts ├── openvz -> nodes/prox01i/openvz ├── qemu-server -> nodes/prox01i/qemu-server ... # mv /etc/pve/nodes/<old-hostname>/qemu-server/*.conf /etc/pve/nodes/<new-hostname>/qemu-server/