KVM host parallel port

tesquenure

Member
Aug 18, 2009
109
1
16
Hi all,

Can i print on a parallel printer with a KVM linux ?
I see on forum we can print on USB printer, but nothing about parallel.

Have no lp"X" or parport"X" in /dev gest and host.

My bios looks good.


What can i do ?

Thanks all for your help and a great product!
 
Last edited:
qemu man :

-parallel dev Redirect the virtual parallel port to host device dev (same devices as the serial port). On Linux hosts, /dev/parportN can be used to use hardware devices connected on the corresponding host parallel port. This option can be used several times to simulate up to 3 parallel ports.
Use "-parallel none" to disable all parallel ports.

But i dont have parport* in /dev host

In bios parallel port = EPP

In host : lsmod | grep parport
parport_pc 48168 0
parport 53388 1 parport_pc

Your help is wellcome.
 
Hi all,

Dietmar,

I read this post :
http://www.proxmox.com/forum/showthread.php?p=5050#poststop.

If i do that :

1) dmesg | grep parport
parport0: PC-style at 0x378, irq 7 [PCSPP,TRISTATE,EPP]
parport0: Printer, Hewlett-Packard hp LaserJet 1300

2) ls -la /dev/parport*
ls: cannot access /dev/parport*: No such file or directory

3) modprobe ppdev

4) ls -la /dev/parport*
crw-rw---- 1 root lp 99, 0 Sep 8 17:06 /dev/parport0

5) qm set 107 -parallel /dev/parport0

6) Stop/start 107

7) Printing from 107 works.

But if i restart proxmox i have to "modprobe ppdev" again.

How can i start ppdev at startup of PVE ?

Thanks for your help.
 
nano /etc/modules

# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.
# Parameters can be specified after the module name.
ppdev

reboot

ls -la /dev/parport*
crw-rw---- 1 root lp 99, 0 Sep 8 17:23 /dev/parport0

Et voila :D

There is a better way to do that ?

Thanks for your help.
 
nano /etc/modules

# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.
# Parameters can be specified after the module name.
ppdev

reboot

ls -la /dev/parport*
crw-rw---- 1 root lp 99, 0 Sep 8 17:23 /dev/parport0

Et voila :D

There is a better way to do that ?

Thanks for your help.

i think the idea and the right one for proxmox is that they load the minimum needed drivers and kernel modules so that processor speed and performance is maximised for the most people.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!