Download the Tom's Hardware App from the App Store
The reference for current tech news
Yes No

USB, Clipboard, And Troubleshooting

by

Can I Copy and Paste?

Back in the early days of desktop virtualization, the guest OS was completely separated from the host. Let's say you need to complete a Web-based research project and input the data into an Excel-only spreadsheet. If you were on Linux years ago and tried to virtualize, you would need to do your research from within the VM (probably in IE) in order to use the copy and paste functions. The alternative was to manually type all of the research data you found Linux-based Web browser into Excel running in the VM. Neither option is appealing.

If you run all your apps from within a VM, what's the point? Why not run that OS natively? Alternatively, why make more work for yourself by throwing out the nearly thirty year-old advent of cut and paste?

With VirtualBox, we've already seen how the keyboard and mouse automatically bind and unbind themselves to the guest OS without the need for special keyboard commands. But how about cut, copy, and paste features? In the past, you would most likely be out of luck (or have had to jump through hoops to get something working). Fortuneately, VirtualBox has reached the point where these staple functions are built-in. Go ahead and give it a try. Copy something from the Web in your Linux-based browser and paste it into Internet Explorer in Windows, or vice versa.


What about my USB Devices?

On page two, we added ourselves to the vboxusers user group. We did this in order to use USB devices via Windows XP. However, the same USB device cannot be used by the guest and the host OS at the same time. Therefore, we need to specify which devices we want to show up in the guest OS. Go ahead and open up XP's VM settings. Make sure XP is shut down, highlight the VM in the VirtualBox main window, and select Settings from the navigation bar. When the Settings window appears, choose USB in the left pane. Under USB Device Filters, click on the Add Filter From Device icon (it's the little USB plug with a green plus sign). A list of your currently plugged-in USB devices will pop up with check boxes next to each. Simply check the device you want the XP guest OS to use and then click OK. For the example in my screenshots, I plugged in two USB sticks (128MB and 4GB), a Canon digital camera, and an HP printer, as well as my Logitech mouse and Altec Lansing speakers, which are always plugged in.

Keep in mind that Mouse Integration from page six will handle USB mice, so there is no need to add a filter for that device. The same holds true for USB speakers, since you are using the audio driver from the host OS and it needs the speakers, not the guest OS. Remember that any device you add a filter for will not be usable in the host OS until the VM is shut down or the filter is removed. I selected one of the USB sticks and the HP printer.

Special digital camera software, PDAs, iTunes? No problem. Just add a filter for the devices you want Windows to use and the next time that you start XP, they will be connected. Note that any device you use in the XP VM will need to be configured just as you would with any PC running XP natively.

Can You Hear Me Now?

One of the most common issues that people have with VirtualBox is garbled, or a total lack of, audio playback. Fortunately, this is relatively easy to troubleshoot. If you noticed sound issues when finalizing the XP installation or afterward, you need to go back to the Settings for the Windows XP VM. In the VirtualBox main window, highlight the XP VM, then click on the Settings button in the navigation bar.

Click on the Audio page in the left pane. Make sure that the check box next to Enable Audio is checked. If it was already checked and you still have no audio, try another driver in the Host Audio Driver field. Boot up XP and test for sound. If necessary, repeat the process. Eventually one of these drivers should work for you.

The Audio Controller field refers to the sound controller on your motherboard or on an installed card. If your sound is still not working properly, check the corresponding hardware manuals to be sure which controller you have.

Share:
5
Comments
Read more
X
Submit

Comments
Read the comments on the forums
Anonymous 07/10/2009 16:12
Hide
-3+

How is this "all for free"? You still need a copy of XP, and even the OEM ones go for around $90.

whybother 08/10/2009 10:38
Hide
-2+

I think an implimentation of WINE in ubuntu would be closer to what microsoft have been trying to do with XP compatibilty mode, that is free unlike virtual box which as gophergun said, you still need a full xp licence for.

army_ant7 09/10/2009 01:50
Hide
-0+

You know what? I really think you're right whybother. I don't see the point of getting Windows XP to run on Virtual Machine. I know that WINE is still not at peak perfection with running applications meant for Windows, but if you have a copy of XP already, why install Ubuntu first? I mean wouldn't you prefer to install XP just like that?

Well I can give one scenario where this article could do good. I guess it's when you actually prefer to use Ubuntu over XP and actually have a program that doesn't run on WINE properly yet.

This article isn't bad, useless, or anything. It enlightened me and others I bet... Good day. :-)

David McMahon 13/10/2009 21:43
Hide
-0+

You can always install Ubuntu as a VM via XP!

army_ant7 14/10/2009 12:22
Hide
-0+

I beg to differ. It is because in the scenario I presented above, I mentioned that the person prefers using Ubuntu , or any OS besides Windows XP for that matter, which means he most likely will be using it most of the time. If he were to use Ubuntu/other in a VM then it will cause unnecessary usage of the RAM and processor, because both OS's will be on at the same time.

You are right though if both will be kept on always for some reason. It really doesn't matter which is in VM and which is the host. (Unless you have preferences on which should be dominant. :-)

Best offers

Newsletters


OK