Printing from Virtualbox
August 09, 2023 —
Gregg Szumowski
If you want to set up your system so that you can access your Linux host’s printer from a Windows VirtualBox client then:
On Your Linux Host
- Install your printer driver. Get your printer working on your host first.
- Install CUPS if it is not already installed.
- Add your printer to CUPS at
http://localhost:631/admin
. - Set your virtual machine’s Network to Bridged Adapter
(eth0) in Settings and connect the cable as necessary (Advanced
menu).
- Startup VirtualBox.
- In a terminal, enter
ifconfig
to list your current network settings and copy down your host’s (eth0) address or you can optionally access this address using Network Manager.
On You Windows Client
- Add a new Network printer in “Printers and Faxes” from the Control Panel
- Enter the URL address of your host’s printer, i.e.,
http://192.168.0.2:631/printers/Your_printer's_name
. You need the:631
after your host’s address as this is the port that CUPS listens to. The Your_printer’s_name is the name of the printer you added to CUPS.
If you can’t establish a connection then check your firewall settings.
Tags: cli, virtualbox, printing, motd