Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .