# Setup Proxmox Node trên Hetzner Dedicated Server

Tóm tắt những gì sẽ làm:

1. Vào [Hetzner ](https://go.kyluat.com/hetzner), chọn dedicated server rẻ rẻ để bắt đầu, mình test với AX 42 (có hổ trợ Virtualization, INTEL-VT) do lúc này đang có promotion $0 setup fee để test và chuyển website applications từ shared hosting sang dedicated server luôn
2. Đăng ký xong thì bạn vào email lấy thông tin ssh đăng nhập
3. Download [Putty](https://go.kyluat.com/iZ0FZ), cấu hình ssh và SSH Tunnel để kết nối server đồng thời cài setup OS qua [RealVNC Viewer](https://go.kyluat.com/CX9MJ)

##### Chọn Dedicated Server nào phù hợp?

Performance Hetzner Servers: [https://go.kyluat.com/M8oBN](https://go.kyluat.com/M8oBN)

Đăng ký xong:

1. Xem email, lưu thông tin tài khoản lại
2. vào robot hetzner xem thử: [https://go.kyluat.com/hq1gs](https://go.kyluat.com/hq1gs)
3. Lưu lại thông tin server như public ip, gateway ip, netmask để tiện config
4. Chỉnh firewall port 22,8006,5900

Download Putty

Config Putty với SSH tunnel

Source Port: 9090 (để bất kỳ port nào để connect realvnc viewer với port này trên máy)

Destination: xxx.xxx.xxx.xxx:5900 ( địa chỉ public ip của server và port default vnc là 5900 )

Giải thích thêm: thì từ đây, sau khi đã connected với ssh server khi xài vnc thì chỉ cần đánh address localhost:9090 thì nó sẽ connect tới vnc server của server

[![image.png](https://wiki.kyluat.com/uploads/images/gallery/2024-06/scaled-1680-/fMPimage.png)](https://wiki.kyluat.com/uploads/images/gallery/2024-06/fMPimage.png)

[![image.png](https://wiki.kyluat.com/uploads/images/gallery/2024-06/scaled-1680-/yd7image.png)](https://wiki.kyluat.com/uploads/images/gallery/2024-06/yd7image.png)

Bước khó khăn cơ bản đã qua.

Mới bạn làm theo anh này: [https://www.youtube.com/watch?v=pZBLYTr4qzA](https://www.youtube.com/watch?v=pZBLYTr4qzA)

Download [Proxmox Iso image](https://www.proxmox.com/en/downloads/proxmox-virtual-environment/iso), rename thành pve.iso

Kết quả:

[![image.png](https://wiki.kyluat.com/uploads/images/gallery/2024-06/scaled-1680-/vFCimage.png)](https://wiki.kyluat.com/uploads/images/gallery/2024-06/vFCimage.png)

[![image.png](https://wiki.kyluat.com/uploads/images/gallery/2024-06/scaled-1680-/LROimage.png)](https://wiki.kyluat.com/uploads/images/gallery/2024-06/LROimage.png)

Thêm:

Mở port 9001 từ địa chỉ AAA của Node tới địa chỉ BBB của VM

```
sudo iptables -t nat -A PREROUTING -p tcp -d AAA.AAA.AAA.AAA --dport 9001 -i vmbr0 -j DNAT --to-destination BBB.BBB.BBB.BBB:9001
```