unable to install VM . Your network is probably not using DHCP

IT_dumbo

New Member
Jul 25, 2019
4
0
1
46
Hi,

I have installed PVE on my Intel NUC and have managed to obtain access to the management console. I am trying to create a ubuntu VM but the installation fails at network configuration. I'm getting the following error "Your network is probably not using the DHCP protocol " This error is preventing VM from getting an IP from the host DHCP. Any help is much appreciated

Code:
root@pve:~# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: eno1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
    link/ether 94:c6:91:14:86:91 brd ff:ff:ff:ff:ff:ff
3: wlp58s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
    link/ether 88:b1:11:99:66:00 brd ff:ff:ff:ff:ff:ff
    inet 192.168.178.24/24 brd 192.168.178.255 scope global wlp58s0
       valid_lft forever preferred_lft forever
    inet6 fe80::8ab1:11ff:fe99:6600/64 scope link
       valid_lft forever preferred_lft forever
4: vmbr0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether 82:bb:d1:2c:ff:ff brd ff:ff:ff:ff:ff:ff
    inet 10.10.10.1/24 brd 10.10.10.255 scope global vmbr0
       valid_lft forever preferred_lft forever
    inet6 fe80::2c64:82ff:feb8:c377/64 scope link
       valid_lft forever preferred_lft forever
5: tap100i0: <BROADCAST,MULTICAST,PROMISC,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master vmbr0 state UNKNOWN group default qlen 1000
    link/ether 82:bb:d1:2c:ff:ff brd ff:ff:ff:ff:ff:ff

Code:
auto lo
iface lo inet loopback

iface enp0s20f0u1 inet manual

auto wlp58s0
iface wlp58s0 inet static
        address 192.168.178.24
        netmask 255.255.255.0
        gateway 192.168.178.1
        wpa-ssid SSID
        wpa-psk PASSWORD

auto vmbr0
iface vmbr0 inet static
        address 10.10.10.1
        netmask 255.255.255.0
        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 wlp58s0 -j MASQUERADE
        post-up iptables -t nat -D POSTROUTING -s '10.10.10.0/24' -o wlp58s0 -j MASQUERADE

iface eno1 inet manual
 
If you do NAT then you either need a DHCP server on that private network (eg. 10.10.10.0/24) or use static IPs.
 
I tried dhcp but didn't work but was able to get it work through static ip. Thanks again for your help
 

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!