Need help?

Our experts have had an average response time of 13.14 minutes in February 2024 to fix urgent issues.

We will keep your servers stable, secure, and fast at all times for one fixed price.

Proxmox can’t stop VM – How we fix it!

by | Jan 13, 2020

Can’t stop the VM in Proxmox? We can help you do it.

We can stop a virtual machine in Proxmox from the web interface and CLI.

Here at Bobcares, we often receive requests regarding Proxmox as a part of our Server Management Services.

Today, let’s see how our Support Engineers stop a VM in Proxmox.

 

Stop VM in Proxmox from the web interface

To stop the virtual machine from the web interface, we login to the web GUI.

Then we click on the virtual machine.

After that, we click on Stop.

proxmox can't stop vm

Thus, we stop the Virtual machine in Proxmox.

 

Stop VM in Proxmox from CLI

To stop the VM from CLI we log in to the host node.

We first find the VMID using the command.

cat /etc/pve/.vmlist

Once we get the ID we use the below command to stop the virtual machine.

qm stop 

 

How we fix Proxmox cannot stop VM

Recently one of our customers contacted us saying they were not able to stop the VM. Now let’s discuss how our Support Engineers fix the error for our customers.

 

VM locked

One of the common reasons for ‘can’t stop a VM’ is that the virtual machine might have been locked. This usually happens when we try to stop a virtual machine when a backup is running.

So the VM locks itself to complete the backup process. Thus, we can wait for the backup process to delete the VM. Else we can unlock the virtual machine and stop the VM.

To unlock the VM we log in to the host node.

Then we find the VMID of the virtual machine using the command

cat /etc/pve/.vmlist

Once we get the VMID, we unlock the VM using the command

qm unlock 

After we unlock the virtual machine we can delete the virtual machine from the web interface or using CLI.

Thus, we fix the error.

 

Timeout error

The timeout error occurs when the virtual machine is locked or the process is still running in the background.

If the virtual machine is locked we unlock the VM and stop the VM.

Else we log in to the Host node.

Then we find the PID of the Machine process using the command.

ps aux | grep "/usr/bin/kvm -id VMID"

Once we find the PID we kill the process using the command.

kill -9 PID

Thus, the VM will stop.

 

Stop from CLI

We have come across many instances that stops the VM from the web interface to do the tasks.

Thus, we stop the virtual machine from the node. To stop the VM first we find the VMID.

Thus we use the below command to stop the virtual machine

qm stop 

Then on refreshing the web interface, we can see that the virtual machine is stopped.

 

[Need any further assistance with Proxmox? – We’ll help you]

 

Conclusion

In short, we have discussed how we stop the VM from the web interface and CLI. Also, we have discussed how our Support Engineers fix the error when stopping the virtual machine.

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

GET STARTED

var google_conversion_label = "owonCMyG5nEQ0aD71QM";

7 Comments

  1. CBuosi

    Great tip! Worked for me!

    Reply
  2. derek

    thanks, exactly what I needed. stuck on a boot CD and couldn’t get the passthru gpu to remove…

    Reply
    • Hiba Razak

      Hi,
      Please contact our support team via live chat(click on the icon at right-bottom).

      Reply
  3. Bo Cash

    Perfect! Thank you!

    Reply
  4. Carlos Pizarro

    This saved me from a long unnecessary reboot, thanks !

    Reply
    • Hiba Razak

      Hello Carlos,
      Thanks for the feedback.Glad to know that our article was helpful for you.

      Reply
  5. fip

    very helpful thx a lot

    Reply

Submit a Comment

Your email address will not be published. Required fields are marked *

Categories

Tags

Privacy Preference Center

Necessary

Necessary cookies help make a website usable by enabling basic functions like page navigation and access to secure areas of the website. The website cannot function properly without these cookies.

PHPSESSID - Preserves user session state across page requests.

gdpr[consent_types] - Used to store user consents.

gdpr[allowed_cookies] - Used to store user allowed cookies.

PHPSESSID, gdpr[consent_types], gdpr[allowed_cookies]
PHPSESSID
WHMCSpKDlPzh2chML

Statistics

Statistic cookies help website owners to understand how visitors interact with websites by collecting and reporting information anonymously.

_ga - Preserves user session state across page requests.

_gat - Used by Google Analytics to throttle request rate

_gid - Registers a unique ID that is used to generate statistical data on how you use the website.

smartlookCookie - Used to collect user device and location information of the site visitors to improve the websites User Experience.

_ga, _gat, _gid
_ga, _gat, _gid
smartlookCookie
_clck, _clsk, CLID, ANONCHK, MR, MUID, SM

Marketing

Marketing cookies are used to track visitors across websites. The intention is to display ads that are relevant and engaging for the individual user and thereby more valuable for publishers and third party advertisers.

IDE - Used by Google DoubleClick to register and report the website user's actions after viewing or clicking one of the advertiser's ads with the purpose of measuring the efficacy of an ad and to present targeted ads to the user.

test_cookie - Used to check if the user's browser supports cookies.

1P_JAR - Google cookie. These cookies are used to collect website statistics and track conversion rates.

NID - Registers a unique ID that identifies a returning user's device. The ID is used for serving ads that are most relevant to the user.

DV - Google ad personalisation

IDE, test_cookie, 1P_JAR, NID, DV, NID
IDE, test_cookie
1P_JAR, NID, DV
NID
hblid

Security

These are essential site cookies, used by the google reCAPTCHA. These cookies use an unique identifier to verify if a visitor is human or a bot.

SID, APISID, HSID, NID, PREF
SID, APISID, HSID, NID, PREF