Connection WiFi problem with wmbr0

sadek

New Member
Dec 2, 2020
13
1
3
43
Hello everyone, I'm a beginner with promox, but I managed to connect it via WiFi, not being able to use the cable where the PC is located.
I have access to the gui, but I can't get an ip from the VM, I am trying to create a VM for Home Assistant and I need to receive an IP
Immagine 2020-12-02 151057.png

Can anyone help me?



This is what I'm in /etc/network/interfaces

auto lo
iface lo inet loopback

#iface enp3s0 inet manual

allow-hotplug wlp2s0
auto wlp2s0
iface wlp2s0 inet static
address 192.168.1.xxx/24
netmask 255.255.255.0
gateway 192.168.1xxx
wireless-channel 1
pre-up wpa_supplicant -iwlp2s0 -c /etc/wpa_supplicant/wpa_supplicant.conf -B


auto vmbr0
iface vmbr0 inet static
address 10.10.10.1
netmask 255.255.255.0
gateway 192.168.1.xxx
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 '10.10.10.0/24' -o wlp2s0 -j MASQUERADE
post-down iptables -t nat -D POSTROUTING -s '10.10.10.0/24' -o wlp2s0 -j MASQUERADE
 
Last edited:
Hi, the VM's IP will not be contained in /etc/network/interfaces but rather in it's own configuration. On the console of the VM enter the command hostname -i to see the IP address.
 
What about ip a?
 
Right command, wrong system ;) From the Proxmox VE GUI, select the Hassio VM and click on "Console" in the menu. You should see Hassio's console then. Enter "root" for login (as far as I read, there is no password by default), then enter ip a.
 
A couple of obvious issues
1. your vmbr0 is not bridging any physical interface
2. the gateway for your 10.10.10.x network will not be reachable
3. your are making life complicated for yourself by trying to route between subnets
4. you can't do dhcp outside of your network scope without an ip helper (might not even work if the dhcp server is on wifi?)
5. there's a 172.17.0.1 IP in play as well, how will this be reached? is it internal, external or wan?
 
I can't answer your questions, I'm a beginner. I just wish I could use proxmox via wifi to start hassio.

Can you help me configure everything properly?
 
I'm not sure hassio will work as a VM on Wifi install.... but if you want to try with a masquerading setup (which it looks like you were trying to use) then I would do this

1. remove the gateway from the vmbr0 config
2. leave the wlp2s0 config as it is now (proxmox is on 192.168.1.100)
3. create a container on proxmox using one of the templates (debian or ubuntu) and assign an ip like 10.10.10.10/24 with a gateway of 10.10.10.1, DNS set to 8.8.8.8
3. start the container and go to the console window for the container and verify you have network connectivity. Use 'ping 10.10.10.1' then 'ping 8.8.8.8', finally 'ping google.com' to test dns resolution
4. if that all works correctly then run 'apt-get update' followed by 'apt-get install apache2'
5. once apache2 is installed, from one of your other devices try opening the webpage at http://192.168.1.100 - if you get the Apache2 default web page then you should be able to install and run hassio on a VM
 
Last edited:
Thanks for the help, but I gave up. I solved with cable connection using a power line.
 
  • Like
Reactions: bobmc

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!