Qm命令基础

来自linux中国网wiki
Evan讨论 | 贡献2022年8月15日 (一) 06:09的版本 →‎reference
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
跳到导航 跳到搜索

常用

 
 qm stop 106
 
root@pve:~# qm destroy 106
  Logical volume "vm-106-disk-0" successfully removed

#105 是模板id   
qm clone  105    106  --name k8s-master-debian11

qm  start 106

qm destroy 112  113  114  115 

root@pve:~# qm clone  116  117 --name k8s-master-centos7.8
create linked clone of drive scsi0 (local-lvm:base-116-disk-0)
  WARNING: You have not turned on protection against thin pools running out of space.
  WARNING: Set activation/thin_pool_autoextend_threshold below 100 to trigger automatic extension of thin pools before they get full.
  Logical volume "vm-117-disk-0" created.
  WARNING: Sum of all thin volume sizes (<544.21 GiB) exceeds the size of thin pool pve/data and the size of whole volume group (237.97 GiB).


root@pve:~# qm list
      VMID NAME                 STATUS     MEM(MB)    BOOTDISK(GB) PID       
       100 debian10             stopped    3072              32.00 0         
       101 k8s-master           stopped    3072              32.00 0         
       102 k8-snode1            stopped    3072              32.00 0         
       103 8-snode2             stopped    3072              32.00 0         
       104 template-centos7.3   stopped    2048              24.00 0         
       105 deian11-3            stopped    2048              26.00 0         
       106 k8s-master-debian11  stopped    2048              26.00 0         
       107 k8s-node1-debian11   stopped    2048              26.00 0         
       108 k8s-node2-debian11   stopped    2048              26.00 0         
       109 centos7-master       stopped    2444              24.00 0         
       110 centos7-node1        stopped    2248              24.00 0         
       111 centos7-node2        stopped    2108              24.00 0         
       112 bad-kub-1            stoppe

reference

pve 删除虚拟机

proxmox中的好用qm命令,救命就用它了!解决locked的问题