Door deze site te gebruiken, u gaat akkoord met de Privacybeleid.
Accepteren
EnterinITEnterinITEnterinIT
  • THUIS
  • IT-PRO
  • TECH
  • MICROSOFT
    • Azuur
    • ConfigMgr/SCCM
    • DPM
    • Orchestrator
    • Hyper-V
    • Microsoft Edge Insider
    • MSI
    • Kantoor 365
    • Kantoor insider
    • PowerBI
    • Skypen
    • SQL-server
    • Teams
  • VENSTERS
    • Windows-beheercentrum
    • Windows-client
    • Windows-server
  • SCCM-queryverzamelingslijst
Lezing: How to Stop a Stuck Hyper-V Virtual Machine
Lettergrootte wijzigenAa
EnterinITEnterinIT
Lettergrootte wijzigenAa
  • THUIS
  • IT-PRO
  • TECH
  • MICROSOFT
  • VENSTERS
  • SCCM-queryverzamelingslijst
Zoekopdracht
  • THUIS
  • IT-PRO
  • TECH
  • MICROSOFT
    • Azuur
    • ConfigMgr/SCCM
    • DPM
    • Orchestrator
    • Hyper-V
    • Microsoft Edge Insider
    • MSI
    • Kantoor 365
    • Kantoor insider
    • PowerBI
    • Skypen
    • SQL-server
    • Teams
  • VENSTERS
    • Windows-beheercentrum
    • Windows-client
    • Windows-server
  • SCCM-queryverzamelingslijst
Hyper-V

How to Stop a Stuck Hyper-V Virtual Machine

Gepubliceerd februari 18, 2024
3 Min. gelezen
DEEL

How to Stop a Stuck Hyper-V Virtual Machine.

Inhoud
Method 1Method 2Method 3

It is stuck in the Stopping of Running state and doesn’t give any Turn Off, Shutdown, Save, Pause or Reset options.

One way it’s possible to kill off that stuck virtual machine is to open Task Manger and end the task responsible for that machine. Unfortunately, it’s not quite that simple because the Virtual Machine Worker Process which is responsible for running the virtual machine appears numerous times, once for each running guest machine!

Method 1

If you have a small number of VMs:

  1. Open Task Manager and view the Details lab;
  2. You will see many vmwp.exe running processes with the Username column including the machine GUIDs;
  3. Browse to the location where the virtual machines are stored and open the folder of the virtual machine which is currently hung. From here we can find the machine configuration file and make note of the GUID for that machine;
  4. Now we know which GUID relates to the virtual machine that we are looking to stop. Jump back to Task Manager, right-click on the correct process, En End Process.

OPMERKING: This process should only be used as a last resort as it could cause corruption of the virtual machine!

Method 2

If you have a bunch of running VMs. The fastest way is to find the needed VM GUID with the PowerShell command.

Get-VM <vmname> | fl *

Now we know which GUID relates to the virtual machine that we are looking to stop. Jump back to Task Manager, right-click on the correct process, En End Process.

This command pulls a list of virtual machine names and GUIDs then compares that to a list of GUIDs in the Command Line of the processes running and returns virtual machine names with the associated Process ID (not VM GUID).

Get-WmiObject Win32_Process -Filter "Name like '%vmwp%'" | %{$vm=get-vm -id $_.CommandLine.split(" ")[1];"$($_.processID)`t$($vm.name)"}

Method 3

Use Sysinternals Process Explorer.

GETAGD:Microsoft Hyper-VMicrosoft Windows-serverPowerShellWindows Server 2012R2Windows-server 2016Windows-server 2019
Vorig artikel Fixing PowerBI OSPlatform Error
Volgend artikel PowerShell add Windows PATH variable using setx
Laat een reactie achter Laat een reactie achter

Laat een reactie achter Antwoord annuleren

Uw e-mailadres wordt niet gepubliceerd. Verplichte velden zijn gemarkeerd *

Deze site gebruikt Akismet om spam te verminderen. Ontdek hoe uw reactiegegevens worden verwerkt.

Vertaling

English中文(简体)DanskNederlandsFrançaisDeutschItaliano한국어PolskiPortuguêsRomânăEspañolУкраїнська
 Vertaling bewerken
door Transposh - Vertaalplugin voor Wordpress

Populaire berichten

Systeemvereisten voor Windows Server 2016
Windows-server
Configuration Manager Queryverzamelingslijst
Configuration Manager Queryverzamelingslijst
ConfiguratieMgr
Gestructureerde/beheerde navigatie ingeschakeld op moderne pagina's in klassieke teamsites
Technologie
SCCM Kan DP-locaties niet ophalen als de verwachte versie van MP
ConfiguratieMgr

Recente berichten

Fail2ban installeren en configureren voor SSH-bescherming op Ubuntu 24.04
Linux
FirewallD inschakelen en configureren op AlmaLinux
Linux
Gebruikers aanmaken en SSH-sleutel instellen in AlmaLinux
Linux
Hoe het wachtwoord op AlmaLinux opnieuw in te stellen
Linux

© 2023 EnterinIT

Ga naar mobiele versie
advertentiebanner
Welkom terug!

Log in op uw account

Gebruikersnaam of e-mailadres
Wachtwoord

Wachtwoord vergeten?