public inbox for pve-user@lists.proxmox.com
 help / color / mirror / Atom feed
* [PVE-User] qm cli
@ 2020-11-10 15:10 Alejandro Bonilla
  2020-11-10 15:49 ` Dietmar Maurer
  2020-11-10 17:12 ` Steffen Schwebel
  0 siblings, 2 replies; 5+ messages in thread
From: Alejandro Bonilla @ 2020-11-10 15:10 UTC (permalink / raw)
  To: pve-user

Hello,

Whenever I run commands from within one of the nodes, they appear to be targeted to the local system only.

root@r620-1:~# for i in {123..128}; do qm snapshot $i ready ; done
2020-11-10 09:15:21.882 7f81d2ffd700 -1 set_mon_vals failed to set cluster_network = 10.0.0.0/24: Configuration option 'cluster_network' may not be modified at runtime
...
Configuration file 'nodes/r620-1/qemu-server/124.conf' does not exist
Configuration file 'nodes/r620-1/qemu-server/125.conf' does not exist
…
...
Configuration file 'nodes/r620-1/qemu-server/127.conf' does not exist
Configuration file 'nodes/r620-1/qemu-server/128.conf' does not exist

Is there a way to “centrally” run commands?

Thanks

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PVE-User] qm cli
  2020-11-10 15:10 [PVE-User] qm cli Alejandro Bonilla
@ 2020-11-10 15:49 ` Dietmar Maurer
  2020-11-12  8:54   ` Mark Schouten
  2020-11-10 17:12 ` Steffen Schwebel
  1 sibling, 1 reply; 5+ messages in thread
From: Dietmar Maurer @ 2020-11-10 15:49 UTC (permalink / raw)
  To: Proxmox VE user list, Alejandro Bonilla, pve-user


> Whenever I run commands from within one of the nodes, they appear to be targeted to the local system only.

Yes, this is how it works.




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PVE-User] qm cli
  2020-11-10 15:10 [PVE-User] qm cli Alejandro Bonilla
  2020-11-10 15:49 ` Dietmar Maurer
@ 2020-11-10 17:12 ` Steffen Schwebel
  1 sibling, 0 replies; 5+ messages in thread
From: Steffen Schwebel @ 2020-11-10 17:12 UTC (permalink / raw)
  To: pve-user


[-- Attachment #1.1: Type: text/plain, Size: 2006 bytes --]

Hello,

have you seen the proxmox API documentation?
https://pve.proxmox.com/wiki/Proxmox_VE_API

On 11/10/20 4:10 PM, Alejandro Bonilla wrote:
> Hello,
>
> Whenever I run commands from within one of the nodes, they appear to be targeted to the local system only.
>
> root@r620-1:~# for i in {123..128}; do qm snapshot $i ready ; done
> 2020-11-10 09:15:21.882 7f81d2ffd700 -1 set_mon_vals failed to set cluster_network = 10.0.0.0/24: Configuration option 'cluster_network' may not be modified at runtime
> ...
> Configuration file 'nodes/r620-1/qemu-server/124.conf' does not exist
> Configuration file 'nodes/r620-1/qemu-server/125.conf' does not exist
> …
> ...
> Configuration file 'nodes/r620-1/qemu-server/127.conf' does not exist
> Configuration file 'nodes/r620-1/qemu-server/128.conf' does not exist
>
> Is there a way to “centrally” run commands?
>
> Thanks
> _______________________________________________
> pve-user mailing list
> pve-user@lists.proxmox.com
> https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-user

-- 
Steffen Schwebel
Mail: s.schwebel@uvensys.de
uvensys GmbH

Firmensitz und Sitz der Gesellschaft:
uvensys GmbH
Schorbachstraße 11
35510 Butzbach

HRB: AG Friedberg, 7780
USt-Id: DE282879294

Geschäftsführer:
Dr. Thomas Licht, t.licht@uvensys.de
Volker Lieder, v.lieder@uvensys.de

Mail: info@uvensys.de
Internet: www.uvensys.de

Durchwahl: 06403 789 36 22 
Hotline: 06403 789 36 88
Zentrale: 06403 789 36 00
Fax: 06403 789 36 99
==========================================================

Jegliche Stellungnahmen und Meinungen dieser E-Mail sind
alleine die des Autors und nicht notwendigerweise die der
Firma. Falls erforderlich, können Sie eine gesonderte
schriftliche Bestätigung anfordern.

Any views or opinions presented in this email are solely
those of the author and do not necessarily represent those
of the company. If verification is required please request
a hard-copy version.



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PVE-User] qm cli
  2020-11-10 15:49 ` Dietmar Maurer
@ 2020-11-12  8:54   ` Mark Schouten
  2020-11-12  9:24     ` Dominic Jäger
  0 siblings, 1 reply; 5+ messages in thread
From: Mark Schouten @ 2020-11-12  8:54 UTC (permalink / raw)
  To: Proxmox VE user list; +Cc: Alejandro Bonilla, pve-user

On Tue, Nov 10, 2020 at 04:49:21PM +0100, Dietmar Maurer wrote:
> 
> > Whenever I run commands from within one of the nodes, they appear to be targeted to the local system only.
> 
> Yes, this is how it works.


I for one would really love to use qm on a cluster base, instead of
nodes. I currently first need to find out which node a VM runs on, then
log on to that node, and then run the qm commands.

Is it usefull to create a feature-request for this in Bugzilla?

-- 
Mark Schouten     | Tuxis B.V.
KvK: 74698818     | http://www.tuxis.nl/
T: +31 318 200208 | info@tuxis.nl



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PVE-User] qm cli
  2020-11-12  8:54   ` Mark Schouten
@ 2020-11-12  9:24     ` Dominic Jäger
  0 siblings, 0 replies; 5+ messages in thread
From: Dominic Jäger @ 2020-11-12  9:24 UTC (permalink / raw)
  To: Proxmox VE user list

On Thu, Nov 12, 2020 at 09:54:52AM +0100, Mark Schouten wrote:
> I for one would really love to use qm on a cluster base, instead of
> nodes. I currently first need to find out which node a VM runs on, then
> log on to that node, and then run the qm commands.

For qm, yes. For pvesh, no.

Instead of the initially mentioned command
> for i in {123..128}; do qm snapshot $i ready ; done

just do something like
> for i in 100 101; do pvesh create nodes/dev/qemu/$i/snapshot --snapname ready; done
where you replace dev with a node name of your choice. This API path is documented in [0].

qm snapshot is actually one of those commands that is mapped pretty directly to the API [1].

[0] https://pve.proxmox.com/pve-docs/api-viewer/index.html#/nodes/{node}/qemu/{vmid}/snapshot
[1] https://git.proxmox.com/?p=qemu-server.git;a=blob;f=PVE/CLI/qm.pm;h=b3b9251c0ad17598beafc8763b082c6e8ab1e95b;hb=HEAD#l931




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-11-12  9:24 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-10 15:10 [PVE-User] qm cli Alejandro Bonilla
2020-11-10 15:49 ` Dietmar Maurer
2020-11-12  8:54   ` Mark Schouten
2020-11-12  9:24     ` Dominic Jäger
2020-11-10 17:12 ` Steffen Schwebel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal