[cups.bugs] [HIGH] STR #3811: cups does no longer work with virtual guest (kvm)
Juergen Bausa
Juergen.Bausa at web.de
Fri Mar 11 07:09:13 PST 2011
DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.
[STR New]
I have used qemu/kvm for some years to run a winxp guest. The guest used
http://10.0.2.2:631/printers/PRINTERNAME
to access my cups printer. However, after upgrading to squeeze, this
doesnt
work anymore. The printer is not accesible (from the guest. On the host
everything is ok) and I find the following message in
/var/log/cups/error_log:
E [03/Mar/2011:18:13:19 +0100] Request from "localhost" using invalid
Host: field "10.0.2.2:631"
Looking in the cups code (/scheduler/client.c) I found that cups will only
allow requests, if
the ip is 127.0.0.1 or for localhost.
Adding the line
ServerAlias *
and/or
HostNameLookups on
did not help. The problem has been described by different people:
http://blog.jamponi.net/
https://bugzilla.redhat.com/show_bug.cgi?id=498711
http://forums.virtualbox.org/viewtopic.php?f=7&t=33473
it may also be connected to debian bug #530027
However, I did not find a suitable solution yet. (other than using samba
or a bridge for the network connection)
As this has worked before I think it is a bug.
Regards,
Juergen
Link: http://www.cups.org/str.php?L3811
Version: 1.4.4
More information about the cups-devel
mailing list