automatic/script VM delete possible?

JannisK

New Member
Aug 19, 2011
11
0
1
Hi Guys,

i have a little question cause im not really sure if it is allready possible or not.

Is there a way to delete a VM e.g from a backup automatically or by script?

I'm running Proxmox 2.1-14.

Thx for your help



JannisK
 
HI coffe,

can you be a little bit more detailed? what qm command must i use and how can i create a script out of the commands?


regards

JannisK
 
HI coffe,

can you be a little bit more detailed? what qm command must i use and how can i create a script out of the commands?


regards

JannisK
Hi Jannis,
I don't know if unexperiences work with auto-remove of VMs is and good idea...

But if you take a look on console with
Code:
# qm
ERROR: no command specified
USAGE: qm <COMMAND> [ARGS] [OPTIONS]
       qm config <vmid>
       qm create <vmid> [OPTIONS]
       qm destroy <vmid> [OPTIONS]
       qm list 
       qm migrate <vmid> <target> [OPTIONS]
       qm reset <vmid> [OPTIONS]
       qm resize <vmid> <disk> <size> [OPTIONS]
       qm resume <vmid> [OPTIONS]
       qm sendkey <vmid> <key> [OPTIONS]
       qm set <vmid> [OPTIONS]
       qm shutdown <vmid> [OPTIONS]
       qm start <vmid> [OPTIONS]
       qm stop <vmid> [OPTIONS]
       qm suspend <vmid> [OPTIONS]
       qm unlink <vmid> {<idlist>} [OPTIONS]

       qm help [<cmd>] [OPTIONS]

       qm monitor <vmid>
       qm mtunnel 
       qm showcmd <vmid>
       qm status <vmid> [OPTIONS]
       qm unlock <vmid>
       qm vncproxy <vmid>
       qm wait <vmid> [OPTIONS]
You see "qm destroy <vmid>" - this is the topic where you are search for. See also "man qm" (and use only own VMs for deleting!).

Udo
 
  • Like
Reactions: 1 person