All technological notes.
Proxmox ISO: Proxmox VE ISO







http://<host_ip>:8006.

command 'unsquashfs -f -dest /target -i /cdrom/pve-base.squashfs' failed with exit code 1 at /usr/share/perl5/Proxmox/Install.pm line 1023.
Proxmox defaults to Ethernet.nmcli is not installed by default.nmcli Package OfflineProxmox VM with network access.# On a VM that installs Proxmox
apt update
apt install Network-Manager
# press no, to stop installation
# return the packages required for Network-Manager

# on vm
# download package and dependencies
apt-get download network-manager dns-root-data dnsmasq-base libbluetooth3 libduktape207 \
libgudev-1.0-0 libjim0.81 libmbim-glib4 libmbim-proxy libmbim-utils libmm-glib0 libndp0 \
libnl-genl-3-200 libnm0 libpcsclite1 libpolkit-agent-1-0 libpolkit-gobject-1-0 \
libqmi-glib5 libqmi-proxy libqmi-utils libqrtr-glib0 libteamdctl0 modemmanager \
polkitd ppp usb-modeswitch usb-modeswitch-data wireless-regdb wpasupplicant xml-core
# on vm
dpkg -i *.deb
nmcli -v # Should return version if success
# on vm
tar czvf ~/nmcli_pkgs.tar.gz *.deb
# on target machine
dpkg -i *.deb
nmcli -v # Verify version
# On target machine
nmcli radio wifi
# enabled
# In the case that wifi is disabled
nmcli radio wifi on
# In the case that the wifi interface is unmanaged.
# list interfaces
nmcli d
# Change the nmcli cf
nano /etc/NetworkManager/NetworkManager.conf
# change:
[ifupdown]
managed=true
# restart nmcli
systemctl restart NetworkManager
# confirm
nmcli device
# List available Wi-Fi networks
nmcli d wifi list
# Connect to Wi-Fi
nmcli dev wifi connect "wifi_name" password "password"
# Set connection to autoconnect
nmcli connection modify "wifi_name" connection.autoconnect yes
# Verify connectivity:
ip a
ping -c 3 8.8.8.8
Proxmox host is able to access Internet with physical interface.
Proxmox virtual network to access external network or the Internet.2 Interface
Proxmox host machine that enables connection with Wi-fi network.Proxmox control VMs and containers.ifupdown package, a low level package to manage the network. However, due to the use of Wi-fi, the Network-Manager, a high level pacakge, is install, creating protential configuration conflict.nmcli for the Wi-fi connection. Use the networking service to manage the network interface configuration.Configure interfaces with 2 subnet
vmbr0, the default Proxmox Linux interface
# backup
cp /etc/network/interfaces /etc/network/interfaces.bak
cat > /etc/network/interfaces <<EOF
# Loopback
auto lo
iface lo inet loopback
# ethernet interface
iface enp6s0 inet manual
# Wi-Fi interface - used only for host
auto wlp7s0
iface wlp7s0 inet static
address 192.168.1.80
netmask 255.255.255.0
gateway 192.168.1.1
dns-nameservers 192.168.1.1 8.8.8.8
# Proxmox host IP on LAN
auto vmbr0
iface vmbr0 inet manual
address 192.168.100.1/24
bridge-ports none
bridge-stp off
bridge-fd 0
EOF
# apply to interfaces
ifdown wlp7s0 && ifup wlp7s0
ifdown vmbr0 && ifup vmbr0
# confirm
ping -c3 192.168.1.1
ping -c3 8.8.8.8
ping -c3 google.com
http://new_ip:8006# Enable forwarding
nano /etc/sysctl.conf
# net.ipv4.ip_forward=1
# Apply immediately:
sysctl -p
# clear all NAT rules
iptables -t nat -F
# clear all forwarding rules
iptables -F FORWARD
# NAT rule: map internal network to the Wifi interface
iptables -t nat -A POSTROUTING -s 192.168.100.0/24 -o wlp7s0 -j MASQUERADE
# Outbound rule: allow traffic from the internal network to the Wifi interface
iptables -A FORWARD -s 192.168.100.0/24 -o wlp7s0 -j ACCEPT
# Inboud rule: allow traffic from the Wifi interface to the internal network
iptables -A FORWARD -d 192.168.100.0/24 -m state --state ESTABLISHED,RELATED -i wlp7s0 -j ACCEPT
# confirm
iptables -t nat -L POSTROUTING -v -n
# pkts bytes target prot opt in out source destination
# 0 0 MASQUERADE 0 -- * wlp7s0 192.168.100.0/24 0.0.0.0/0
iptables -L FORWARD -v -n --line-numbers
# num pkts bytes target prot opt in out source destination
# 1 0 0 ACCEPT 0 -- * wlp7s0 192.168.100.0/24 0.0.0.0/0
# 2 0 0 ACCEPT 0 -- wlp7s0 * 0.0.0.0/0 192.168.100.0/24 state RELATED,ESTABLISHED
# persis the NAT
netfilter-persistent save
ping -c3 192.168.1.1
ping -c3 8.8.8.8
ping -c3 google.com
apt update