XenCenter shows the red icon of the XenServer Slave that no longer exists in the pool. You want to eliminate that XenServer Slave but you receive the following error message when you issue the command from XenServer Master xe host-forget of that Slave.
"This host cannot be forgotten because there are some user VMs still running host: 58ee6a78-c20c-4069-b07d-0b092e15fc1c (XS2)."
The XenServer Master’s database still has the list of the VM from Slave, but in the reality, the Slave no longer exists. You need to shutdown the VM first to be able to forget the Slave from the pool.
Complete the following procedure:
Run the following command:
xe host-list
The slave that you want to eliminate is XS2 with UUID 58ee6a78-c20c-4069-b07d-0b092e15fc1c. You want to find the VM still running on the Slave:
xe vm-list resident-on=58ee6a78-c20c-4069-b07d-0b092e15fc1c
The two VM that you need to shut down are Storage Link and NetScaler Virtual Appliance. Run the following commands:
xe vm-reset-powerstate uuid=603432e2-c85c-42fa-7bcd-430ddef6688a --force"
xe vm-reset-powerstate uuid=062a61b6-0ee3-9383-adf9-e2a506e5e3be --force"
It is now safe to forget the Slave. Run the following command:
xe host-forget uuid=58ee6a78-c20c-4069-b07d-0b092e15fc1c
Go to XenCenter, the slave XS2 is not present now.