Giter VIP home page Giter VIP logo

Comments (16)

franklupo avatar franklupo commented on May 22, 2024

Hi,
2FA is not supported

from cv4pve-autosnap.

franklupo avatar franklupo commented on May 22, 2024

Hi,
which version use of Proxmox VE?

from cv4pve-autosnap.

oezh avatar oezh commented on May 22, 2024

6.2-10

from cv4pve-autosnap.

franklupo avatar franklupo commented on May 22, 2024

My idea is add new parameter --api--token

from cv4pve-autosnap.

oezh avatar oezh commented on May 22, 2024

Excellent. I'm no developer, but if you need some testing, let me know.

from cv4pve-autosnap.

franklupo avatar franklupo commented on May 22, 2024

Excellent. I'm no developer, but if you need some testing, let me know.

Test the last release https://github.com/Corsinvest/cv4pve-autosnap/releases/tag/v1.9.2
new parameter --api-token

from cv4pve-autosnap.

oezh avatar oezh commented on May 22, 2024

What format should I use --Api-token? The example format in README.md using my own Api Token, gave me the error: "app=XXXXXXX: event not found"

from cv4pve-autosnap.

franklupo avatar franklupo commented on May 22, 2024

Hi,
the format is USER@REALM!TOKENID=UUID
eg "root@pam!app=8a8c1cd4-d373-43f1-b366-05ce4cb8061f"

App is a TokenId example. You can create any name

from cv4pve-autosnap.

oezh avatar oezh commented on May 22, 2024

I created Api Token via web interface for user root, with Token ID = "app" Privilege Separation = "unchecked" and expire = "never"
then I run this command:

cv4pve-autosnap --host=10.0.1.1 --api-token=root@pam!app=85725905-39f9-4510-920c-fff1435cea74 --vmid="100" snap --label='test' --keep=1 --verbose

And I get this error:
-bash: !app=85705905: event not found

is my command wrong?

from cv4pve-autosnap.

franklupo avatar franklupo commented on May 22, 2024

Execute with --debug and attach output

Best regards

from cv4pve-autosnap.

franklupo avatar franklupo commented on May 22, 2024

I created Api Token via web interface for user root, with Token ID = "app" Privilege Separation = "unchecked" and expire = "never"
then I run this command:

cv4pve-autosnap --host=10.0.1.1 --api-token=root@pam!app=85725905-39f9-4510-920c-fff1435cea74 --vmid="100" snap --label='test' --keep=1 --verbose

And I get this error:
-bash: !app=85705905: event not found

is my command wrong?

Quote --api-token value

from cv4pve-autosnap.

oezh avatar oezh commented on May 22, 2024

Here are 3: no quotes, double quotes and single quotes. --debug activated:

`# cv4pve-autosnap --host=10.0.1.1 --api-token=root@pam!app=85705905-39f9-4110-970c-fff0435cea74 --vmid="100" snap --label='test' --keep=1 --debug
-bash: !app=85705905: event not found

cv4pve-autosnap --host=10.0.1.1 --api-token="root@pam!app=85705905-39f9-4110-970c-fff0435cea74" --vmid="100" snap --label='test' --keep=1 --debug

-bash: !app=85705905: event not found

cv4pve-autosnap --host=10.0.1.1 --api-token='root@pam!app=85705905-39f9-4110-970c-fff0435cea74' --vmid="100" snap --label='test' --keep=1 --debug

Specify --help for a list of available options and commands.
Unrecognized option '--api-token=root@pam!app=85705905-39f9-4110-970c-fff0435cea74'`

from cv4pve-autosnap.

oezh avatar oezh commented on May 22, 2024

Ok I got it to run. For some reason, cv4pve-autosnap was not being updated with the downloaded version. Had to replace manually in /usr/bin and /usr/local/bin and now it works. It works with single quotes in --api-token value. Now I'm going to enable back TFA and will let you know. Thanks!!

from cv4pve-autosnap.

oezh avatar oezh commented on May 22, 2024

If using Privilege Separation, which permissions should I enable? I enabled VM.snapshot and path /vms but is not working

from cv4pve-autosnap.

franklupo avatar franklupo commented on May 22, 2024

you have to try from web interface

from cv4pve-autosnap.

cheechmarino avatar cheechmarino commented on May 22, 2024

If using Privilege Separation, which permissions should I enable? I enabled VM.snapshot and path /vms but is not working

Try VM.Audit and VM.Snapshot

from cv4pve-autosnap.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.