LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 01-16-2012, 11:37 AM   #1
Mark_667
Member
 
Registered: Aug 2005
Location: Manchester, England
Distribution: Ubuntu 14.10
Posts: 271

Rep: Reputation: 25
Unable to add Storage Pool in Virtual Machine Management GUI tool


I'm having some difficulty with the Virtual Machine Management GUI tool on SLES 11 SP1, the storage pool pointed to a location under /var by default. I couldn't see how to change it so I deleted it and now get the message 'Libvirt connection does not support storage management'. The Virtual Networks and Network Interfaces tabs give similar messages. When I try to add a Storage Pool I get:
Quote:
cannot parse QEMU version number in 'QEMU emulator version 0.13.91
 
Old 01-16-2012, 06:07 PM   #2
saifelyzal
LQ Newbie
 
Registered: Jun 2011
Distribution: Redhat
Posts: 28

Rep: Reputation: Disabled
try to create your storage under /var/lib/libvirt/images or just under /var/lib/libvirt/ because if selinux is enabled on enforce mode is going to preventing you from create storage on other dir or else you can change the boolean of the dir
 
Old 01-17-2012, 05:18 AM   #3
Mark_667
Member
 
Registered: Aug 2005
Location: Manchester, England
Distribution: Ubuntu 14.10
Posts: 271

Original Poster
Rep: Reputation: 25
/var is on the root partition and there isn't enough space for the disk images on there-any ideas?
 
Old 01-17-2012, 08:16 AM   #4
saifelyzal
LQ Newbie
 
Registered: Jun 2011
Distribution: Redhat
Posts: 28

Rep: Reputation: Disabled
you can create on any dir and label that dir with virt_image_t boolean type.
and you can also use virsh pool-edit default to edit your default storage pool and edit the xml file under path section and put your new dir there
 
Old 01-17-2012, 09:53 AM   #5
Mark_667
Member
 
Registered: Aug 2005
Location: Manchester, England
Distribution: Ubuntu 14.10
Posts: 271

Original Poster
Rep: Reputation: 25
Thanks for the tip, it put me onto this:
Code:
virsh pool-dumpxml default > pool.xml
edit pool.xml # with new name and path
virsh pool-create pool.xml
virsh pool-refresh name
http://wiki.libvirt.org/page/Tips#Ad...e_storage_pool
Unfortunately they don't seem to be very comprehensive-they don't mention that you need to be root to make the changes or what to do with the UUID in the XML file. Leaving it unmodified gives an error saying that the storage pool already exists. Modifying it slightly gives another error:
Quote:
error: cannot open volume '/home/me/.gvfs'
Even when running the command after suing to root.
 
Old 01-17-2012, 10:03 AM   #6
saifelyzal
LQ Newbie
 
Registered: Jun 2011
Distribution: Redhat
Posts: 28

Rep: Reputation: Disabled
did you change the uuid?
 
Old 01-17-2012, 10:18 AM   #7
Mark_667
Member
 
Registered: Aug 2005
Location: Manchester, England
Distribution: Ubuntu 14.10
Posts: 271

Original Poster
Rep: Reputation: 25
Yes, I changed the last character in the UUID from a d to an e, don't know what impact that'll have but it got me past the immediate problem. The .gvfsdirectory has dr-x----- permissions with me as the owner but I can't modify the permissions and when I try to rename it it says that the device or resource is busy. I'm currently booted into Xen so maybe that's using it, although there's nothing in the directory itself?

Last edited by Mark_667; 01-17-2012 at 10:19 AM. Reason: typo
 
Old 01-17-2012, 12:35 PM   #8
Mark_667
Member
 
Registered: Aug 2005
Location: Manchester, England
Distribution: Ubuntu 14.10
Posts: 271

Original Poster
Rep: Reputation: 25
Just rebooted into the default kernel using KVM and got exactly the same issue, does anyone have any advice?
 
Old 01-17-2012, 01:10 PM   #9
saifelyzal
LQ Newbie
 
Registered: Jun 2011
Distribution: Redhat
Posts: 28

Rep: Reputation: Disabled
work around
you can create link from home dir
#mkdir vm
ln -s vm /var/lib/libvirt/image/vm
and then go virt-manager, and added as new storage pool that should work
 
Old 01-19-2012, 05:15 AM   #10
Mark_667
Member
 
Registered: Aug 2005
Location: Manchester, England
Distribution: Ubuntu 14.10
Posts: 271

Original Poster
Rep: Reputation: 25
I did the following:

Code:
virsh pool-dumpxml default > pool.xml
edited pool.xml # with new name and path
fusermount -u ~/.gvfs
virsh pool-create pool.xml
virsh pool-refresh name
I successfully deleted the directory and created a new pool but for some reason I don't see any difference in Virtual Machine Manager. What else do I have to do to be able to see the pool?
 
Old 01-20-2012, 09:38 AM   #11
Mark_667
Member
 
Registered: Aug 2005
Location: Manchester, England
Distribution: Ubuntu 14.10
Posts: 271

Original Poster
Rep: Reputation: 25
I'm still getting
Quote:
'Libvirt connection does not support storage management'
after uninstalling and reinstalling QEMU and KVM and still get
Quote:
cannot parse QEMU version number in 'QEMU emulator version 0.13.91
when trying to create a new pool through the wizard. This is really holding me up and any help would be really appreciated.
 
  


Reply

Tags
qemu


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
LXer: Storage Management with an LVM GUI LXer Syndicated Linux News 0 07-06-2010 11:42 PM
unable to auto mount 'shared folder' iin Suse 11.2 virtual machine using Virtual Box marvinudy Linux - Virtualization and Cloud 1 02-03-2010 03:29 PM
MySQL Management GUI Tool for Linux kwikness Linux - Software 5 11-25-2009 12:53 AM
Saving to persistent storage when running incognito in virtual machine Sylvester Incognito 1 07-04-2009 06:51 AM
Any Process and Memory Management GUI Tool? your_shadow03 Linux - Newbie 4 02-03-2009 05:36 AM


All times are GMT -5. The time now is 09:33 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