XenServer cannot connect in XenCenter or XCP-ng Center

XenServer cannot connect in XenCenter or XCP-ng Center

Having problems and your XenServer cannot connect to XenCenter? Did you have high availability enabled? If you answered yes to both these questions here is how you get your XenServer back online and functioning properly.

Step-by-Step Guide

  • PuTTy into the XenServer Pool Master
  • run the following commands:

xe pool-ha-disableNote: If this fails try ha-disable force below

xe host-emergency-ha-disable force=true<br /> xe pool-emergency-transition-to-master --force

Note: This will force the pool and slaves to reinitialize with the pool master

  • Once the server reboots it should connect
  • Go into your XenCenter and re-connect

Other Helpful Commands for troubleshooting

xe-toolstack-restart – First command I always try before anything else

service xapi restart – This restarts a core service

xsconsole – This launches console to check pool, network config, ha, running VMS, etc.

How-To Video going over troubleshooting

Conclusion

This will get your server back up and accessible, however, this disables high availability and will need to be set back up. It’s important to note the cause of an event like this. In my case, the SR I was using to host my VMs was not sufficient and caused the outage. If this happens to you make sure you have a good SAN/NAS for hosting on a Gigabit or above connection. I’d highly recommend a 10Gbs connection or a multipath gigabit connection at the very least.