Accessing USB Pen drive on Virtual Machine

Hi friends,

I have Opensuse configured on my Laptop. I have recently installed a virtual Machine (VM Server 2.0).

I have one problem. Would be glad if anyone here helps me about it.

I didn’t create a new virtual drive. I already had the virtual drive required, which contained MySQL databases. I used that *.vmdk virtual drive.

But I don’t know how to access the USB Pen drive when connected to the Laptop. and Virtual Machine.

It is a different kind of linux.

When I issue **cat /etc/issue **I get the following in that VM.

**
Tomcat Appliance 1.0
Powered by rPath Linux

etc etc…**

I can access the USB Pen drive on the Host (main) Laptop which contains Opensuse. I just need to do cd /media/disk

when I do cd / on the VM I get the following…

**cd /

ls

bin data etc initrd lost+found mnt root sbin media bin dev etc etc…
**

The USB pen drive is actually connected to VM. Because when I click the USB icon on main VMWARE webaccess interface page I get the message on VM …

scsi 3:0:0:0 : Direct-Access Generic Multi Card 1.0
0 PQ:0 ANSI :0 CCS
sd 3:0:0:0 : attached scsi removable disk sdb

How to access the Pen drive from VM. I think It already shows it has been connected.

I am a complete newbie who is only learning this Opensuse and VM through this vmdk file given by my friend. So if anyone here knows about this please tell what I need to do to access this USB drive on VM and not just on Main host OS.

I can’t quite visualise what’s going on for you. But here are a few things to check that relate to usb.

Check that you have auto set in the line for usbfs in fstab, the file system table, located in directory /etc. You can check it with this command in a console/terminal window: cat /etc/fstab | grep usbfs. Here’s what you shoud see as a reply in the window:

john@suse111:~> cat /etc/fstab | grep usbfs
usbfs                /proc/bus/usb        usbfs      auto                0 0
john@suse111:~> 

Secondly, locate this file where the vm files are stored: machine_name.vmx (where machine_name is your vm’s name). Make sure it contains this line:

usb.present = "TRUE"

I think you saw this in the tutorial, but I mention it in case you missed it.