Showing posts with label usb. Show all posts
Showing posts with label usb. Show all posts

Monday, 4 May 2009

Sun xVM VirtualBox v. 2.2: USB support on {Open}Solaris works and HP's multifunction printers work like a charm.

As I told you on another post I had some problems with VirtualBox on a Solaris host: missing USB support not only meant that USB devices were unmanageable, it also meant that other software (such as HP's solution center for multifunction printers) wouldn't even install because of that missing feature. I planned to use my printer though the Ethernet interface but the software wouldn't install.

Until I installed Sun xVM VirtualBox v. 2.2. Experimental USB support was sufficient for HP's software to install and the printer worked perfectly both from Windows and Linux guests. Direct access to the printer by setting up a filter was straight forward.

A note about networking configuration: HP's solution center uses a certain number of TCP and UDP ports to communicate with the multifunction device. The printer documentation was detailed and setting up a firewall or a set of NAT rules wouldn't be hard. By the way, once I realized that the problems I was experiencing with the scanner were due to VirtualBox's default network configuration, I decided to change the guest's network settings.

If you're a Solaris Express user who regularly updates its system, you'd probably read about Crossbow project. Crossbow project, which was integrated in Nevada build 105, aims to provide the building blocks for network virtualization on Solaris hosts. The first thing I thought about was, indeed, creating a virtual NIC. But the solution was easier than that and it's called "Bridged networks" on VirtualBox's jargon. You simply change the adapter configuration for you VirtualBox host from NAT to Bridged and you optionally choose the physical NIC you want to bridge upon, in the case your system has more than one. Boot your guest OS and you'll have a virtual NIC at your disposal, without the limitations of the NAT configuration. And if you are communicating with the "outside world", such as a network multifunction printer or some CIFS client, your guest OS' NIC will appear just as a physical NIC.

The only caveat to use this technique is that, on Solaris hosts, Virtual NICs and VirtualBox bridged networking isn't implemented (yet) on top of a Wireless NIC.

Enjoy,
Grey

Sunday, 12 April 2009

Sun xVM VirtualBox 2.2: Experimental USB support for OpenSolaris hosts

I really never had the need of even thinking about USB support on VirtualBox until I bought an HP OfficeJet 6500 multifunction printer at home. I chose that printer because it has a network interface and it was (more or less) supported by HPLIP Linux driver: I thought it could work with some hacking with Solaris as well. Worked indeed in Solaris but there was no hope to have the scanner work with Sane (let alone the fax...). No problem, thought I: I'll run a Linux or a Windows on VirtualBox and use HP's software.

Well: HP Windows software does not install if it detects that the OS doesn't support USB. No way to go, even if at the beginning of the installation I chose "Network attached printer". No way. USB support is good news for everybody and as far as it concerns myself, I hope to be able to launch and perform HP's software installation.

Edited: I finally had the time to setup another Solaris host and, indeed, everything is working fine.