Hello dear proxmox users, I am willing to pass-through a parallel port (via usb-to-parallel) to guest vm that is too stupid (2003 server) to use a usb-to-parallel, but functions properly when kvm gives it a ready-to-use parallel port.
It works beautifully with kvm/libvirt, but proxmox prevents me from doing such a terrible thing because the device is validated against a regexp.
I guess one modification would be to change file QemuServer.pm
Physical parallel ports are named /dev/parport<number>, while usb-to-parallel ports are named /dev/usb/lp<number>
but then kvm also complains about a wrong command line ..
The line does not seems to be wrong ? can you spot a mistake ?
(I guess I just have to replug everything and compare with virt-manager generated command line)
It works beautifully with kvm/libvirt, but proxmox prevents me from doing such a terrible thing because the device is validated against a regexp.
I guess one modification would be to change file QemuServer.pm
Code:
my $paralleldesc= {
optional => 1,
type => 'string',
pattern => '/dev/parport\d+|/dev/usb/lp\d+',
description => <<EODESCR,
Map host parallel devices (n is 0 to 2).
Physical parallel ports are named /dev/parport<number>, while usb-to-parallel ports are named /dev/usb/lp<number>
but then kvm also complains about a wrong command line ..
Code:
chardev: opening backend "parport" failed
TASK ERROR: start failed: command '/usr/bin/kvm -id 500 -chardev 'socket,id=qmp,path=/var/run/qemu-server/500.qmp,server,nowait' -mon 'chardev=qmp,mode=control' -vnc unix:/var/run/qemu-server/500.vnc,x509,password -pidfile /var/run/qemu-server/500.pid -daemonize -name Serveur -smp 'sockets=1,cores=2' -nodefaults -boot 'menu=on' -vga cirrus -cpu kvm64,+x2apic,+sep -k fr -m 2048 -cpuunits 1000 -device 'piix3-usb-uhci,id=uhci,bus=pci.0,addr=0x1.0x2' -device 'usb-tablet,id=tablet,bus=uhci.0,port=1' -chardev 'parport,id=parallel0,path=/dev/usb/lp0' -device 'isa-parallel,chardev=parallel0' -device 'virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x3' -drive 'file=/mnt/pve/BackupImages/template/iso/virtio-win-0.1-49.iso,if=none,id=drive-ide2,media=cdrom,aio=native' -device 'ide-cd,bus=ide.1,unit=0,drive=drive-ide2,id=ide2,bootindex=200' -drive 'file=/mnt/pve/BackupImages/images/500/vm-500-disk-1.qcow2,if=none,id=drive-ide0,format=qcow2,aio=native,cache=none' -device 'ide-hd,bus=ide.0,unit=0,drive=drive-ide0,id=ide0' -netdev 'type=user,id=net0,hostname=Serveur' -device 'e1000,mac=00:C0:9F:2C:D5:CB,netdev=net0,bus=pci.0,addr=0x12,id=net0,bootindex=300' -rtc 'driftfix=slew,base=localtime'' failed: exit code 1
The line does not seems to be wrong ? can you spot a mistake ?
(I guess I just have to replug everything and compare with virt-manager generated command line)
Last edited: