Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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 need to set up a fenced environment in on Ubuntu server. The actual use case is to have two separate websites running on the same physical box, but I want one of those websites running in a fenced environment. I figured that the best way to do this was create a VM on the server for the fenced website, and have a second IP address point to that VM.

A friend recommended OpenVZ, but this topic recommended LXC instead. I've got LXC working, except for the networking part.

I have a separate IP address and a separate MAC address, provided by the server provider (Hetzner). Unfortunately, I cannot figure out what values to put in the LXC config file so that when the container starts, it uses the different IP address.

When I start the container with below settings, it boots up fine. However, doing a curl, I get the IP address of the root machine ( and not the new IP ( The latter IP does not respond to ping or http requests.

Here's the relevant bits from the config file: = 00:50:56:00:30:3F =

Please let me know if there's any additional information I can give you, or even if I'm on the wrong track with the VMs. I'm very new to all of this!

share|improve this question
You're at Hetzner, they have some strange requirements when you run virtual machines on your leased server. Contact Hetzner to find out what you need to do. – Michael Hampton Dec 25 '12 at 16:57
AFAIK, pinging from lxc container to outside may not be possible since lxc does not support raw sockets and i think it requires bridged network for applying a separate ip of its own. – Naai Sekar Dec 25 '12 at 20:16

Your Answer


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

Browse other questions tagged or ask your own question.