Quantcast
Channel: Ubuntu Forums - Virtualisation
Viewing all articles
Browse latest Browse all 4211

KVM, avahi/zeroconfig, and printing from KDE

$
0
0
Problem: I am unable to see avahi configurations from my KVM guests.

Requirements: The device I'm trying to set up is a printer using the program "driverless" which runs "ippfind" to get the ipp address. For the examples below, I'm using "Andre" as it doesn't reveal any unique IDs of what I'm trying to set up. The client VMs are set to "bridge" mode and have static IPs on the local network.

Setup: My VM host server is running and can see all of my devices fine:
Code:

$ avahi-browse -la | grep "Andre the Giant TV"
+  eno1 IPv6 Andre the Giant TV                            _androidtvremote._tcp local
+  eno1 IPv4 Andre the Giant TV                            _androidtvremote._tcp local

Issue 1 (resolved): nothing was returned from when I would run avahi-browse on the client VM. This was resolved when I added "allow-interfaces=ens3" (where ens3 is my network adapter in the VM) to /etc/avahi/avahi-daemon.conf.

Issue 2 (unresolved): The KVM client can only see IPV6 hosts; none of the IPV4 addresses are showing up!
Code:

$ avahi-browse -la | grep Andre
+  ens3 IPv6 Andre the Giant TV                            _androidtvremote._tcp local

As my printer only supports IPV4, this is causing driverless to complain. Note that ippfind (and by extension driverless) works on the host server.
Code:

$ driverless
ERROR: ippfind (PID 2002) stopped with status 1!
$ ippfind
$

So far, my attempts to fix Issue 2 have included adding "trustGuestRxFilters='yes'" to the <interface> section of the libvirt config, but without success:
Code:

<interface type='direct' trustGuestRxFilters='yes'>
<mac address='IM:NO:TT:EL:LI:NG'/>
<source dev='eno1' mode='bridge'/>
<model type='virtio'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
</interface>

I'm at a loss on why it's not working.

Issue 3 (unresolved): I took a working driverless PPD from a non-VM machine I had running Ubuntu 20.04 and copied it to the KVM client running KUbuntu 20.10, then manually added the printer with the ipp address (changing the mDNS name to the IP address). The client can now print; however, I'm trying to print a borderless document/picture. Okular and even evince on the KUbuntu VM all print a small border around everything. When I go back to the Ubuntu 20.04 client and print from evince using the same settings, it correctly prints borderless. Should evince print the same way from KDE vs. from Ubuntu's default window manager? Is this a regression from Ubuntu 20.04 -> 20.10? Shouldn't the same driverless PPD on one machine print the same on another? Is there a way to get Okular to print borderless so I don't have to install all these gtk libraries? Am I sneaking too many questions into Issue 3 for it to be a useful question? ;)


Thanks in advance for any recommendations you can give me. I'm trying to move my publishing Ubuntu 20.04 VM from VMWare Player on my slow laptop to my VM server on the network running KUbuntu 20.10. I can keep using vmware player for now as a workaround, but thought that I should post my woes here in case someone else has encountered them, will encounter them, and is looking for answers like I am.

Viewing all articles
Browse latest Browse all 4211


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>