redeltaglio n00b
Joined: 04 Apr 2018 Posts: 7 Location: Barcelona, Spain
|
Posted: Tue Jun 19, 2018 1:02 pm Post subject: net-misc/remmina amd64 and ~amd64 spice plugin NO keyboard |
|
|
Hello there, nice Gentoo geeks. A pleasure speak with you dudes.
I want to use remmina to connect to my virtual machines builded upon qemu, libvirt, spice and qxl.
I've setup openssl cert and keys using this script:
Code: |
#!/bin/bash
SERVER_KEY=server-key.pem
# creating a key for our ca
if [ ! -e ca-key.pem ]; then
openssl genrsa -des3 -out ca-key.pem 1024
fi
# creating a ca
if [ ! -e ca-cert.pem ]; then
openssl req -new -x509 -days 1095 -key ca-key.pem -out ca-cert.pem -subj "/C=ES/L=Sant Pere de Ribes/O=Gentoo Linux/CN=cyberdream CA"
fi
# create server key
if [ ! -e $SERVER_KEY ]; then
openssl genrsa -out $SERVER_KEY 1024
fi
# create a certificate signing request (csr)
if [ ! -e server-key.csr ]; then
openssl req -new -key $SERVER_KEY -out server-key.csr -subj "/C=ES/L=Sant Pere de Ribes/O=Gentoo Linux/CN=cyberdream CA"
fi
# signing our server certificate with this ca
if [ ! -e server-cert.pem ]; then
openssl x509 -req -days 1095 -in server-key.csr -CA ca-cert.pem -CAkey ca-key.pem -set_serial 01 -out server-cert.pem
fi
# now create a key that doesn't require a passphrase
openssl rsa -in $SERVER_KEY -out $SERVER_KEY.insecure
mv $SERVER_KEY $SERVER_KEY.secure
mv $SERVER_KEY.insecure $SERVER_KEY
# show the results (no other effect)
openssl rsa -noout -text -in $SERVER_KEY
openssl rsa -noout -text -in ca-key.pem
openssl req -noout -text -in server-key.csr
openssl x509 -noout -text -in server-cert.pem
openssl x509 -noout -text -in ca-cert.pem
# copy *.pem file to /etc/pki/libvirt-spice
if [[ -d "/etc/pki/libvirt-spice" ]]
then
cp ./*.pem /etc/pki/libvirt-spice
else
mkdir /etc/pki/libvirt-spice
cp ./*.pem /etc/pki/libvirt-spice
fi
# echo --host-subject
echo "your --host-subject is" \" `openssl x509 -noout -text -in server-cert.pem | grep Subject: | cut -f 10- -d " "` \"
|
Al goes correctly and the result is:
Code: |
cyberdream /etc/pki/libvirt-spice # ls
ca-cert.pem ca-key.pem server-cert.pem server-key.pem
cyberdream /etc/pki/libvirt-spice #
cyberdream /etc/libvirt # cat qemu.conf | grep -v \# | sed '/^$/d'
default_tls_x509_cert_dir = "/etc/pki/libvirt-spice"
spice_listen = "10.1.10.1"
spice_tls = 1
spice_password = "XXXYYYYZZZZ"
nvram = [
"/usr/share/edk2-ovmf/OVMF_CODE.fd:/usr/share/edk2-ovmf/OVMF_VARS.fd"
]
cyberdream /etc/libvirt #
|
My remmina configuration to connect without TSL is:
[url]https://drive.google.com/file/d/1TYcJC_d4QGomn_D8Q456OyWVXpHtnf6Y/view?usp=sharing
[/url]
Using TSL is:
https://drive.google.com/file/d/1sIdx_9J6WIqqQswBRHp71PkiqiADTc1Z/view?usp=sharing
The only option that permit to me to connect is without TSL. But when i start the session every time that i press a key there's no matching output on the client.
Using the keyboard button isn't effective, changing to ~amd64 also.
Mouse fuction is OK.
Output from machine log:
Code: |
cyberdream /var/log/libvirt/qemu # tail -n 25 Tartastan.log
inputs_connect: inputs channel client create
red_channel_client_disconnect: rcc=0x55d70b9e98d0 (channel=0x55d70b8e9120 type=3 id=0)
red_channel_client_disconnect: rcc=0x7f1cf005ff70 (channel=0x55d70cd238a0 type=4 id=0)
red_channel_client_disconnect: rcc=0x7f1cf0947db0 (channel=0x55d70b8caa10 type=2 id=0)
red_channel_client_disconnect: rcc=0x55d70b9dd1e0 (channel=0x55d70b8ca940 type=1 id=0)
main_channel_client_on_disconnect: rcc=0x55d70b9dd1e0
red_client_destroy: destroy client 0x55d70b9c5710 with #channels=6
red_qxl_disconnect_cursor_peer:
red_qxl_disconnect_display_peer:
red_channel_client_disconnect: rcc=0x55d70cc2e010 (channel=0x55d70cd23960 type=9 id=0)
red_channel_client_disconnect: rcc=0x55d70c8fbdb0 (channel=0x55d70cd23a30 type=9 id=1)
main_channel_link: add main channel client
main_channel_client_handle_pong: net test: latency 0.059000 ms, bitrate 73142857142 bps (69754.464285 Mbps)
red_qxl_set_cursor_peer:
inputs_connect: inputs channel client create
red_channel_client_disconnect: rcc=0x7f1cf006ff80 (channel=0x55d70cd238a0 type=4 id=0)
red_channel_client_disconnect: rcc=0x55d70b9e98d0 (channel=0x55d70b8e9120 type=3 id=0)
red_channel_client_disconnect: rcc=0x7f1cf0947db0 (channel=0x55d70b8caa10 type=2 id=0)
red_channel_client_disconnect: rcc=0x55d70b9dd1e0 (channel=0x55d70b8ca940 type=1 id=0)
main_channel_client_on_disconnect: rcc=0x55d70b9dd1e0
red_client_destroy: destroy client 0x55d70c854810 with #channels=6
red_qxl_disconnect_cursor_peer:
red_qxl_disconnect_display_peer:
red_channel_client_disconnect: rcc=0x55d70cc2e010 (channel=0x55d70cd23960 type=9 id=0)
red_channel_client_disconnect: rcc=0x55d70c8fbdb0 (channel=0x55d70cd23a30 type=9 id=1)
cyberdream /var/log/libvirt/qemu #
|
Something similar to https://bugzilla.redhat.com/show_bug.cgi?id=1570920
Some advice?
Very nice regards,
Riccardo Giuntoli _________________ https://twitter.com/taglio
PGP: 90DC 1D49 FC85 DD2E 38AC 5301 6DAE 5C27 DFAF 0D6
"...a broken clock is always right twice a day..." |
|