[lxc-users] Issue with physical nictype

Tardif, Christian christian.tardif at servinfo.ca
Fri Nov 4 19:29:39 UTC 2016


Thanks for the explanation. THis means, then, that I'll need to create a 
wrapper that would make sure that the interface is up again before 
attempting to start the container.

---
Christian Tardif

-------------------------

On 2016-11-04 10:27, Stéphane Graber wrote:
> On Fri, Nov 04, 2016 at 02:43:14PM +0100, Wolfgang Bumiller wrote:
>> 
>> > On November 4, 2016 at 1:36 PM "Tardif, Christian" <christian.tardif at servinfo.ca> wrote:
>> >
>> > No issue when I bring the container up. The ipvlan0 interface is passed
>> > to the container, dissapearing from the host. But when I shut the
>> > container off, the nic is not released to the LXD host. As such, I can't
>> > restart the container again, as the NIC is no longer available from the
>> > LXD server to be offered to the container.
>> >
>> > How can I fix this behavior?
>> 
>> Does it not reappear on the host at all or is it perhaps just renamed 
>> to
>> the "dev<ID>"? (This happens when the name the interface has inside 
>> the
>> container conflicts with a name on the host.)
>> In this case https://github.com/lxc/lxc/pull/1269 should help.
> 
> ipvlan devices are virtual devices which means that the Linux kernel
> will destroy them when the network namespace is flushed rather than 
> have
> them be moved to the initial namespace.
> 
> Same is true for tun/tap devices, dummy devices, ... anything which
> isn't an actual physical device will simply be destroyed by the kernel
> rather than moved back.


More information about the lxc-users mailing list