Portal Home > Knowledgebase > Articles Database > IPs on a Xen Server


IPs on a Xen Server




Posted by Christian Little, 11-06-2011, 12:53 PM
I'm doing some reading on Xen and trying to figure out IP management for it. We currently use OpenVZ, and to add IPs to a container there's a simple command on the hardware node that does it (or you edit the IPADDRESSES= part of the configuration for the specific container). I can't seem to find documentation on how to add/remove IPs from Xen domains. Can somebody point me in the right direction here?

Posted by PCS-Chris, 11-06-2011, 01:24 PM
Unless you use something like libvirt to control Xen, you need to do it all by hand You can specify IP's inside the VM's configuration file in /home/xen, but you will also need to manually set the IP information within the configuration files on the VM's operating system. You can do this by mounting the filesystem on the host machine, control panels like SolusVM do this automatically.

Posted by Christian Little, 11-06-2011, 01:34 PM
Do I need to add the IP to dom0 before it can be added to any of the virtual machines? I.e. would this be the right process (assume the server is running CentOS with Xen): 1) On dom0/Xen server add the IP to /etc/sysconfig/network-scripts and then run ifup 2) Edit the configuration file for the specific domain in /home/xen/ and add the IP. Do you need to reboot the domain after this like you do with OpenVZ? 3) Go into the specific domain and add it as an ethernet device (assuming the domain in question is running CentOS as well, so adding it to /etc/sysconfig/network-scripts and then run ifup ). Or will step 2 remove the need for doing this? If this is correct, can you show me an example xen configuration file that has multiple IPs assigned to the domain? Thanks

Posted by jhadley, 11-06-2011, 02:01 PM
You shouldn't have to

Posted by Christian Little, 11-06-2011, 02:06 PM
OK, so same basic procedure as an OpenVZ server then, just add the IP to the specific virtual machine. Do you need to add the eth device in the specific domain, or will adding it to the domain configuration file be enough (like how OpenVZ works).



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
Report abuse? (Views: 827)
XCache OOMs - Normal ? (Views: 789)


Language:

LoadingRetrieving latest tweet...

Back to Top Copyright © 2018 DC International LLC. - All Rights Reserved.