Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I am trying to create a split-horizon PPTP setup as described on my website within an LXC container. However, I need a dummy interface within the container to put the DHCP server on.

Here comes the problem: within the container I can't run modprobe dummy to create my dummy interface. (Technically I can if I have the kernel modules installed, but it won't do anything.)

The container itself is a host to more containers, so I'm using the apparmor profile from Stéphane Graber. The operating system on both the host and the guest is a stock Ubuntu 12.04 with all upgrades applied to date.

Questions:

  • Is there a way to configure the dummy module in any other way besides modprobe?
  • Is it possible to use the dummy module in an LXC guest?
share|improve this question

1 Answer 1

There is a workaround in the official documentation, however I'm not very satisfied with it. You can use the network type phys to pair up a network interface with a dummy interface on the host side;

 lxc.network.type = phys
 lxc.network.flags = up
 lxc.network.link = dummy0
 lxc.network.hwaddr = 4a:49:43:49:79:ff
 lxc.network.ipv4 = 10.2.3.6/24
 lxc.network.ipv6 = 2003:db8:1:0:214:1234:fe0b:3297
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.