LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices

Reply
 
Search this Thread
Old 08-13-2010, 05:00 PM   #1
octinum
Member
 
Registered: Mar 2005
Distribution: Slackware 10.1
Posts: 35

Rep: Reputation: 15
virt-manager storage pool on lvm - non-root user problem


I've been experimenting with KVM for some time and I think it's time I dump my Windows partition altogether -well, had to use Windows for some Windows-only programs I have to use for work.
I can build VM guests on raw files etc. What I need is using a logical volume (LV) of a volume group (VG) as target for guest VM.
Here's what I did:
1) Threw a new disk and configured LVM.
2) Created a volume group called lvmdepo. It has a swap partition in it, so i think it works so far.
3) Created an LV called virtwin1 in the VG lvmdepo.
4) Ran Virt-Manager. Connected.
5) Edit --> host details, Storage tab.
6) Click add pool, select "logical: LVM Volume Group", give the name of my existing VG. Forward to selection window.
7) Enter target path as /dev/lvmdepo. Click Finish
8) Had this error: "Could not start storage pool: internal error '/sbin/vgchange -ay lvmdepo' exited with non-zero status 5 and signal 6: WARNING: Running as a non-root user. Functionality may be unavailable.
/var/lock/lvm/V_lvmdepo:aux: open failed: Permission denied. Can't get lock for lvmdepo"

What I understand is that, it tries to issue a vgchange command, then, since Virt-Manager wasn't run as superuser, fails to use the command.

I tried running Virt-manager as superuser (sudo virt-manager) and successfully installed a guest VM on the very same LV. So it works. What I need is a way to make it work for a non-root user.

Thanks for the ideas in advance.

Last edited by octinum; 08-14-2010 at 03:29 AM.
 
Old 08-14-2010, 04:43 AM   #2
r3sistance
Senior Member
 
Registered: Mar 2004
Location: UK
Distribution: CentOS 5.4, Mac OS 10.4 (tiger)
Posts: 1,005

Rep: Reputation: 79
If this is all being down in Virt-Manager you could configure it in sudoers (and use sudo) if you are willing to give the users enough power to do that... that's the simple fix but does mean you need to trust people to begin with, with virt-manager (what if you wanted them having this type of power to start with, you'd probably have to do).
 
Old 08-14-2010, 08:51 AM   #3
octinum
Member
 
Registered: Mar 2005
Distribution: Slackware 10.1
Posts: 35

Original Poster
Rep: Reputation: 15
Thanks for the idea, r3sistance.

Well, giving sudoers excessive authorization wouldn't be a problem -I'm the only primary user of this box and nobody logs into it apart from a few Samba shares.
But what I'm trying to do is getting all my Virtualization on usermode/userspace. Actually, I just lost my network bridge in usermode; I know it will work as superuser for superuser can modify bridges by default but, if Ubuntu has put the Virt-Manager menu entry as a non-root user, why so limited?
Still looking for some way to use Virt-Manager efficiently without going superuser. Maybe will open another topic like "using Virt-manager as non-root user" because now I cant:
- configure the VM to use a LVM partition
- Get my bridge used by VMs
- Can't use virsh etc. with my already configured VMs -which are configured using Virt-manager 0.8.4. virsh simply can't list my VM guests, displays an empty list.

Last edited by octinum; 08-14-2010 at 08:53 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
have a problem while creating virtual machine using virt-manager virtualdaemon Linux - Virtualization and Cloud 2 07-09-2010 08:50 PM
LXer: Hacking libvirt/virsh/virt-manager/virt-install at Xen 4.0 Dom0 on top of Ubunt LXer Syndicated Linux News 0 05-06-2010 02:50 PM
LXer: Virt-install&Virt-manager at Xen 4.0-rc8 (2.6.32.10 pvops) Dom0 on top Ubuntu K LXer Syndicated Linux News 0 03-26-2010 09:41 PM
Debian 5.0 Network-Manager interfers with vnet0 bridging to eth0 for virt-manager coolphive Linux - Newbie 2 05-28-2009 08:51 AM
Red Hat virt-manager problem and some Xen andrei048 Red Hat 0 08-14-2008 06:58 AM


All times are GMT -5. The time now is 09:00 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration