-
Notifications
You must be signed in to change notification settings - Fork 185
could not get private network working #479
Comments
I just had this same issue. It turns out that pipework does not correctly obtain the IP address to set up if you have ipcalc installed on your local UBUNTU 16.04 box. So just remove the ipcalc package on your local box and you're good to go. A more detailed explanation... The ipcalc portion of the pipework code is broken. ipcalc on UBUNTU 16.04 has different options than the ones the pipework script uses. In pipework, it uses the -b flag for ipcalc to obtain the broadcast address. ipcalc on UBUNTU doesn't have the -b flag. I turned on debugging for both vagrant and the pipework script. With ipcalc installed I saw the following output when bringing up a Vagrant node:
With ipcalc removed from my local box and bring up a Vagrant node:
|
Hey, sorry for the silence here but this project is looking for maintainers 😅 As per #499, I've added the |
On Opensuse Tumbleweed, I could not get private networking to work with a CentOS7 container. Here are the relevant info (I think):
Using the following Vagrantfile and starting the container with debug:
I can see that new bridge is created and got the default ip address, but state is down:
And interface inside the container is created but without an ip address:
If I ssh into container and set the interface to up and give an ip address, it works:
And bridge and new interface status are fixed on the host after that:
How can I further debug this? Is there some pre-start tasks that I should do on the host?
My lxc and lxc-net configs are like this:
The text was updated successfully, but these errors were encountered: