Unable to add Storage Pool in Virtual Machine Management GUI tool
Linux - VirtualizationThis forum is for the discussion of all topics relating to Linux Virtualization. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
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
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
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
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.
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 09:19 AM.
Reason: typo
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
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?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.