I can't even set up one container

4n0nx

New Member
Sep 18, 2015
2
0
1
Hi, I installed Proxmox on Debian 8 following this extremely easy how-to:pve.proxmox () com/wiki/Install_Proxmox_VE_on_Debian_Jessie Then I logged in at ip:8006 and wanted to create a LXC instance. But how? It tells me to select a bridge. I created one using my failover IP address, the netmask and the gateway. Then I selected it during the container creation process and added the virtual MAC my provider generated for me. It does not work (= the container has no internet connection). What do I need to do? Why is there not a single how-to for this? Every how-to seems to already have a bridge magically pre-configured. Thank you for your time.
 
Adjust to your needs in /etc/network/interfaces on hypervisor.

From
Code:
auto eth0
iface eth0 inet static
    address YOUR.HOST.IP
    netmask YOUR.HOST.NETMASK
    gateway YOUR.GATEWAY

To

Code:
auto vmbr0
iface vmbr0 inet static
    address YOUR.HOST.IP
    netmask YOUR.HOST.NETMASK
    gateway YOUR.GATEWAY
    bridge_ports eth0
    bridge_stp off
    bridge_fd 0
 
Adjust to your needs in /etc/network/interfaces on hypervisor.

Thanks! The following interfaces file works after a reboot:

imgur.com/5g37WNg.png

Then I install proxmox and create a CT, but it still does not have any internet access.

Here a picture of my network settings: imgur.com/aZFxegP.png

(The interfaces file of the container contains exactly the information I provided and an eth0 iface is visible in the container.)

Did I do everything correctly? Is there anything else I need to do? (add IP to bridge interface or something?)

Thank you so much
 
That is not for the container. That is for hypervisor. The interfaces file of the container is built around "eth0". "vmbr0" is for hypervisor.

You also don't need "auto eth0" and "iface eth0 config manual" in hypervisor, as vmbr0 will take care to move that interface to up state.


Oh, about the internet acces of the container. If you don't have another public IP address that belongs to the same network as the hypervisor (as they are bridged) it will not work.

Please post here complete output of /etc/network/interfaces in both the hypervisor and the container (you can replace IP addresses with XXX at the end).
 
Last edited:

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!