Jump to content

Dargor

Members
  • Posts

    3
  • Joined

  • Last visited

Posts posted by Dargor

  1. Hello all, i hope this is the right place to post this.

    So before 6.9 beta 25 i was running this script at startup :
    #!/bin/bash
    chown "username":users /etc/ssh/"username".pubkeys
    echo ""username" ALL=(root) NOPASSWD: /usr/sbin/virsh domstate *, /usr/sbin/virsh start *, /usr/sbin/virsh shutdown *">>/etc/sudoers.d/vmc
    chmod 0440 /etc/sudoers.d/vmc
    mkdir /home/"username"
    this allowed me to run the virsh commands as the "username" user.

    After updating to 6.9 beta 25 i noticed that it no longer works, in an attempt to debug this i tried this command:

    sudo -u "username" virsh domstate "vmname" and i get the following error:
    error: failed to connect to the hypervisor
    error: Cannot create user runtime directory '/.cache/libvirt': Permission denied

    is there something i can do to be able to run this command as this user again?

    Thank you in advance for your time and sorry if this is not the correct place to post 

  2. Hey, thx for this great plugin! I have usb ports on separate groups but they have same pci.id. With your plugin i could easily passthrough one! Now i went to 6.9 because of the core temps update. Any chance you will update to be compatible with new unraid version?

×
×
  • Create New...