Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Network interface configuration depending on kernel PCI address #1426

Closed
timofurrer opened this issue Feb 9, 2017 · 1 comment
Closed

Network interface configuration depending on kernel PCI address #1426

timofurrer opened this issue Feb 9, 2017 · 1 comment

Comments

@timofurrer
Copy link

If I have an udev rule like this:

ACTION=="add", SUBSYSTEM=="net", SUBSYSTEMS=="pci", KERNELS=="0000:01:00.0", NAME="net0"

Is there a way to emulate this PCI address in LXC? The documentation does not mention anything like that. The closest config was the lxc.network.hwaddr which does not help in this case.

@brauner
Copy link
Member

brauner commented Feb 9, 2018

No, there's no way to emulate the PCI address. In contrast to VM's the devices you hand in the container are exactly the same device as on the host. So assigning a new PCI address won't work. Additionally, udev rules won't work inside containers since only the init network namespace receives uevents. Sorry.

@brauner brauner closed this as completed Feb 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants