cli

  1. J

    [SOLVED] What is the best way to delete all hard disks from a VM via command line?

    What is the best way to delete all hard disks from a VM via command line? So far the only option I've been able to come up with is manually parsing output from "qm config". $ sudo qm config 148 boot: meta: creation-qemu=7.2.0,ctime=1700604130 name: jenkins-pipeline-28 scsi0...
  2. C

    [SOLVED] Storage einem Pool zuweisen via CLI

    Hallo Zusammen, gibt es eine Möglichkeit über die CLI beim anlegen von Storage (oder von mir aus auch danach) diesen einem Resource Pool zuzuweisen? Viele Grüße, Cinux
  3. C

    Snapshots failed for every VM "dataset already exists"

    Hi since 2 weeks i cant create any snapshots for any VM i created on my proxmox server. I dont know what to do because running the snapshot in GUI or CLI results in zfs error: cannot create snapshot 'SSD_ZFS/vm-<ANY_ID_HERE>-disk-0@<CHOOSE_ANY_SNAPSHOTNAME_HERE>': dataset already exists Even...
  4. L

    [SOLVED] unable to create vm with qm

    So I'm unable to create a vm with qm or pvesh. I can create them with the webui no problem. The commands I use are bellow plus their output. root@proxmox:~# pvesm alloc VM-OS-Drives 106 vm-106-disk-0 1M --format raw successfully created 'VM-OS-Drives:vm-106-disk-0' root@proxmox:~# pvesm alloc...
  5. M

    qm set --sshkey

    Hey guys, I think I already know the answer, but you never know. In Proxmox GUI, in cloud-init settings, I'm able to set the ssh key (ed25519) as a string. This can also be confirmed in the conf file in /etc/pve/qemu-server/ When I attempt to do the same in the CLI, I get: No such file...
  6. CarstenMartens

    [SOLVED] Mailfilter Regelsatz per CLI anpassen und akt- bzw. deaktivieren

    Hallo, nachdem wir heute von einem unseren Kunden der ein teures Ticketsystem benutzt, wegen einem Fehler in diesem mit Mails zugebombt wurden, würde ich gern wissen ob Wer-Objekte per CLI geändert werden können und Regeln als solches deaktiviert bzw. aktiviert werden können. Danke für die Hilfe
  7. C

    Bare Metal backup of entire Hypervisor for DR

    After suffering recent failure of my Proxmox VE boot disk, I'm contemplating a better (but simple) Disaster Recovery Strategy. Option 1: Boot from a LiveOS, use "dd" to backup my (now unmounted) Proxmox boot disk (safest, but requires prep) Option 2: Shutdown Proxmox VE application, use "dd"...
  8. D

    [SOLVED] getting VMID from the command line

    hi all do we have a tool that can get the next available vmid from the system that's unique across the cluster ? as am looking at using qm create but can't pass 0 as the VM ID to auto generate the next ID.
  9. S

    API how to use 'GET /api2/json/nodes/{node}/qemu --full' via HTTP/proxmoxer

    Hello, How can I use HTTP style of CLI : pvesh get /nodes/{node}/qemu --full GET /api2/json/nodes/{node}/qemu --full ? here is working example from proxmoxer wrapper but without "full" def vm_current_all(targetnode): x = proxmox.nodes(targetnode).qemu().get() return x
  10. J

    Ask for best practice allowing host CLI diagnose if only one GPU that is passed

    Hi all, I had some issue to connect to my proxmox sever which does not have IPMI (or iKVM). It is build on a Threadripper workstation with MSI TRX40 motherboard. I fixed the issue, which is not related to the proxmox. That lead me thinking: Since my only GPU has been passthrough, the frame...
  11. jsterr

    [SOLVED] No ceph commands working on node 2 and node 3

    I wanted to install ceph from cli without interacting with the gui and did the following: pveceph install on pve-01 pve-02 pve-03 pveceph init --network 10.5.5.221/24 --cluster-network 10.6.6.221/24 on pve-01 pveceph mon create on pve-01 Now pveceph works well on pve-01 but pve-02 and pve-03...
  12. T

    List of steps to create a new vm starting from scratch exclusively via CLI.

    Hi, I'm trying to create vm, on my proxmox test cluster with ceph storage, virtual machine exclusively via cli. I understood that I have to use the qm command, but I did not understand where in the command the hard drive is created like when I create it from the GUI. Could some of you guide me...
  13. H

    VM Commands not working over SSH

    Hi Everyone, I'm completely new so this might be a really easy one for you. :-) When running commands such as 'qm list' from within the shell on the web interface, it returns a list of my VM's. But when running the exact same command logged in as root via putty/ssh, i get 'command not found'...
  14. D

    How to get tracking by date on pmg-log-tracker

    Sometimes I use the pmg-log-tracker CLI tool to track mails, but when I want to do it using date format as help show: -s START start time (YYYY-MM-DD HH:MM:SS) -e END end time (YYYY-MM-DD HH:MM:SS) I get an error, saying that it is unable to parse start time, like this: #~...
  15. I

    What is the Proxmox MAC address block or range?

    Like the subject says really. For $reasons I need to create a new VM from the command line. For the network adapter I need to specify a MAC address. To this end, I'm wondering if Proxmox has registered a MAC(OUI) block or range or prefix which we could use to generate out MAC's from. I mean I...
  16. V

    [SOLVED] Unable to list VMs using API or CLI

    I have a VM in running state, but some how API or pvesh command does not shows it. Not sure, what am I missing here. root@proxmox:~# qm list | grep -i running 105 myrke2-node1 running 8096 20.00 12594 root@proxmox:~# root@proxmox:~# pvesh get /nodes...
  17. V

    What is the exact difference between pct and lxc-[...]?

    Hello, what is the exact difference between pct and lxc-[...]? I have the perception that many commands are the same or similar e.g. pct create and lxc-create. Unfortunately, I didn't really find anything about lxc-[...] in the Wiki. So are there concrete reasons why you should use one or the...
  18. W

    network config is it possible to use cli and gui ?

    in /etc/network/interfaces i can read is it possible to use cli ovs command and edit file interfaces what 'source' or 'source-directory' directives mean?
  19. N

    Add restored VM to Pool via CLI

    Hello! Please help me. How to add new restored VM from backup dump to exist pool via CLI ? I need it to make auto tasks in Bamboo. THX!
  20. S

    Need to export "inventory" information for web ordering

    I am the process of automating a website where someone can "purchase" a VM container and it's built automatically for them (via scripting) on the backed. To do this I need to make sure I don't over allocate my resources. I am new to the REST API so I apologize if this is an option already...

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get your own in 60 seconds.

Buy now!