How to change a XEN VPS's IP address when it's down?

11 posts / 0 new
Last post
#1 Wed, 02/03/2010 - 08:04
SoftDux

How to change a XEN VPS's IP address when it's down?

How do I change a XEN VPS's IP address when it's offline?

Does CloudMin know when I change the /etc/xen/vps1.cfg file?

Thu, 02/04/2010 - 01:12
JamieCameron

Sure, you can edit all the IPs for a Xen instance at Resources -> Network Interfaces. This can be done when it is offline, and the .cfg file will be updated too.

''

Thu, 02/04/2010 - 03:25
SoftDux

That option isn't available when the VPS is down, hence my question :)

Thu, 02/04/2010 - 11:25 (Reply to #3)
JamieCameron

Are you sure? It appears OK for me ..

I made a mistake in my original post though - it is at System Configuration -> Network Interfaces.

If it isn't appearing for you, which Linux distribution is the VPS running?

''

Thu, 02/04/2010 - 11:41
SoftDux

Ok, I see now.

If the VPS cannot be pinged ( in this case ), or SSH has failed, then that menu isn't available. A VPS that has been shutdown, however does show the menu.

I moves a VPS from one server to another, but I think the IP didn't change properly, so now it's in a "Ping failed" state. So, I wanted to change the IP, but can't since the menu option isn't there.

I also noticed this for a VPS with "No SSH Access", so even though it is running, I can'tg change the IP either.

Thu, 02/04/2010 - 11:46
SoftDux

After shutting down the VPS, the menu appears. So it seems like it's bug, whereby the menu isn't visible in all the different states.

Thu, 02/04/2010 - 12:01 (Reply to #6)
JamieCameron

That is actually expected .. for Cloudmin to change the IP, it needs to be able to edit the network config files on the VPS. It can do this when it is down (by mounting the filesystem), or when it is fully up (by SSHing in), but not when it is running but un-pingable.

''

Thu, 02/04/2010 - 12:11
SoftDux

Ok, fair enough, but what about when it doesn't have SSH access? Why not be able to change the IP in the configuration file (/xen/vps.cfg) in that case still?

Thu, 02/04/2010 - 12:27 (Reply to #8)
JamieCameron

Would you really want to do that though? It seems like if the .cfg file had one IP but the guest's eth0 was using a different one, networking would be broken..

''

Thu, 02/04/2010 - 12:41
SoftDux

well, it's "broken" already :) So, with this, instead of having to shutdown, change IP, startup, why not make it one step simpler: change IP (regardless if it's non-pingable or not?) > Reboot ?

Thu, 02/04/2010 - 13:10 (Reply to #10)
JamieCameron

Ok, I'll see what I can do here for a future release.

''

Topic locked