# Proxmox Virtual Environment - PVE

# PVE - VM does not stop

## Introduction

Sometimes a virtual machine cannot be stopped from the GUI.

## Resolution

```bash
qm stop <number>
```

## Useful links

<span class="wikiexternallink">[https://bobcares.com/blog/proxmox-cant-stop-vm/](https://bobcares.com/blog/proxmox-cant-stop-vm/)</span>

# PVE - No quorum error

## Introduction

A typical error on a PVE cluster is

<p class="callout warning">No Quorum error</p>

It can happen, when other machines of the cluster stop functioning.

## Resolution

```bash
pvecm expect 1
```

## Useful links

<span class="wikiexternallink">[No quorum error](https://forum.proxmox.com/threads/no-quorum-error.113459/)</span>

<span class="wikiexternallink">[Definition Quorum](https://pve.proxmox.com/wiki/Cluster_Manager#_quorum)</span>

# PVE - Can't lock file

### Can't lock file

<span class="wikiexternallink">[https://dannyda.com/2020/05/1 1/how-to-fix-proxmox-pve-cant-lock-file-var-lock-qemu-server-lock-xxx-conf-got-timeout-proxmox-cant-shutdown-virtual-machine/](https://dannyda.com/2020/05/11/how-to-fix-proxmox-pve-cant-lock-file-var-lock-qemu-server-lock-xxx-conf-got-timeout-proxmox-cant-shutdown-virtual-machine/)</span>

manual SSH:

goto /run/lock/qemu-server

delete lock-xxx.conf

qm unlock xxx

Simple script:

```bash
#!/bin/sh
echo
echo '-----AUTHOR: https://dannyda.com-----'
echo
echo '---Existing locks---'
qm unlock $1
ls -l /run/lock/qemu-server
rm -f /run/lock/qemu-server/lock-$1.conf
qm unlock $1
echo
echo '---Remaining locks---'
ls -l /run/lock/qemu-server
```

```bash
./killvm.sh xxx 
```