[SOLVED] Qemu-kvm file sharing Linux host Xp guest problems
Linux - Virtualization and CloudThis 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
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.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Qemu-kvm file sharing Linux host Xp guest problems
Hi.
I use a Slack64 13.0 as host and Xp "pro" as guest.
I tried many ways to share /media folder, in order to get instant access to usb keys, but i always failed.
1- Using the -smb switch, my 2 Xp crashes randomly.
2- Using a real samba share, users can't write in /media/usbkey because it's rw-r-r (don't want Xp users to enter any login/password). By the way i found impossible to change to rw-rw-rw /media/* . If someone knows how i can achieve this i'll be happy.
3- Using a ftp, firefox can read the share, but filezilla nor ftp included in Xp can list the files :/ weird.
4- Don't want to use nfs, because one of my Xp is fat32 formated.
5- Don't want to use the direct usb connect from qemu, because it must be simple for users.
I spent days before realizing my only hope is to post my question here.
Using a real samba share, users can't write in /media/usbkey because it's rw-r-r (don't want Xp users to enter any login/password). By the way i found impossible to change to rw-rw-rw /media/* . If someone knows how i can achieve this i'll be happy.
Something with "force create mode" or "force directory mode" perhaps? See the following:
I use a Slack64 13.0 as host and Xp "pro" as guest.
I tried many ways to share /media folder, in order to get instant access to usb keys, but i always failed.
1- Using the -smb switch, my 2 Xp crashes randomly.
2- Using a real samba share, users can't write in /media/usbkey because it's rw-r-r (don't want Xp users to enter any login/password). By the way i found impossible to change to rw-rw-rw /media/* . If someone knows how i can achieve this i'll be happy.
3- Using a ftp, firefox can read the share, but filezilla nor ftp included in Xp can list the files :/ weird.
4- Don't want to use nfs, because one of my Xp is fat32 formated.
5- Don't want to use the direct usb connect from qemu, because it must be simple for users.
Do the Windows users have accounts on the Slackware system? As far as I know users must be members of the plugdev group in order to access removable media. Usually you assign a user to this group when running the adduser script. I imagine that unless the Windows guests have an account on the Slackware server, and unless they are members of the plugdev group, they won't be able to access the USB memory stick, no matter what permissions you grant guest users in smb.conf. The underlying Linux permissions need to be fixed first, and to my mind that means any user wanting to access removable media needs to be a member of the plugdev group, which means he also needs to be a user on the Slackware server. Unfortunately for you it probably also means your Windows users will need to authenticate to the Samba server with a username and password. I could be completely wrong of course but this seems to me the problem.
I presume you also have writeable = yes under your [media] section in your smb.conf?
Don't forget as well that directories need the executable bit set - your rw-rw-rw- would not allow users to drill down through folders on the removable media. It would need to be rwxrwxrwx I think.
Well, the XP users have to enter a password to logon to XP, so that can almost certainly be automatically passed to the samba network share for authentication without need for additional typing. If so, there shouldn't be a problem adding them as users to the Slackware system as members of plugdev..
--------------EDIT :
Seems umounting doesn't work properly.
I'm playing around with two systems and i'm a bit confused by now. Anyway this is a huge step.
Last edited by Linux.tar.gz; 11-18-2010 at 11:16 AM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.