Make use of /usr/bin/nc or /usr/bin/netcat in virtManager/console.py
Created attachment 419050 [details]
Patch src/virtManager/console.py to use nc or netcat from /usr/bin
That code is typically run on a remote system, so doing a local bin check is not valid. What exactly are you trying to accomplish, use netcat if nc doesn't exist? Is suse's nc named netcat? What's the output of netcat -h
I tried to adopt the patch suggested by Andreas in 2009.
You're right. The goal is to use netcat if nc doesn't exist.
The patch in its unconditional version is part of the Virtualization:virt-manager project of the openSUSE Build Service. See http://download.opensuse.org/repositories/Virtualization/
Can you provide the output of netcat -h on your machine? Does libvirt carry a similar patch to s/nc/netcat/g or something?
Created attachment 419061 [details]
output of netcat -h
libvirt includes a patch to use netcat (if available) or socat.
Looks like I've to find a way to check if we have the binary on the other side of the connection.
/usr/bin/nc is available from the netcat-openbsd package. Sorry for all the stupid noise.
The SUSE virt-manager package should use this binary and no more patch is required.
Probably a good idea to have your libvirt add a dep on that package.
Yes. I filed https://bugzilla.novell.com/show_bug.cgi?id=611023 to track this on the SUSE side.