LinuxQuestions.org
Review your favorite Linux distribution.
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 07-25-2013, 12:10 AM   #1
Usalabs
Member
 
Registered: Jan 2004
Distribution: Ubuntu Lucid (LTS)
Posts: 108

Rep: Reputation: 15
How do I give libvirt search permissions on an external drive?


I'm running Ubuntu 12.04 x64, and installed KVM (libvirt), along with the GUI (virtual machine manager), I would rather use KVM than using a software VM, such as VMware or VBox, because it utilizes the CPU VM flag, so, after installing virtual machine manager, I added myself to the lbvirt group to be able to create VM domains, now here's the problem, to save space (even though I have a 1TB HDD) I have all ISO's on an external USB drive, but when I try to create a new VM using one of those ISO's, libvirt gives me an error that it doesn't have search permissions on that drive and would I like to correct it, to which I click 'Yes' and then it says unable to change permissions, access denied.

Now, bearing in mind, the external HDD is also Windoze accessible, as it contains windows backups.

How do I give libvirt search permissions on that external HDD?
 
Old 07-25-2013, 02:14 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371
Am I correct in assuming that the HDD in question has a Windows File-System on it (ntfs/fat or alike)?

If that is the case then I don't think it is possible.

libvirt changes the permissions, owner and group of the file, which it cannot do on a none unix/linux file-system (windows file-systems work differently).
 
Old 07-25-2013, 06:23 AM   #3
Usalabs
Member
 
Registered: Jan 2004
Distribution: Ubuntu Lucid (LTS)
Posts: 108

Original Poster
Rep: Reputation: 15
Yes, the USB HDD is NTFS.

So basically unless I copy all the files to another drive and format the USB to a Linux format such as EXT4, the only other way would be to copy a wanted ISO to Ubuntu then libvrt can change that ISO group and user to its own permissions, so that I can create the VM domain, then delete the ISO as root, because the permissions would have been changed, and a user account will not be able to delete it.
 
Old 07-25-2013, 09:26 AM   #4
gradinaruvasile
Member
 
Registered: Apr 2010
Location: Cluj, Romania
Distribution: Debian Testing
Posts: 510

Rep: Reputation: 102Reputation: 102
Quote:
Originally Posted by druuna View Post
Am I correct in assuming that the HDD in question has a Windows File-System on it (ntfs/fat or alike)?

If that is the case then I don't think it is possible.

libvirt changes the permissions, owner and group of the file, which it cannot do on a none unix/linux file-system (windows file-systems work differently).
This option can be deactivated in /etc/libvirt/qemu.conf - set "dynamic_ownership = 0". But in this case you have to make absolutely sure that the file in question can be changed by the user libvirt uses to run vms through (its not the same as the logged in user!).

NTFS is another matter since it is used via the ntfs-3g wrapper and the Linux ownership flags may not apply (hence the failed attempts), but if this option is turned off and the partition in question is indeed writable, it should work.
Another issue might be disk access speeds in the VM since KVM has the virtio drivers designed to be used with standard Linux formats so it might suffer a performance penalty.

Quote:
Originally Posted by Usalabs
I would rather use KVM than using a software VM, such as VMware or VBox, because it utilizes the CPU VM flag
What? EVERY virtualization software uses the "CPU VM flag". They CAN do without it (=if the CPU isnt capable) - and this is a plus versus KVM that cannot work without the amd-v/intel vt-x extension. Although recently KVM was included in QEMU altogether and Qemu can do software virtualization.

Last edited by gradinaruvasile; 07-25-2013 at 01:32 PM.
 
1 members found this post helpful.
  


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
[SOLVED] permissions on external hard drive. poly_s Linux - Newbie 2 11-09-2011 04:02 PM
Permissions for external drive kameshkar Linux - Software 1 03-31-2010 08:47 AM
External Hard Drive Permissions Eric952x Linux - General 2 11-24-2007 08:26 PM
External Hard Drive does not give me the permission to write erockallstar Linux - Newbie 22 01-29-2007 03:40 PM
external hard drive permissions djljjm Linux - Hardware 12 04-06-2005 01:23 PM


All times are GMT -5. The time now is 04:00 PM.

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