• Home
  • Podcast
  • Contact
Ervik.as
Cloud, Cyber Security, EUC, DaaS and HCI
  • Cloud
    • Azure
    • Citrix Cloud
    • Cloud Management
    • Nutanix Clusters
  • Cyber Security
    • Arctic Wolf
    • Cyber Security News
  • EUC
    • Citrix
      • Citrix Analytics
      • Citrix NetScaler
      • Citrix Provisioning
      • Receiver
      • ShareFile
      • Citrix Virtual Apps (XenApp)
      • Citrix Virtual Desktops (XenDesktop)
      • Workspace
      • Workspace app
    • DaaS
      • Azure Virtual Desktop
      • Frame
    • Microsoft
      • HoloLens
      • Microsoft App-V
      • Remote Desktop Services
      • Windows 7
      • Windows 8
      • Windows 10
      • Windows Server 2008
      • Windows Server 2008 R2
      • Windows Server 2012
      • Windows Server 2012 R2
      • Windows Server 2016
    • Thin Clients
      • Igel
      • Wyse
    • VMware
      • Fusion
      • Horizon View
      • Vmware ThinApp
      • Vmware Workstation
    • Parallels
      • Remote Application Server
  • End User Experience
    • ControlUp
    • eG Innovations
    • Goliath Technologies
    • Liquidware
  • Datacenter
    • Backup & Disaster Recovery
      • Altaro
      • HYCU
      • Unitrends
      • Rubrik
      • Veeam Software
    • Containers
      • Docker
      • Red Hat OpenShift
    • Hybrid Multi Cloud
      • Nutanix
        • Nutanix Database Service
        • Files
        • Flow
        • Nutanix AHV
        • Nutanix Cloud Platform
    • Server Virtualization
      • Nutanix AHV
      • Microsoft Hyper-V
      • VMware vSphere
      • Citrix Hypervisor (XenServer)
    • Network & Security
      • Nutanix Flow
      • Palo Alto Networks
  • About
    • Cookie Policy (EU)
    • News
      • Citrix Community News

Citrix Hypervisor ( XenServer )

Citrix Xenserver VM Stuck in shutdown

Alexander Ervik Johnsen Citrix, Troubleshoot XenServer, VM, VM Stuck in shutdown, XenServer, XenServer CLI, XenServer Guide, XenTools 2011-08-09

I’ve been troubleshooting XenServer a couple of times today, with problems after cancelling a new VM. What I encountered today is what you can call a Xen hosted VM that is stuck in a “Pending” state, typically a VM that was stuck with a pending Shutdown task.

Here is what you need to do to release it from this state. Also note that in the XenCenter, the VM is no responsive in a panic state and the Shutdown and Reboot buttons are greyed out.

A couple of potential causes for this condition include:

  1. a mounted iso from the console that is not avaliable for some reason
  2. From Citrix: -> Windows being Windows. At times, when a server executes shutdown, it hangs, spinning it’s wheels. XenServer waits for a confirmation from XenTools that the shutdown is proceeding before it completes the task. If there are problems during the Shutdown, XenServer does not consider the task completed leading to a loss of connectivity to the XenServer tools. If connectivity between XenServer and XenTools is lost during the shutdown process meaning XenServer never receives a proper signal from Xentools about the state of the shutdown, you get that “stuck” symptom and the only thing you can do is force-kill the task and down a Force Reboot.
  3. If you cancel a job either creating a new VM or Move/Copy a VM

Here is what you need to do!

From the XenCenter connect to the XenServer console CLI

 

  1. xe task-list to view the Pending tasks
  2. xe task-cancel force=true uuid=<UUID> the UUID from the above command

Please note that I also tried to use the xe vm-reboot or xe vm-shutdown commands do nothing but create more pending tasks. If  xe-toolstack-restart and xe task-cancel uuid=<UUID> (without the force=true) had no effect.

Once the Pending tasks affecting the VM had been cancelled, the VM rebooted and worked normally, xe-toolstack-restart after cancelling the tasks was not necessary, but you may need to use it if the server is not responsive.

Please NOTE that if you need to run the xe-toolstack-restart command, be sure to turn off HA before you run the command in CLI!

PS.We take no responsibility for what might or might not happen!

Related Posts

Citrix Hypervisor ( XenServer ) /

Citrix Hypervisor 8.0 released

Citrix Hypervisor ( XenServer ) /

Nutanix speeds up the journey to Citrix Cloud

Citrix Hypervisor ( XenServer ) /

Showcasing Citrix XenServer with AMD MxGPU

Citrix Hypervisor ( XenServer ) /

Citrix releases XenApp 7.17 and XenDesktop 7.17

Citrix Hypervisor ( XenServer ) /

Citrix XenMotion Tech Preview´s VM Live Migration for Nvidia vGPUs

‹ Liquidware Labs Collaborates with NetApp to Offer Innovative Assessment Service That Optimizes Storage Costs for Desktop Virtualization Environments› Citrix Extends Desktop Virtualization Leadership with Acquisition of RingCube

Back to Top

Crafted in the land of the Vikings 🇳🇴 by Alexander Ervik Johnsen.
Copyright 2000-2025 - www.ervik.as - All Rights Reserved