Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this 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.
I upgraded vmware server from 1.0.7 to 2.0 and I have problems with the usb devices.
I am running Centos 5.2 x86_64 as host and I have a Windows XP Pro virtual machine as guest, which was created in vmware server 1.0.4. The upgrade went fine so far, but I am not able to access the usb devices in the guest except if I am logged in as root in the host.
I have added the last two lines but even with them the error is still there: "remote usb device error: remote device disconnected: an error occured while sending data".
Of course I can launch the browser as root and run vmware, but if there is another solution I would prefer it.
Should be in /etc/security/console.perms or /etc/security/console.perms.d/*. If none, please post relevant loglines from both VMware daemon process and VMware client.
I looked in /etc/security/console.perms and in the folder /etc/security/console.perms.d but I could not find any references to usb.
Now I am assuming that the log file for the vmware daemon is in /var/log/vmware/hostd-8.log which I have uploaded at dralexpe.rockin.net/hostd-8.log because it's too long to post here. Then the client log file I am assuming is in /var/lib/vmware/Virtual Machines/Windows XP Professional/vmware.log (Windows XP Professional is the name of my virtual machine) which I have uploaded at dralexpe.rockin.net/vmware.log because again it's too long.
There's some things going on in the logs, but AFAIK the guest log shows it recognises USB (as evidenced by the Memorex entry) OK I think. If you say in your OP "logged in as root", devices get chowned to the user logging into the console, still an access rights issue AFAIK. Problem is I don't run GSX and I haven't been able to reproduce this with VMware-server-1.0.7-108231. If you can't fix perms (and I do wonder which devices need chowning) and the VMware fora don't show workarounds or fixes, then maybe roll back to 1.0.7 for the time being?..
I tried to chown /var/lib/vmware/Virtual Machines/... from root to a regular user, but I still cannot get the USB drive to be seen. I am running the free Vmware server 2.0, not GSX and this issue was not present in 1.0.7.
I posted this question in the vmware forums without success.
I tried to chown /var/lib/vmware/Virtual Machines/... from root to a regular user, but I still cannot get the USB drive to be seen. I am running the free Vmware server 2.0, not GSX and this issue was not present in 1.0.7.
VMware relies on the host system to offer access to devices, so that'll be those in /dev. Whatever you got in /var/lib/vmware/Virtual Machines/... will be configs and virtual disks and stuff, not devices. When I want to allow a mcrsft host access to the hosts USB devices I have to explicitly go through the menu to enable the device so the guest "sees" it. Can you do that or doesn't that work or does it throw an error? Did downgrading to 1.0.7 work?
When I boot the guest OS, at the top of the console I select "Devices". When I plug an USB stick it appears disconnected; if I select "Connect" and I haven't started the browser in which I am running VMware as root, then after a while I get the error message: "Remote USB device error: Remote device disconnected: an error occured while sending data". I am not sure what menu you refer to, I am guessing is the one at the top of the VMware console which shows "Devices" on it.
I haven't downgraded to VMware 1.0.7 yet. I saw that I can login the host as a regular user, then if I start a console and su - as root and start the browser from there it works. I am willing to accept this inconvenience as long as it's relatively safe.
When I attach the USB stick to the host it is mounted as /dev/scd1 (so if I understand correctly this is as SCSI) into the mount point /media/TravelDrive. I looked into /dev and I see there are some character devices of the form usbdev(1.1 or 2.1 or 3.1 or 4.1)_ep(00 or 81) which are owned by root and can be rw only by root.
I have also removed the last two lines in the /etc/fstab shown in my first post because they were not helping at all.
When I boot the guest OS (..) , then after a while I get the error message: "Remote USB device error: Remote device disconnected: an error occured while sending data".
Unfortunately I'm not able to produce those results but then again I'm not running x86_64 nor VMware server 2.0...
Quote:
Originally Posted by dralexpe
I saw that I can login the host as a regular user, then if I start a console and su - as root and start the browser from there it works. I am willing to accept this inconvenience as long as it's relatively safe.
Could set it up running 'vmware' browser commandline as a Sudo NOPASSWD rule for that particular user. Of course that doesn't mean nothing in terms of vulnerabilities and running things as root account user. If this is a production machine I'd rather downgrade to tried-n-true 1.0.7 or press VMware and wait for a fix. If you're continuing running things as root account user I'd beef up hardening and auditing (should be done regardless IMHO).
Quote:
Originally Posted by dralexpe
When I attach the USB stick to the host it is mounted as /dev/scd1 (so if I understand correctly this is as SCSI) into the mount point /media/TravelDrive. I looked into /dev and I see there are some character devices of the form usbdev(1.1 or 2.1 or 3.1 or 4.1)_ep(00 or 81) which are owned by root and can be rw only by root.
That's the point. In /etc/security/console.perms and /etc/security/console.perms.d/* you'll find rules that allow the system to temporarily grant access rights on /dev devices to console logins. Things in /media are governed by Udev: see rules in /etc/udev/rules.d/*. Looking around the VMware forum for your error message brings up talk of chmodding /dev/bus/usb devices and this: http://www.linuxquestions.org/questi...13#post3227413 which seems to have helped some people. See if it works for you? BTW, the "usbfs" lines I read elsewhere are
Hello, I had the same problems , Whenmounting an usb device device error:
Actually it's a small problem. As from the beginning a thought it must be some where wrong rights to acces the device.
And yes I spend almost 2 day's in finding this really simple solution.
First to know is that vmware is running as the user you give at install time, Which of course is wonderfull since it's using your id (if it's that you give) and passwords which are crypted on you're harddisk using pam. But yes the basic device procbususb for the usbfs file systems are mounted with only read/write acces to the device owner (which is root).
The group has only read acces. To change this You can use the none ... devmode=664 as mentioned previously into fstap but this wil give you an error at boot time.
But For debian which I use do this eighter straight by at boot time for the device procbususb. Debian 2.6.26-1 amd64kernel (lenny)
Change line number 75 in the file mountkernfs.sh located in map /etc/init.d
from:
domount usbfs usbdevfs /proc/bus/usb usbfs -onodev,noexec,nosuid
into:
domount usbfs usbdevfs /proc/bus/usb usbfs -onodev,noexec,nosuid,devmode=664
If you self are also member of root group, you won't have any problem anymore whit all fs type like usb devices like usbsticks,harddisks,ipod's,phones and soone ...
Do not forget to reboot after the change is done. Or maybe just a reload of mountkernfs.sh before you plug any usb device in.
I was able to use the USB port in the guest only if I started the browser/WebUI as root in the host. Then the USB port is available in the guest. I cloned the VM and upgraded the hardware to version 7 but I am getting the same behavior.
I wanted to be able to run the browser/WebUI in the host as non-admin, but then the USB port is not available in the guest.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.