Ved at bruge denne side, du accepterer Privatlivspolitik.
Acceptere
EnterinITEnterinITEnterinIT
  • HJEM
  • IT PRO
  • TECH
  • MICROSOFT
    • Azure
    • ConfigMgr/SCCM
    • DPM
    • Orkester
    • Hyper-V
    • Microsoft Edge Insider
    • MSI
    • Kontor 365
    • Office Insider
    • Power BI
    • Skype
    • SQL Server
    • Hold
  • WINDOWS
    • Windows Admin Center
    • Windows klient
    • Windows Server
  • SCCM-forespørgselsindsamlingsliste
Læsning: How to Stop a Stuck Hyper-V Virtual Machine
Font ResizerAa
EnterinITEnterinIT
Font ResizerAa
  • HJEM
  • IT PRO
  • TECH
  • MICROSOFT
  • WINDOWS
  • SCCM-forespørgselsindsamlingsliste
Søge
  • HJEM
  • IT PRO
  • TECH
  • MICROSOFT
    • Azure
    • ConfigMgr/SCCM
    • DPM
    • Orkester
    • Hyper-V
    • Microsoft Edge Insider
    • MSI
    • Kontor 365
    • Office Insider
    • Power BI
    • Skype
    • SQL Server
    • Hold
  • WINDOWS
    • Windows Admin Center
    • Windows klient
    • Windows Server
  • SCCM-forespørgselsindsamlingsliste
Hyper-V

How to Stop a Stuck Hyper-V Virtual Machine

Udgivet februar 18, 2024
3 Min læst
DELE

How to Stop a Stuck Hyper-V Virtual Machine.

Indhold
Method 1Method 2Method 3

It is stuck in the Stopping or 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. Åben Task Manager and view the Details tab;
  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, og End Process.

NOTE: 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, og 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.

TAGGET:Microsoft Hyper-VMicrosoft Windows ServerPowerShellWindows Server 2012R2Windows Server 2016Windows Server 2019
Forrige artikel Fixing PowerBI OSPlatform Error
Næste artikel PowerShell add Windows PATH variable using setx
Efterlad en kommentar Efterlad en kommentar

Efterlad et svar Annuller svar

Din e-mailadresse vil ikke blive offentliggjort. Påkrævede felter er markeret *

Denne side bruger Akismet til at reducere spam. Lær, hvordan dine kommentardata behandles.

Oversættelse

English中文(简体)DanskNederlandsFrançaisDeutschItaliano한국어PolskiPortuguêsRomânăEspañolУкраїнська
 Rediger oversættelse
ved Transposh - translation plugin for wordpress

Populære indlæg

Systemkrav til Windows Server 2016
Windows Server
Configuration Manager Forespørgselsindsamlingsliste
Configuration Manager Forespørgselsindsamlingsliste
ConfigMgr
Struktureret/administreret navigation aktiveret på moderne sider i klassiske teamwebsteder
Tech
SCCM Kunne ikke hente DP-placeringer som den forventede version fra MP
ConfigMgr

Seneste indlæg

Installation og konfiguration af Fail2ban til SSH-beskyttelse på Ubuntu 24.04
Linux
Aktivering og konfiguration af FirewallD på AlmaLinux
Linux
Brugeroprettelse og SSH-nøgleopsætning i AlmaLinux
Linux
Sådan nulstiller du adgangskoden på AlmaLinux
Linux

© 2023 EnterinIT

Gå til mobil version
adbanner
Velkommen tilbage!

Log ind på din konto

Brugernavn eller e-mail-adresse
Adgangskode

Mistet din adgangskode?