# Proxmox Troubleshooting and Commands

- Update Proxmox

```bash
apt update && apt dist-upgrade -y
```

- List all VMs

```bash
qm list
```

- List all containers

```bash
pct list
```

- Check storage

```bash
pvesm status
```

- Check cluster status

```bash
pvecm status
```

- Check HA status

```bash
ha-manager status
```

- View running services

```bash
systemctl list-units --type=service --state=running
```

- View system logs

```bash
journalctl -f
```

- Proxmox Service Management

```bash
systemctl restart pveproxy        # restart web interface
systemctl restart pvedaemon       # restart main daemon
systemctl restart pvestatd        # restart stats daemon
systemctl status corosync         # check cluster communication
systemctl status pve-ha-lrm       # check HA Local Resource Manager
```