CodeBlockLabs
CommunityPromo VPS
  • Welcome
  • Getting Started
    • What is Node?
    • Your First Nodes
  • Blockchain Nodes
    • Banano
      • Installation
      • Node Configuration
      • RPC Command
      • Cli Command
      • Other
    • BlockCast
      • Installation
    • BlockX
      • Installation
      • Useful Command
    • Elys
      • Installation
      • Useful Command
    • LayerEdge
      • Installation
      • Automation
    • Lumera
      • Installation
      • Useful Command
      • Snapshot
    • RaiBlocksOne
      • Installation
      • RPC Command
      • Other
    • RaiCoin
      • Installation
      • Node Configuration
      • RPC Command
      • Other
    • Selfchain
      • Installation
      • Useful Command
      • Snapshot
    • Symphony
      • Installation
      • Useful Command
      • Snapshot
      • Oracle
      • Patch
  • Other
    • Automation Scripts
      • Auto Send
    • Blockchain Explorer
    • Go Version Manager (Multi Go)
    • NodeJS
    • Proxmox
      • Proxmox Installation
      • Proxmox FAQ
    • WSL
      • Linux Packages
Powered by GitBook
On this page
  1. Other
  2. Proxmox

Proxmox Installation

PreviousProxmoxNextProxmox FAQ

Last updated 6 months ago

What you need to install on local machine?

  1. Download Proxmox ISO from

  2. Prepare a flash drive (8gb is enough for this)

  3. (use it to burn the ISO to your flash drive)

  4. Follow the default instruction on the screen

  5. Login to https://your_local_ip:8006/ with your password submitted on installation GUI.

What you need to install on vds?

  1. Install debian (bookworm or any recomended from proxmox ve website). then ssh to the machine.

  2. Add the GPG key and adjust the APT sources:

curl -o /etc/apt/trusted.gpg.d/proxmox-release-bookworm.gpg http://download.proxmox.com/debian/proxmox-release-bookworm.gpg
echo "deb http://download.proxmox.com/debian/pve bookworm pve-no-subscription" > /etc/apt/sources.list.d/pve-install-repo.list

If you do not have a Proxmox VE Enterprise subscription and wish to avoid unauthorized access errors, you can comment out the Proxmox VE Enterprise repository with the following command:

echo '# deb https://enterprise.proxmox.com/debian/pve bookworm InRelease' > /etc/apt/sources.list.d/pve-enterprise.list

Update the packages:

apt update        # Update package lists
apt full-upgrade  # Update system
  1. Install Proxmox VE

    apt install proxmox-ve

    Restart the server

    After a restart, the Proxmox kernel should be loaded. Run the following command in order to see kernel release information:

    uname -r

    The output should contain pve, for example: 6.5.13-1-pve

    You can access the web interface by navigating to https://<main address>:8006.

  2. Enable IP Forwarding on the Host

  • For IPv4 and IPv6:

    sed -i 's/#net.ipv4.ip_forward=1/net.ipv4.ip_forward=1/' /etc/sysctl.conf
    sed -i 's/#net.ipv6.conf.all.forwarding=1/net.ipv6.conf.all.forwarding=1/' /etc/sysctl.conf
  • Apply the changes:

    sysctl -p
  • Check if the forwarding is active:

    sysctl net.ipv4.ip_forward
    sysctl net.ipv6.conf.all.forwarding
  1. Setup Network Configuration on Host

    1. example of host network

    2. example of client network

  2. Setup VM Templates

    1. select template you want to download and add to your proxmox, you can choose any operating system ISO from here.

  3. If your VM/CT can't connect to internet, use post routing command, make sure to chane the IP to your own local ip settings before.

iptables -t nat -A POSTROUTING -s 192.168.100.0/24 -o vmbr0 -j MASQUERADE
  1. use chmod firewall.sh to make it executable

  2. add your forward port and setting ip automatically by using cron

create new file firewall.sh

#!/bin/bash
/usr/sbin/iptables -t nat -A POSTROUTING -s 192.168.100.0/24 -o vmbr0 -j MASQUERADE
/usr/sbin/iptables -t nat -A PREROUTING -p tcp -d 0.0.0.0/0 --dport 20002 -j DNAT --to-destination 192.168.110.150:20002
/usr/sbin/iptables -t nat -A PREROUTING -p tcp -d 0.0.0.0/0 --dport 20620 -j DNAT --to-destination 192.168.110.151:20620
/usr/sbin/iptables -t nat -A PREROUTING -p tcp -d 0.0.0.0/0 --dport 20619 -j DNAT --to-destination 192.168.110.151:20619

you can port forward every port accessing your IP to your own local ip:port directly.

add the file to the cron, use command crontab -e , if you're first time opening crontab, you'll be asked to choose which editor you want to use, default and easiest one is nano.

@reboot /bin/bash /root/firewall.sh >> /root/firewall.log 2>&1

adding command above are making the network forward rule to be reloaded everytime restart/reboot happens to the machine.

go to CT Templates Menu

https://www.proxmox.com/en/downloads/proxmox-virtual-environment
Rufus