Personal computing discussed

Moderators: renee, SecretSquirrel, notfred

 
SecretSquirrel
Minister of Gerbil Affairs
Topic Author
Posts: 2726
Joined: Tue Jan 01, 2002 7:00 pm
Location: North DFW suburb...
Contact:

Virtualization venting....

Sat Mar 09, 2013 11:04 pm

This is just a weekend venting session...

Why can't I find the features I need in a single solution? I have a virtualization host I use at home. I have a number of deveopment tools that still require Windows (AVR Studio, IAR MSP430 Compiler, etc). I use a Windows XP VM for each of these tools. For a long time I was hosting these VMs on my workstation. This worked well except that I could really only run one or two at any give time. Hence the move to the VM host. It's an 8 core system with 48GB of memory and handles the job well.

Now for my rant... USB... specifically remote USB sharing. VirtualBox has an RDP client that support USB redirection that works... sometimes. It recognizes my MSP430 programmers about half the time. I haven't gotten it to work with any iPod yet. The USB mass storage device for the iPod doesn't seem to work for some reason.

Enter VMWare. It's the alternative and using the VMWare remote console works great. USB devices work and everything is good -- except the VMWare remote console doesn't support sound on the remote system. For that, you have to use RDP and are back to the USB issue.

I'm digging in the the USB issues with the VirtualBox rdp client and hoping I can solve it. Still, why is it that everything has to be missing one important feature? Bleh.

--SS
 
just brew it!
Administrator
Posts: 54500
Joined: Tue Aug 20, 2002 10:51 pm
Location: Somewhere, having a beer

Re: Virtualization venting....

Sun Mar 10, 2013 3:01 pm

Something that might be worth a look: Enable hardware I/O virtualization and pass a USB controller into the VM natively. I have not tried this personally, but it should be possible provided you have a motherboard and CPU that support VT-d/IOMMU.
Nostalgia isn't what it used to be.
 
SecretSquirrel
Minister of Gerbil Affairs
Topic Author
Posts: 2726
Joined: Tue Jan 01, 2002 7:00 pm
Location: North DFW suburb...
Contact:

Re: Virtualization venting....

Sun Mar 10, 2013 4:10 pm

just brew it! wrote:
Something that might be worth a look: Enable hardware I/O virtualization and pass a USB controller into the VM natively. I have not tried this personally, but it should be possible provided you have a motherboard and CPU that support VT-d/IOMMU.


Things work fine if the VM is on the same system that the USB device is plugged into. It's only when I'm trying to do remote USB that things are flakey.

--SS
 
SecretSquirrel
Minister of Gerbil Affairs
Topic Author
Posts: 2726
Joined: Tue Jan 01, 2002 7:00 pm
Location: North DFW suburb...
Contact:

Re: Virtualization venting....

Mon Mar 11, 2013 9:02 am

Well, I did figure out what was causing the problem with the VirtualBox remote client last night. Apparently there is a collision between the remote client trying to access the mass storage part of the iPod and the host OS identifying it as a storage device and trying to read it. Now I just have to figure out how to prevent that collision.

--SS
 
just brew it!
Administrator
Posts: 54500
Joined: Tue Aug 20, 2002 10:51 pm
Location: Somewhere, having a beer

Re: Virtualization venting....

Mon Mar 11, 2013 9:26 am

Is it a problem with the auto-mount behavior of the host OS? If so, that should be relatively easy to disable.
Nostalgia isn't what it used to be.
 
SecretSquirrel
Minister of Gerbil Affairs
Topic Author
Posts: 2726
Joined: Tue Jan 01, 2002 7:00 pm
Location: North DFW suburb...
Contact:

Re: Virtualization venting....

Mon Mar 11, 2013 2:46 pm

just brew it! wrote:
Is it a problem with the auto-mount behavior of the host OS? If so, that should be relatively easy to disable.


Perhaps. This would be a Kubuntu 12.04 system. It doesn't fully mount USB mass storage at insertion, but it does query it to present it as available for mounting. This is what shows up in the kernel logs.

Mar 10 23:27:36 ecthelion kernel: [783742.869633] usb 3-1.2.7: new full-speed USB device number 13 using uhci_hcd
Mar 10 23:27:37 ecthelion kernel: [783742.973611] usb 3-1.2.7: not running at top speed; connect to a high speed hub
Mar 10 23:27:37 ecthelion kernel: [783743.025722] scsi11 : usb-storage 3-1.2.7:1.0
Mar 10 23:27:38 ecthelion kernel: [783744.029487] scsi 11:0:0:0: Direct-Access     Apple    iPod             1.70 PQ: 0 ANSI: 0
Mar 10 23:27:38 ecthelion kernel: [783744.030291] sd 11:0:0:0: Attached scsi generic sg4 type 0
Mar 10 23:27:40 ecthelion kernel: [783744.045473] sd 11:0:0:0: [sdd] Spinning up disk....ready
Mar 10 23:27:40 ecthelion kernel: [783746.257162] sd 11:0:0:0: [sdd] 1926080 4096-byte logical blocks: (7.88 GB/7.34 GiB)
Mar 10 23:27:40 ecthelion kernel: [783746.260155] sd 11:0:0:0: [sdd] Write Protect is off
Mar 10 23:27:40 ecthelion kernel: [783746.260158] sd 11:0:0:0: [sdd] Mode Sense: 68 00 00 08
Mar 10 23:27:40 ecthelion kernel: [783746.263169] sd 11:0:0:0: [sdd] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
Mar 10 23:27:40 ecthelion kernel: [783746.272171] sd 11:0:0:0: [sdd] 1926080 4096-byte logical blocks: (7.88 GB/7.34 GiB)
Mar 10 23:27:40 ecthelion kernel: [783746.284180]  sdd: sdd1
Mar 10 23:27:40 ecthelion kernel: [783746.293172] sd 11:0:0:0: [sdd] 1926080 4096-byte logical blocks: (7.88 GB/7.34 GiB)
Mar 10 23:27:40 ecthelion kernel: [783746.303165] sd 11:0:0:0: [sdd] Attached SCSI removable disk
Mar 10 23:27:42 ecthelion kernel: [783748.232328] usb 3-1.2.7: usbfs: interface 0 claimed by usb-storage while 'rdesktop-vrdp' sets config #1
Mar 10 23:27:42 ecthelion kernel: [783748.276443] FAT-fs (sdd1): FAT read failed (blocknr 128)
Mar 10 23:27:42 ecthelion kernel: [783748.276476] FAT-fs (sdd1): Directory bread(block 984) failed
Mar 10 23:27:42 ecthelion kernel: [783748.276527] FAT-fs (sdd1): Directory bread(block 984) failed
Mar 10 23:27:42 ecthelion kernel: [783748.276544] FAT-fs (sdd1): Directory bread(block 984) failed
Mar 10 23:27:42 ecthelion kernel: [783748.276619] FAT-fs (sdd1): Directory bread(block 984) failed
Mar 10 23:27:42 ecthelion kernel: [783748.276678] FAT-fs (sdd1): Directory bread(block 976) failed


I'm going to try the usb-storage quirks option when I get home and see if I can blacklist it that way.

--SS
 
just brew it!
Administrator
Posts: 54500
Joined: Tue Aug 20, 2002 10:51 pm
Location: Somewhere, having a beer

Re: Virtualization venting....

Mon Mar 11, 2013 3:30 pm

You may need to comment out a udev rule to disable the behavior.

Is KDE running on the host? If so, removing the user that runs KDE from the plugdev group is also worth a try.
Nostalgia isn't what it used to be.
 
SecretSquirrel
Minister of Gerbil Affairs
Topic Author
Posts: 2726
Joined: Tue Jan 01, 2002 7:00 pm
Location: North DFW suburb...
Contact:

Re: Virtualization venting....

Tue Mar 12, 2013 10:33 am

just brew it! wrote:
You may need to comment out a udev rule to disable the behavior.

Is KDE running on the host? If so, removing the user that runs KDE from the plugdev group is also worth a try.


Other than that killing functionality for normal USB storage...

*bleh* This shouldn't be that hard. :roll: This is the kind of thing that annoyed me about Windows and in this case, I think windows may actually do a better job as I can simply instruct it to not load a driver of a device and leave it that way.

I did get closer last night. Using a normal USB flash drive I could get the same behavior and I was able to get it to work by blacklisting the usb-storage module for that device. The iPod behaved a bit different but still didn't work though I'm not sure it wasn't a driver issue on the VM OS side.

--SS
 
just brew it!
Administrator
Posts: 54500
Joined: Tue Aug 20, 2002 10:51 pm
Location: Somewhere, having a beer

Re: Virtualization venting....

Tue Mar 12, 2013 10:44 am

SecretSquirrel wrote:
Other than that killing functionality for normal USB storage...

Well, you did indicate that you are using a separate VM host. I assumed (incorrectly, I guess) that your other USB usage would be on the client side.

Maybe it's time to beef up the workstation so that it can run the VMs directly?
Nostalgia isn't what it used to be.
 
SecretSquirrel
Minister of Gerbil Affairs
Topic Author
Posts: 2726
Joined: Tue Jan 01, 2002 7:00 pm
Location: North DFW suburb...
Contact:

Re: Virtualization venting....

Wed Mar 13, 2013 7:39 am

just brew it! wrote:
SecretSquirrel wrote:
Other than that killing functionality for normal USB storage...

Well, you did indicate that you are using a separate VM host. I assumed (incorrectly, I guess) that your other USB usage would be on the client side.

Maybe it's time to beef up the workstation so that it can run the VMs directly?


Ah, there is some confusion here. Yes, I am using a VM host, however the USB access is local to my workstation and is being redirected to the VM over RDP. I plug in my AVR Dragon, for example, and through the magic of USB redirection, it shows up on the WinXP VM that I am running AVRStudio on. In my case, the VM host is just upstairs in a rack, but in theory, it could be an Amazon EC2 instance for example.

It works well enough, except for mass storage devices. My workstation tries to do something with them that interferes with the VirtualBox RDP client's ability to access them for redirection. The fact that I want to be able to plug in USB mass storage devices on my workstation and actually use them on my workstation is what precludes me from just stripping out all the normal functionality. Since I have NFS mounted directories and an Samba server, I could get away with out making this work and just use network shares excpet for another problem where this provides a good solution.

I recently bought my daughter a new laptop. Unfortunately, it comes with Windows 8. It will be one of only two physical Windows systems in the house, the other being my 10 year old Thinkpad. I have no desire to muck around with Win 8 and nothing she does is tied to Windows, except for iTunes. I figured that I could spin up a Windows VM to host iTunes and she could connect in seamless mode, unfortunately the iPod shows up as a mass storage device and we are back to something that should "just work" being a royal PIA.

--SS
 
just brew it!
Administrator
Posts: 54500
Joined: Tue Aug 20, 2002 10:51 pm
Location: Somewhere, having a beer

Re: Virtualization venting....

Wed Mar 13, 2013 9:17 am

Ahh, I have a clearer picture of the situation now. And yes, now I understand your desire to vent!
Nostalgia isn't what it used to be.

Who is online

Users browsing this forum: No registered users and 1 guest
GZIP: On