- Proxmox VE 9.1.1
- Wifi adapter: BrosTrend AX1800 USB WiFi 6 Linux Compatible WiFi Adapter for PC
I am trying to install proxmox on a server using my wifi network and a wifi adapter. The reason for this is because I have starlink internet and the router is in a very inconvenient place for a server. There is a cable that connects from the router to the starlink dish on my roof that is routed through the wall. So, unfortunately moving the router to a new location that is better suited for a server is not so simple.
I have read the different posts on this forum and agree that wifi is too intermitent and unreliable for a production environment. Currently I am new to proxmox so I will just be testing some very minimal services. Until I am able to figure out how to run cables into my walls, wifi is the only option.
Below are the series of steps and configurations I made to try and get proxomox working over wifi:
-1) I tested the wifi adapter out on the server with ubuntu installed and confirmed that it worked.
0) I download the following `apt` packages and their dependencies to a usb drive:
1) With the server off, I insert the proxmox bootable drive into an empty usb slot, insert the wifi-adapter into a usb slot, and insert the usbdrive with the
2) I boot into the proxmox drive and begin the installation process. At the networking stage, I accept whatever is found and autofilled:
- There is a
- I select
- The ip address field is
- The DNS server autofills to
4) I finish the installation, boot into the proxmox server, and login as root.
5) Running
-
-
-
-
6) I mount the usb drive that has the
7)
and restart network services with
8) Add wpa passphrase to
9) Run the
10) Obtain a private ip address:
To auto connect the wifi on startup, I do the following:
11) Copy the
-
12) Run
- Comment out
- Insert
- Directly below the new
- Comment out
- Save and close the file.
13) Enable the
14) Start the
-
- Add the following to the file:
15) Save and close the file. Enable the service with
16) Obtain a static ip address doing the following:
-
- Add the following to the file:
17) Save and close the file and restart
At this point it hangs. At this point, I'm not sure how to fix this error. Here are the references I based this process off of:
- https://github.com/retiarylime/proxmox-laptop-wifi
- https://dev.to/varungujarathi9/setting-up-proxmox-on-a-laptop-without-an-ethernet-port-28n8
- https://www.linuxbabe.com/command-line/ubuntu-server-16-04-wifi-wpa-supplicant
If anyone can offer any pointers or advice, I would definitely appreciate it as I have been struggling with this for several days now. I'm happy to provide any additional information that would be useful.
- Wifi adapter: BrosTrend AX1800 USB WiFi 6 Linux Compatible WiFi Adapter for PC
I am trying to install proxmox on a server using my wifi network and a wifi adapter. The reason for this is because I have starlink internet and the router is in a very inconvenient place for a server. There is a cable that connects from the router to the starlink dish on my roof that is routed through the wall. So, unfortunately moving the router to a new location that is better suited for a server is not so simple.
I have read the different posts on this forum and agree that wifi is too intermitent and unreliable for a production environment. Currently I am new to proxmox so I will just be testing some very minimal services. Until I am able to figure out how to run cables into my walls, wifi is the only option.
Below are the series of steps and configurations I made to try and get proxomox working over wifi:
-1) I tested the wifi adapter out on the server with ubuntu installed and confirmed that it worked.
0) I download the following `apt` packages and their dependencies to a usb drive:
Code:
- wpasupplicant
- wireless-tools
- rfkill
- dnsmasq
1) With the server off, I insert the proxmox bootable drive into an empty usb slot, insert the wifi-adapter into a usb slot, and insert the usbdrive with the
apt packages into a usb slot.2) I boot into the proxmox drive and begin the installation process. At the networking stage, I accept whatever is found and autofilled:
- There is a
nic0 and a nic1.- I select
nic1 as it looks like it has a wifi driver associated with the wifi adapter (rtw89_something).- The ip address field is
ZZZ.ZZZ.ZZZ.ZZZ.- The DNS server autofills to
127.0.0.1 so I change it to be the same as what is auto populated in the gateway.4) I finish the installation, boot into the proxmox server, and login as root.
5) Running
ip a shows:-
lo with state UNKNOWN-
nic0 with state DOWN-
vmbr0 with state UNKNOWN and ip address ZZZ.ZZZ.ZZZ.ZZZ/24-
wlxc8 which is the wifi adapter and has state DOWN.6) I mount the usb drive that has the
apt packages on it, move them all to the home directory on proxmox, and install them with dpkg -i *.deb.7)
nano /etc/network/interfaces and edit the file as below:
Code:
auto lo
iface lo inet loopback
auto wlxc8
iface wlxc8 inet dhcp
wpa-ssid [my wifi ssid]
wpa-psk [my wifi password]
#auto vmbr0
#iface vmbr0 inet static
# address ZZZ.ZZZ.ZZZ.ZZZ/24
# gateway ZZZ.ZZZ.ZZZ.YYY
# bridge-ports enp3s0
# bridge-stp off
# bridge-fd 0
# add new bridge network interface
auto vmbr1
iface vmbr1 inet static
address ZZZ.ZZZ.ZZZ.ZZZ/24
bridge-ports none
bridge-stp off
bridge-fd 0
post-up echo 1 > /proc/sys/net/ipv4/ip_forward
post-up iptables -t nat -A POSTROUTING -s 'ZZZ.ZZZ.ZZZ.ZZZ/24' -o wlxc8 -j MASQUERADE
post-down iptables -t nat -D POSTROUTING -s 'ZZZ.ZZZ.ZZZ.ZZZ/24' -o wlxc8 -j MASQUERADE
iface nic0 inet manual
source /etc/network/interfaces.d/*
and restart network services with
systemctl restart networking.8) Add wpa passphrase to
wpa_supplicant.conf by doing wpa_passphrase my-ESSID my-passphrase | tee /etc/wpa_supplicant.conf.9) Run the
wpa_supplicant process in the background with wpa_supplicant -B -c /etc/wpa_supplicant.conf -i wlxc8.10) Obtain a private ip address:
dhclient wlxc8.To auto connect the wifi on startup, I do the following:
11) Copy the
wpa_supplicant.service file from /lib/systemd/system to /etc/systemd/system:-
cp /lib/systemd/system/wpa_supplicant.service /etc/systemd/system/wpa_supplicant.service12) Run
nano /etc/systemd/system/wpa_supplicant.service and make the following edits:- Comment out
ExecStart line.- Insert
ExecStart=/sbin/wpa_supplicant -u -s -c /etc/wpa_supplicant.conf -i wlxc8- Directly below the new
ExecStart line, add Restart=always- Comment out
Alias=dbus-fi.w1.wpa_supplicant1.service.- Save and close the file.
13) Enable the
wpa_supplicant service to start at boot time with systemctl enable wpa_supplicant.service.14) Start the
dhclient at boot and obtain a private ip address from the DHCP server by doing the following:-
nano /etc/systemd/system/dhclient.service- Add the following to the file:
Code:
[Unit]
Description= DHCP Client
Before=network.target
[Service]
Type=forking
ExecStart=/sbin/dhclient wlxc8 -v
ExecStop=/sbin/dhclient wlxc8 -r
Restart=always
[Install]
WantedBy=multi-user.target
15) Save and close the file. Enable the service with
systemctl enable dhclient.service.16) Obtain a static ip address doing the following:
-
nano /etc/dhcp/dhclient.conf- Add the following to the file:
Code:
interface "wlxc8" {
send dhcp-requested-address ZZZ.ZZZ.ZZZ.ZZZ;
}
17) Save and close the file and restart
dhclient service: systemctl restart dhclient.At this point it hangs. At this point, I'm not sure how to fix this error. Here are the references I based this process off of:
- https://github.com/retiarylime/proxmox-laptop-wifi
- https://dev.to/varungujarathi9/setting-up-proxmox-on-a-laptop-without-an-ethernet-port-28n8
- https://www.linuxbabe.com/command-line/ubuntu-server-16-04-wifi-wpa-supplicant
If anyone can offer any pointers or advice, I would definitely appreciate it as I have been struggling with this for several days now. I'm happy to provide any additional information that would be useful.