Parallel Printer cant configured

Discussions related to using VirtualBox on Linux hosts.
JulioRos
Posts: 10
Joined: 16. May 2013, 01:22

Parallel Printer cant configured

Post by JulioRos »

Hi

i want to enable a parrallel port LPT1 on Host Ubuntu 12.04, print ok from on linux but i don't enable it in the vbox using this command
VboxManage modifyvm 'server' --lptmod1 LPT1

i had this error

VBoxManage: error: Unknown option: --lptmod1

known why this error?

my version is 4.1.12_Ubuntur77245

Thank's for all
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Parallel Printer cant configured

Post by Perryg »

JulioRos
Posts: 10
Joined: 16. May 2013, 01:22

Re: Parallel Printer cant configured

Post by JulioRos »

thank you Perryg
Ok, Changing the version of VirtualBox and i can configured the LPT port but .....
put this "VBoxManage modifyvm "server" --lptmode1 "/dev/parport0",
"VBoxManage modifyc 'server' --lpt1 0x378 7"

and when run it say :

Parallel#0 could not claim parallel port '/dev/parport0'Be sure that no other process or driver accesses this port (VERR_DEV_IO_ERROR).

Parallel device 0 cannot attach to host driver (VERR_DEV_IO_ERROR).

Código Resultado: NS_ERROR_FAILURE (0x80004005)
Componente: Console
Interfaz: IConsole {db7ab4ca-2a3f-4183-9243-c1208da92392}
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Parallel Printer cant configured

Post by Perryg »

This usually means you do not have permission to address the port. make sure you are a member of the lp group and lpadmin group on the host.

Note any changes to permission do not take effect until you have logged off and back o nor sometimes until a reboot.
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Re: Parallel Printer cant configured

Post by mpack »

Did you consider a network share for the printer?
JulioRos
Posts: 10
Joined: 16. May 2013, 01:22

Re: Parallel Printer cant configured

Post by JulioRos »

tank's all

i adding my user call "usuario" to the group lp and lpadmin with "

Code: Select all

usermod -G lp usuario
" but i get the same error

Fallo al iniciar la máquina virtual server.

Parallel#0 could not open '/dev/lp0' (VERR_ACCESS_DENIED).

Parallel device 0 cannot attach to host driver (VERR_ACCESS_DENIED).

Código Resultado: NS_ERROR_FAILURE (0x80004005)
Componente: Console
Interfaz: IConsole {db7ab4ca-2a3f-4183-9243-c1208da92392}

thank you again for the help
regards

Julio

aditional info: i send "

Code: Select all

ls > /dev/lp0
" (like MS-DOS test port) and prints fine from the terminal , also login root and config the VM and take the same error ¿¿?? do you have any idea?
JulioRos
Posts: 10
Joined: 16. May 2013, 01:22

Re: Parallel Printer cant configured

Post by JulioRos »

mpack wrote:Did you consider a network share for the printer?
thank's for idea but i can't take the shared printer because the VM is a Novel Netware 4.2
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Parallel Printer cant configured

Post by Perryg »

Post the results of id from the terminal
JulioRos
Posts: 10
Joined: 16. May 2013, 01:22

Re: Parallel Printer cant configured

Post by JulioRos »

when run from terminal say
  • usuario@servidor1:~$ virtualbox
    Error opening file for reading: Permiso denegado
    Qt WARNING: void DBusMenuExporterPrivate::addAction(QAction*, int): Already tracking action "" under id 16
    Qt WARNING: void DBusMenuExporterPrivate::addAction(QAction*, int): Already tracking action "&Pausar" under id 17
    Qt WARNING: void DBusMenuExporterPrivate::addAction(QAction*, int): Already tracking action "&Reiniciar" under id 18
    Qt WARNING: void DBusMenuExporterPrivate::addAction(QAction*, int): Already tracking action "&Descartar el estado guardado..." under id 24
    Qt WARNING: void DBusMenuExporterPrivate::addAction(QAction*, int): Already tracking action "Ac&tualizar..." under id 25
    Qt WARNING: void DBusMenuExporterPrivate::addAction(QAction*, int): Already tracking action "Mostrar en el administrador de archivos" under id 27
    Qt WARNING: void DBusMenuExporterPrivate::addAction(QAction*, int): Already tracking action "Crear un acceso directo en el escritorio" under id 28
    usuario@servidor1:~$
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Parallel Printer cant configured

Post by Perryg »

Let's try this again.
Open a terminal on the host and type id then press enter
Then post what that prints out on the screen.
JulioRos
Posts: 10
Joined: 16. May 2013, 01:22

Re: Parallel Printer cant configured

Post by JulioRos »

as root say

Fallo al abrir una sesión para la máquina virtual servroot.

Parallel#0 could not get exclusive access for parallel port '/dev/lp0'Be sure that no other process or driver accesses this port (VERR_INVALID_PARAMETER).

Parallel device 0 cannot attach to host driver (VERR_INVALID_PARAMETER).

Código Resultado: NS_ERROR_FAILURE (0x80004005)
Componente: Console
Interfaz: IConsole {db7ab4ca-2a3f-4183-9243-c1208da92392}
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Parallel Printer cant configured

Post by Perryg »

I can't help you if you do not do what I ask. I will await further assistance until you comply with my previous request.
JulioRos
Posts: 10
Joined: 16. May 2013, 01:22

Re: Parallel Printer cant configured

Post by JulioRos »

this is a id

uid=1000(usuario) gid=1000(usuario) grupos=1000(usuario),4(adm),24(cdrom),27(sudo),30(dip),46(plugdev),109(lpadmin),124(sambashare)

thank's
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Parallel Printer cant configured

Post by Perryg »

Add your user to the lp group and reboot. See if that lets you access the lpt port
JulioRos
Posts: 10
Joined: 16. May 2013, 01:22

Re: Parallel Printer cant configured

Post by JulioRos »

take same error

usuario@servidor1:~$ egrep "lp" /etc/group
lp:x:7:
lpadmin:x:116:usuario


thank you so much for help
Post Reply