How to let others setup there own OS?

Joseph Chrzempiec

Well-Known Member
Jun 9, 2016
142
8
58
45
Hello I'm setting up a server for two of my brothers each one will have there own OS on it. The problem is How can i let them upload there own os? Is there a way to give them access to upload there own. I don't know how hosting companies do it like in a VPS or Dedicated server. Is there a way in proxmox? I searched around and everything i found was for just setting up VM internally.


Joseph
 
I'm setting up a server for two of my brothers each one will have there own OS on it.
You mean one Proxmox VE host with two virtual machines where each virtual machine has an operating system that your brothers can choose?

They could upload an iso image of their choice to a storage and use it when creating their VM. Did you already have a look at the chapter about User Management in Proxmox VE?
 
Hello Dominic. What I'm trying to do is when give a Vm to each of my two brothers and let them install there own OS. Yes i can put the iso images of different Operating systems on the server that is not a problem. But say incase they want to wipe it out and put a Different OS then what they have now. I would like to be able to give them that access to do that. Without giving complete access to everything. Because a lot of time I'm not here and on the road i can not keep remoting in and wiping there VM for them.

So i would love to give them access to clear there own and start again.


Joseph
 
Hi,

with the user Management of Proxmox VE you can give a user admin rights for exactly one VM. You can go to Datacenter -> Users and add a user for each brother. Then Datacenter -> Permissions and give each user/brother two User (or Group) Permissions.
  1. path to a storage and as role PVEDatastoreUser
  2. path to a VM and as role PVEVMAdmin
Please check the documentation linked above to learn more about the exact permissions of the available roles.

If you then execute cat /etc/pve/user.cfg you should see something like this:
Code:
user:brother1@pve:1:0:Brother:::::

acl:1:/storage/iso:brother1@pve:PVEDatastoreUser:
acl:1:/vms/103:brother1@pve:PVEVMAdmin:
 
Hello i was able to setup a user i put for users i put for test user1 and user2 i was able to do that but at first i didn't see how to add a password but i okay it and it took. so i saw Password button i select the name then i clicked password next to the TFA button and then i put in a password and repeat the same password but i got a error message saying change password failed: user 'user1' does not exist (500). I was also able to go into groups and add the user and pointed him to a VM and the role PVEDatastoreUser. that took with no problem

So I'm not sure what to do about the password problem. Also iwas wondering do i give them the normal ip address with the same port to login, Or how does that work so they can gain access?

P.s. Thank you for helping me with this. And thank everyone else for the help as well. It's been a rough trip trying to figure this out.


Joseph
 
I assume you used "Linux PAM standard authentication" as authentication realm. You can change this to "Proxmox VE authentication server" unless your brothers need SSH access as well.
 
Hello i did that and now i was able to assign a a pssword anf give it premissions to the VM. Then i logged out and tried to login with that user name and password. That worked however i was not able to see the VM at all.


Joseph
 
hi,

Hello i did that and now i was able to assign a a pssword anf give it premissions to the VM. Then i logged out and tried to login with that user name and password. That worked however i was not able to see the VM at all.

you have to give the permissions on the correct paths, like this:

Datacenter -> Permissions -> Add -> User Permission

Path: /storage/YOURSTORAGENAME
User: USERNAME
Role: PVEDataStoreUser

and for the VM:

Path: /vms/VMID
User: USERNAME
Role: PVEVMAdmin

afterwards when you log in with USERNAME you should see both the storage and the VM in the menu on the left or in the summary page
 
  • Like
Reactions: Dominic
Hello this is what i have inpremissions.

Storage
storage/local
storage/local-lvm
/vms
vms/100
vms/101
vms/102

So i put vms/101
the user i would like to give access which is test1
and i gave it PVEDatastoreAdmin
There is a checkmark in the popup box that say propagate that is check. I'm not sure if that is correct that automatically is checked when the popup box came in.

And I'm not able to see the vm if i login with that user account.


Edit: I didn't see the log area because it is closed but when i saw it i get this error. TASK ERROR: command 'apt-get update' failed: exit code 100
 
Hi!

You have to add 2 permissions for each user. That means you have to click Add twice per user. You must insert what @oguz mentioned in #8. It is not useful to mix it up and give PVEDatastoreAdmin to vms/101.
 
Last edited:
In the GUI the permissions should look like this (but instead of "iso" you should set the name where your VMs are stored on):
permissions.png

Does that help you?
 
Hello Dominic Yes thank you. I missed a step and didn't even see it. I have corrected it now and it is working again thank you.


Joseph
 
  • Like
Reactions: Dominic
This is old topic but I exactly need this and I have already done it. Now user only see the storage assigned and VM. But I can't see any way to let user reinstall / rebuild this VM. How can I achieve that.
 
This is old topic but I exactly need this and I have already done it. Now user only see the storage assigned and VM. But I can't see any way to let user reinstall / rebuild this VM. How can I achieve that.
You need to have the permission to access a storage with the iso files and then you can mount the iso to the VM. After that the user can just boot from the iso and install it.
 

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 yours easily in our online shop.

Buy now!