Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Installed Xen on a server at home, recently moved it to a data center. Worked fine with DHCP behind my router, with each virtual server and the dom0 getting its own IP address.

At the data center, there's plenty of IP addresses to use, but they all need to be static. I managed to get the dom0 setup with a static IP like this, but I'm not sure where to go from here.

auto eth0
iface eth0 inet static
share|improve this question

migrated from stackoverflow.com Dec 10 '11 at 10:20

This question came from our site for professional and enthusiast programmers.

Basically do more of this. –  Chopper3 Dec 10 '11 at 10:59

1 Answer 1

Just configure every virtual machine's static IP in


To pass the proper IP to your VM when creating one, add to your xen-create-image command this option :

root@nikita:~# xen-create-image --hostname <HOST> --ip <IP> 
share|improve this answer
As in, use the same configuration, but in the /etc/network/interface file of each VM individually? Thanks! –  rachelderp Dec 10 '11 at 14:23
well that depends how you have set up your network in Xen, but normally it is a bridge, so yea, the only thing you will need to change are the IP addresses –  Lucas Kauffman Dec 10 '11 at 14:24
Is there any additional configuration needed for the bridge? Or does Xen magically detect things like that? –  rachelderp Dec 10 '11 at 14:27
yes and no, it is not magical, it is called a script :p : sparksupport.com/blog/xen-bridging –  Lucas Kauffman Dec 10 '11 at 14:28

Your Answer


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.