Skip to content

cli vm start, stop, restart

Tip

qm --help
qm list
qm start <vmid> [options]
qm stop <vmid> [options]
qm reboot <vmid> [options]
qm shutdown <vmid> [options]

forcekill vm like unplug ac

will show you the kvm process id running your vmid

ps aux | grep <vmid> 

you can now kill it with the process ID

kill -9 <PID>

make free space if qemu-agent is enabled

fstrim -a
fstrim --help 

resize vmdisk through gui

troubleshoot

when df -h (filesystem) shows smaller size than lsblk (partition) then use resize2fs /dev/sdX

show location of each storage

pvesm status
or

cat /etc/pve/storage.cfg

root@pve:~# cat /etc/pve/storage.cfg 
dir: local
    path /var/lib/vz
    content backup,vztmpl,iso

lvmthin: local-lvm
    thinpool data
    vgname pve
    content images,rootdir

dir: extssd0
    path /mnt/pve/extssd0
    content backup,snippets,vztmpl,images,rootdir,iso
    is_mountpoint 1
    nodes pve

dir: m2280wd4tb
    path /mnt/pve/m2280wd4tb
    content iso,rootdir,images,vztmpl,backup,snippets
    is_mountpoint 1
    nodes pve

iso images location

/var/lib/vz/template/iso /mnt/pve/m2280wd4tb/template/iso etc.

proxmox falls kein internet adapter auf realtek umstellen