[one-users] Some more info

Harsha Buggi Harsha_Buggi at mindtree.com
Mon Aug 10 05:39:59 PDT 2009


I tried creating a new user on the system and also created the same user using 'oneuser create' command. I did not set the ONE_AUTH variable.I then logged into the system with the new user credentials and I am able to start and stop one server.Shoudnt one server be checking for ONE_AUTH variable and thus not allow the new user to perform any action?

My sudoers file entry is:
%cloud ALL=NOPASSWD: ALL
________________________________
From: Harsha Buggi
Sent: Monday, August 10, 2009 5:54 PM
To: users at lists.opennebula.org
Subject: Cannot shutdown VM

Hi,

   I have installed Nebula on an fc8 machine with NIS and NFS support. Using Oneadmin login to create VM's

   I have couple of issues:

1) I am not able to shutdown VM's. By default fc8 installs 'qemu-kvm' and I have created the symbolic link 'kvm' for this file. But after I create the VM's I am not able to perform a shutdown. I tried changing the 'emulator' to 'qemu-kvm' in libvirtdriver.cc file and reinstalling but I am still not able to shutdown the VM. I am able to do this if I install v1.2. I am using the following versions of hypervisor and libvirt
kvm-60
qemu-0.9.0-7
libvirt-0.4.4
libvirt-python-0.4.4

2) I found that libvirt v 0.4.4 does not support user logins apart from root. This seems to have been fixed in the  released recently v0.7.0. This could be the solution to the issue described in
http://lists.opennebula.org/pipermail/users-opennebula.org/2009-August/000626.html
In my case I have modified the one_vmm_kvm.rb file to reflect
create   => "sudo virsh  create" instead of 'create   => "virsh -c qemu:///session<UrlBlockedError.aspx> create"'

3) After creating a new user using 'oneuser create' command and setting the ONE_AUTH variable how do I set VM permissions for this user? Should this user be created on the system too?

Regards,
Harsha



________________________________
http://www.mindtree.com/email/disclaimer.html


More information about the Users mailing list