Howto proxmox

From Vidalinux Wiki
Jump to navigation Jump to search

install proxmox

download proxmox iso:

https://enterprise.proxmox.com/iso/proxmox-ve_8.1-2.iso

openwrt

download openwrt image:

cd /var/lib/vz/images
wget https://mirror-03.infra.openwrt.org/releases/23.05.3/targets/x86/64/openwrt-23.05.3-x86-64-rootfs.tar.gz

create container in proxmox using pct:

ptc create 102 ./openwrt-23.05.3-x86-64-rootfs.tar.gz --unprivileged 1 --ostype unmanaged --hostname openwrt --net0 name=eth0 --net1 name=eth1 --storage local-lvm

edit container config /etc/pve/lxc/102.conf:

lxc.cgroup2.devices.allow: c10:200 rwm
lxc.mount.entry: /dev/net dev/net none bind,create=dir

configure network:

config interface 'loopback'

option device 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0'

config globals 'globals'

option ula_prefix 'fdb5:603d:27d8::/48'

config device 'lan_br'

option name 'br-lan' option type 'bridge' list ports 'eth1'

config device 'eth1'
       option name 'eth1'

config interface 'lan'

option device 'br-lan' option proto 'static' option ipaddr '192.168.99.254' option netmask '255.255.255.0' option ip6assign '60'

config interface 'wan'

option device 'eth0' option proto 'static'

       option ipaddr '192.168.24.44'
       option netmask '255.255.255.0'
       option gateway '192.168.24.254'
       option ip6assign '60'

config interface 'wan1'

option device 'eth0' option proto 'static' option ipaddr '192.168.24.45'

       option netmask '255.255.255.0'

download cloudimages

references