USB Printer not working in Guest OS – WIN -7 on Oracle VB in Host OS-Ubuntu 18.04

Asked by Navin Talati

Presently, I have upgraded Ubunto 16.04 to 18.04. It is working nicely. I installed Oracle VM VirtualBox - VirtualBox Graphical User Interface Version 5.2.12 r122591 (Qt5.9.5) and also added appropriate upgraded VboxGuestAdditions. Then Windows-7 OS is installed along with required MS Office and other few useful windows based softwares. It is also working properly.

In my system, there are folllowing devices which are attached through USB.
1. Netgear Dongle WG111v3
2. Lappie 4 Port USB hub, in which 3 devices are attached.
a) Cordless Key Board of iball.
b) HP Printer
c) usb Mouse.
And 1 Port is blank / empty.

The output of list of usb in terminal is as under:
navin@linux:~$ lsusb
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 005: ID 04d9:1400 Holtek Semiconductor, Inc. PS/2 keyboard + mouse controller
Bus 001 Device 006: ID 04fc:05d8 Sunplus Technology Co., Ltd Wireless keyboard/mouse
Bus 001 Device 003: ID 05e3:0608 Genesys Logic, Inc. Hub
Bus 001 Device 002: ID 0846:4260 NetGear, Inc. WG111v3 54 Mbps Wireless [realtek RTL8187B]
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
navin@linux:~$

The Printer is HP LaserJet M1005 MFP. It iis connnected in the system through USB and properly working in the host OS (Ubuntu 18.04). It could also be installede in the guest Windows 7 in the Oracle VM VirtualBox. In the USB through VB all other USB devices (Netgear Dongle WG111v3Cordless Key Board of iball. usb Mouse.) are shown. Only Printer is not indicated /not appearing.

My problem is about USB Printer - which is not working through Win-7 from VB. USB port is also not showing the printer.

Why so?
AND
How to get the printer working in Win-7 from Oracle VM VirtualBox ?

Please guide and help.

Question information

Language:
English Edit question
Status:
Expired
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1
Revision history for this message
Navin Talati (n-m-talati) said :
#2

This was referred earlier. However I retried the actions as under:
Go to System -> Administration -> Users and Groups...
--------------------------------------------------------------------------------
Click the "Unlock" button...

Type your password and click the "Authenticate" button....

Click on the "Manage Groups" button...

In the "Groups settings" window that will appear, scroll down until you see the vboxusers entry. Select it and then click on the "Properties" button...

Another window will appear, called "Group 'vboxusers' Properties. Just check the box in front of your username and click the "OK" button when you're done...

Close the "Group settings" and "Users Settings" windows and log out. Log in and open up VirtualBox, start your virtual machine and you will see that you can now access the USB devices!

Yes... it was that simple!
----------------------------------------------------------------------

but the usb devices are not appearing nor the printer is working.
 I think something is missing from my end while stetting USB and selecting filters which I am unable to understand.

Revision history for this message
Navin Talati (n-m-talati) said :
#3

The output of “lsusb” is as under:

navin@linux:~$ lsusb
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 005: ID 04d9:1400 Holtek Semiconductor, Inc. PS/2 keyboard + mouse controller
Bus 001 Device 004: ID 04fc:05d8 Sunplus Technology Co., Ltd Wireless keyboard/mouse
Bus 001 Device 003: ID 05e3:0608 Genesys Logic, Inc. Hub
Bus 001 Device 002: ID 0846:4260 NetGear, Inc. WG111v3 54 Mbps Wireless [realtek RTL8187B]
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
navin@linux:~$

Here in the case of Bus 001 only 3 devices are showing attached.

Bus 001 Device 005: ID 04d9:1400 Holtek Semiconductor, Inc. PS/2 keyboard + mouse controller
Bus 001 Device 004: ID 04fc:05d8 Sunplus Technology Co., Ltd Wireless keyboard/mouse
Bus 001 Device 003: ID 05e3:0608 Genesys Logic, Inc. Hub
Bus 001 Device 002: ID 0846:4260 NetGear, Inc. WG111v3 54 Mbps Wireless [realtek RTL8187B]
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

which are

(on 4 port hub)
(1).PS/2 keyboard + mouse controller
(2).Wireless keyboard/mouse

(on seperate usb port on motherboard)
(3).NetGear, Inc. WG111v3

Here, an USB of HP LaserJet M1005 MFP is also connected but it is not showing despite keeping printer conected and made ON. The printer is working normally and there is no issue in its working as well as operation. But some how it is not shown!

I think if we can make it “shown” in the above out put, probably it can work through Windows 7 installed in Oracle VM VirtualBox.

Please have a comment and further guide line o the issue.

Revision history for this message
Manfred Hampl (m-hampl) said :
#4

If you have VirtualBox not running, does the printer show on Ubuntu with the lsusb command?

Revision history for this message
Navin Talati (n-m-talati) said :
#5

When VirtualBox is not running, the printer is not show on Ubuntu with the lsusb command. i.e. the output is as under in which nowhere the printer is specified/identified. But the printer works properly in ubuntu. This is what I have indicated in #3

OUTPUT
navin@linux:~$ lsusb
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 005: ID 04d9:1400 Holtek Semiconductor, Inc. PS/2 keyboard + mouse controller
Bus 001 Device 004: ID 04fc:05d8 Sunplus Technology Co., Ltd Wireless keyboard/mouse
Bus 001 Device 003: ID 05e3:0608 Genesys Logic, Inc. Hub
Bus 001 Device 002: ID 0846:4260 NetGear, Inc. WG111v3 54 Mbps Wireless [realtek RTL8187B]
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
navin@linux:~$

Revision history for this message
Manfred Hampl (m-hampl) said :
#6

It is very strange if the printer is not shown in the lsusb command, but working well.

Was the printer powered on when you issued the "lsusb" command?

If you unplug the USB connection to the printer, wait half a minute, re-plug it and power-on the printer, aiagin wait half a minute and then issue the command
dmesg | tail
what output do you receive?

Revision history for this message
Manfred Hampl (m-hampl) said :
#7

(please read "again" instead of "aiagin")

Revision history for this message
Navin Talati (n-m-talati) said :
#8

Keeping the printer connnected and ON, the system was started.
The OUTPUT of “lsusb” is as under:

navin@linux:~$ lsusb
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 005: ID 04fc:05d8 Sunplus Technology Co., Ltd Wireless keyboard/mouse
Bus 001 Device 004: ID 04d9:1400 Holtek Semiconductor, Inc. PS/2 keyboard + mouse controller
Bus 001 Device 007: ID 03f0:3b17 Hewlett-Packard LaserJet M1005 MFP
Bus 001 Device 003: ID 05e3:0608 Genesys Logic, Inc. Hub
Bus 001 Device 002: ID 0846:4260 NetGear, Inc. WG111v3 54 Mbps Wireless [realtek RTL8187B]
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
navin@linux:~$

Here, it is shown as:
Bus 001 Device 007: ID 03f0:3b17 Hewlett-Packard LaserJet M1005 MFP

Disconnecting the printer, the output of “lsusb” is not showing the printer asw abve.
After Re-connecting and making the printer ON, it again shows the printer as:
Bus 001 Device 009: ID 03f0:3b17 Hewlett-Packard LaserJet M1005 MFP

here the device becomes 009 insted of 007 in earlier case. This number changes as you connnect and reconnect the printer pluged through its USB.

Also in Setting---> Devices---> Displays---> Printers, it clearly shows “HP-LaserJet-M1005” printer Ready.

Keeping printer plugged and powered on, the OUT PUT of “dmesg | tail” is as under:

navin@linux:~$ dmesg | tail
[ 2522.724833] wlx00223fe315f0: associate with 4c:09:d4:2f:a6:06 (try 1/3)
[ 2522.760841] wlx00223fe315f0: RX AssocResp from 4c:09:d4:2f:a6:06 (capab=0x431 status=0 aid=1)
[ 2522.764142] wlx00223fe315f0: associated
[ 2703.684755] wlx00223fe315f0: deauthenticated from 4c:09:d4:2f:a6:06 (Reason: 7=CLASS3_FRAME_FROM_NONASSOC_STA)
[ 2704.023445] wlx00223fe315f0: authenticate with 4c:09:d4:2f:a6:06
[ 2704.278410] wlx00223fe315f0: send auth to 4c:09:d4:2f:a6:06 (try 1/3)
[ 2704.300031] wlx00223fe315f0: authenticated
[ 2704.303526] wlx00223fe315f0: associate with 4c:09:d4:2f:a6:06 (try 1/3)
[ 2704.335905] wlx00223fe315f0: RX AssocResp from 4c:09:d4:2f:a6:06 (capab=0x431 status=0 aid=3)
[ 2704.339216] wlx00223fe315f0: associated
navin@linux:~$

Oracle VM VirtualBox started and making Windows 7 running, the USB settings shows the Printer but despite of selecting the printer (connected and powered on), it is not working through O.S. (i.e. Windows 7) in V.B.

At the above situation (VB “ON” with Guest O.S. i.e. Windows 7), the outputs of above TWO commands are asw under:

navin@linux:~$ lsusb
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 005: ID 04fc:05d8 Sunplus Technology Co., Ltd Wireless keyboard/mouse
Bus 001 Device 008: ID 04d9:1400 Holtek Semiconductor, Inc. PS/2 keyboard + mouse controller
Bus 001 Device 010: ID 03f0:3b17 Hewlett-Packard LaserJet M1005 MFP
Bus 001 Device 003: ID 05e3:0608 Genesys Logic, Inc. Hub
Bus 001 Device 002: ID 0846:4260 NetGear, Inc. WG111v3 54 Mbps Wireless [realtek RTL8187B]
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
navin@linux:~$ dmesg | tail
[ 2704.303526] wlx00223fe315f0: associate with 4c:09:d4:2f:a6:06 (try 1/3)
[ 2704.335905] wlx00223fe315f0: RX AssocResp from 4c:09:d4:2f:a6:06 (capab=0x431 status=0 aid=3)
[ 2704.339216] wlx00223fe315f0: associated
[ 2939.336505] SUPR0GipMap: fGetGipCpu=0xb
[ 2940.202348] vboxdrv: 0000000000000000 VMMR0.r0
[ 2940.608757] vboxdrv: 0000000000000000 VBoxDDR0.r0
[ 2940.873900] vboxdrv: 0000000000000000 VBoxEhciR0.r0
[ 3006.363655] usblp1: removed
[ 3180.351221] usb 1-5.1: reset high-speed USB device number 10 using ehci-pci
[ 3180.460381] usblp 1-5.1:1.1: usblp1: USB Bidirectional printer dev 10 if 1 alt 0 proto 2 vid 0x03F0 pid 0x3B17
navin@linux:~$

Ofcourse, I am not able to understand the above output.
The “Devices and Printers” in Win -7, shows the printer.
BUT,
some how the printer is not workiintg through captiioned Guest O.S.
Could this be a Device Driver Issu? (Also it massages that Device Driver Installled Successfully! )

Revision history for this message
Navin Talati (n-m-talati) said :
#9

Please read "asw abve." as "as above"

Revision history for this message
Manfred Hampl (m-hampl) said :
#10

Now the output of the lsusb command lists the printer (when connected and powered on), and also the dmesg output shows that the device is correctly identified as a USB printer.

(It is normal behavior that a USB device gets a new Device ID when removed and re-plugged.)

Do you have the Virtualbox extension pack installed in your Windows Guest system?

Revision history for this message
Navin Talati (n-m-talati) said :
#11

Yes, I have also installed Oracle_VM_VirtualBox_Extension_Pack-5.2.12 i.e. the latest suitable for the VB in stalled.

Revision history for this message
Navin Talati (n-m-talati) said :
#12

I made additional following efforts to make HP LaserJet M1005 MFP printer get working in the Guest O.S Windows 7 in the VB in Ubuntu 18.04
1
I again downloaded "Oracle_VM_VirtualBox_Extension_Pack-5.2.12-122591.vbox-extpack" and
Re-installed.

2
In the printer's Print box, when I click "Find Printer..." box, it shows a warning box titled as "Find in the Directory" and says "The Active Directory Domain Services is currently unavailable"

3
To resolve this I tried operations mentioned/suggested in the link below:
https://support.microsoft.com/en-gb/help/929135/how-to-perform-a-clean-boot-in-windows

Despite all above efforts the problem persists
Please guide further.

Revision history for this message
Manfred Hampl (m-hampl) said :
#13

For the extension pack you have to do two steps:
1. (download and) install it in the host system
2. activate it in the guest system
Have you done both?

Revision history for this message
Navin Talati (n-m-talati) said :
#14

The extension pack while installation, opens with VB Manager and gives option for either "Cancel'' or "Reinstall" in a VB -Question widow (box).( If I open with USC or other application , it is not operating)
I reinstalled it.
And then Started the Guest O.S. (Win-7)
Printer is not working.

Is there any other or special way to activate it in the guest system?
Please guide with possible detail.

Revision history for this message
Manfred Hampl (m-hampl) said :
#15
Revision history for this message
Navin Talati (n-m-talati) said :
#16

Dear Sir,

With reference to the above link and its continuity of the next page in “Additional Virtual Machine Preparation”, I tried to run “Local Security Policy”. But it shows warning box saying “Windows cannot find ‘Local’. Make sure you typed the name correctly and then try again’.

However, I could open the dialogue boxes as per Figure 6.17. Administrator Account PolicyFigure and 6.18. Secure Authentication Sequence Policy as under and edited (i.e.ENABLED) (1) Accounts: Administrator account status and (2) Interactive logon: Do not require CTRL+ALT+DEL.

For this I went as under:
Control Panel - Systems and security -Administrator Tools - Local Security Policy -Security options - Accounts: Administrator account status --- and then ‘enabled’ it. In this window on scrolling ‘Interactive logon: Do not require CTRL+ALT+DEL’ was found and ‘enabled’ it.

Then as per the further procedure: “….Close the Local Security Policy window. Now you need to create a password for the built-in Administrator account. Start the Windows Control Panel, select User Accounts, select the Administrator user, and set a password. Verify that the Administrator account works by logging out of Windows, and then log in again as the Administrator user….”, I set the password.

In the content it is said “…Once you have logged in as the Administrator user, the next step is usually to install any software that users need, and the device drivers for any special devices that users will be using, such as USB printers or storage devices….”

To te best of my knowledge, the HP LaserJet M1005 MFP driver was installed while setting the printer after instilling the Guest OS (Win-7).

So I shut down the Guest OS and closed the Oracle VB . Again restarted the VB and Run the Guest OS. Tick marked the Printer in USB Settings and found that Printer was working – Printing and scanning both.

One thing I observed that when the Guest OS is running and the printer is linked and working, at the same time the
printer could not be run through Host OS. It could be run only when the VB is closed.

Is it normal?
If YES  the problem is solved
If NO  Please suggest further modification and/or settings

Thanks

Revision history for this message
Launchpad Janitor (janitor) said :
#17

This question was expired because it remained in the 'Open' state without activity for the last 15 days.