<div dir="ltr"><div>Okay - now I feel like the dumbest and worst user ever - and rightfully so.</div><div><br></div><div>Just for the record - just incase someone else is as dumb as me...</div><div>(Damn - i feel so embarrassed)</div><div><br></div><div>To be able to connect fast to the virtual machine and not to forget what to write - I created a text file on my desktop with the command to start the VM as name. <br></div><div>Desperate KDE tried to fulfill my wish in translating the double "//" into something that doesn't interfere with the naming-principles but looks like the user wanted it to.</div><div><br></div><div>I then copied the command from the text file name to command line and used it (I thought i typed it later on from the beginning with legitimate "/" as well but it seems that was not the case)</div><div><br></div><div>So everytime i tried, I apparently used the old entries which weren't normal "/" - they never were but looked like them.</div><div><br></div><div>Sorry for cussing - but I am such a dumbass...</div><div><br></div><div>Frediano - may i tip you a coffee or something - I clearly owe you one.</div><div><br></div><div>Stefan<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Am Fr., 18. Nov. 2022 um 12:46 Uhr schrieb Frediano Ziglio <<a href="mailto:freddy77@gmail.com">freddy77@gmail.com</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Il giorno ven 18 nov 2022 alle ore 10:48 Stefan Silberstein<br>
<<a href="mailto:linuxstony@gmail.com" target="_blank">linuxstony@gmail.com</a>> ha scritto:<br>
><br>
> Hope this wall of text helps you in any way :D<br>
><br>
> stony@Aperture-Science:~$ history | grep spice | hexdump -C<br>
> 00000000  20 31 32 30 36 20 20 72  65 6d 6f 74 65 2d 76 69  | 1206  remote-vi|<br>
> 00000010  65 77 65 72 20 73 70 69  63 65 3a 2f 2f 31 39 32  |ewer spice://192|<br>
> 00000020  2e 31 36 38 2e 31 37 38  2e 35 31 3a 35 39 30 30  |.168.178.51:5900|<br>
> 00000030  0a 20 31 32 31 30 20 20  72 65 6d 6f 74 65 2d 76  |. 1210  remote-v|<br>
> 00000040  69 65 77 65 72 20 73 70  69 63 65 3a 2f 2f 31 39  |iewer spice://19|<br>
> 00000050  32 2e 31 36 38 2e 31 37  38 2e 35 31 3a 35 39 30  |2.168.178.51:590|<br>
> 00000060  30 0a 20 31 33 30 39 20  20 72 65 6d 6f 74 65 2d  |0. 1309  remote-|<br>
> 00000070  76 69 65 77 65 72 20 73  70 69 63 65 3a e2 81 84  |viewer spice:...|<br>
> 00000080  e2 81 84 31 39 32 2e 31  36 38 2e 31 37 38 2e 35  |...192.168.178.5|<br>
<br>
There you go!<br>
<br>
$ echo -e '\xe2\x81\x84'<br>
⁄<br>
<br>
that's no a ASCII slash. echo -n / | hexdump -C<br>
00000000  2f                                                |/|<br>
00000001<br>
<br>
(one byte, your is 3 bytes, surely not ASCII)<br>
<br>
... omissis (a lot more there) ...<br>
<br>
> 0000179c<br>
> stony@Aperture-Science:~$<br>
><br>
> For now I will fade into the shadow of userdom again :)<br>
><br>
> Stefan<br>
><br>
<br>
Frediano<br>
<br>
> Am Fr., 18. Nov. 2022 um 11:25 Uhr schrieb Frediano Ziglio <<a href="mailto:freddy77@gmail.com" target="_blank">freddy77@gmail.com</a>>:<br>
>><br>
>> Il giorno ven 18 nov 2022 alle ore 06:08 Stefan Silberstein<br>
>> <<a href="mailto:linuxstony@gmail.com" target="_blank">linuxstony@gmail.com</a>> ha scritto:<br>
>> ><br>
>> > Hi Frediano, Hi List,<br>
>> ><br>
>> > after I was able to start the virtual machine with the GUI I tried your command<br>
>> ><br>
>> > LANG=C remote-viewer spice://<a href="http://192.168.178.51:5900" rel="noreferrer" target="_blank">192.168.178.51:5900</a><br>
>> ><br>
>> > and it started right up into the virtual machine.<br>
>> ><br>
>> > HOWEVER<br>
>> ><br>
>> > even<br>
>> ><br>
>> > remote-viewer spice://<a href="http://192.168.178.51:5900" rel="noreferrer" target="_blank">192.168.178.51:5900</a><br>
>> ><br>
>> > now opens the virtual machine - without problems. (Yeah - i am stunned myself)<br>
>> ><br>
>> > I slept over it then tried again today - thinking it never worked again the day after...<br>
>> ><br>
>> > Result is that I am able to open up the VM just fine....<br>
>> ><br>
>> > This is the worst - something works without changing anything so I have no chance of knowing what the problem is/was in the first place<br>
>> ><br>
>> > At a loss for words,<br>
>> ><br>
>> > Stefan<br>
>> ><br>
>><br>
>> Well, problem solved :-)<br>
>><br>
>> I would check with a command like "history | grep spice | hexdump -C"<br>
>> (you can post the output) for some weird input. The errors you<br>
>> reported are basically (or at least they should) parsing errors for<br>
>> the URI you passed.<br>
>><br>
>> Frediano<br>
>><br>
>><br>
>><br>
>> > Am Do., 17. Nov. 2022 um 10:30 Uhr schrieb Stefan Silberstein <<a href="mailto:linuxstony@gmail.com" target="_blank">linuxstony@gmail.com</a>>:<br>
>> >><br>
>> >> Some details:<br>
>> >> Operating System: Kubuntu 22.04<br>
>> >> KDE Plasma Version: 5.24.6<br>
>> >> KDE Frameworks Version: 5.92.0<br>
>> >> Qt Version: 5.15.3<br>
>> >> Kernel Version: 5.15.0-53-generic (64-bit)<br>
>> >> Graphics Platform: X11<br>
>> >> Processors: 8 × AMD Ryzen 5 1500X Quad-Core Processor<br>
>> >> Memory: 15.6 GiB of RAM<br>
>> >> Graphics Processor: NVIDIA GeForce GTX 1050 Ti/PCIe/SSE2<br>
>> >><br>
>> >> Opening a Konsole "bash":<br>
>> >><br>
>> >> Konsole<br>
>> >> Version 21.12.3<br>
>> >><br>
>> >><br>
>> >> Locale:<br>
>> >><br>
>> >> stony@Aperture-Science:~$ locale LANG=de_DE.UTF-8 LANGUAGE= LC_CTYPE="de_DE.UTF-8" LC_NUMERIC="de_DE.UTF-8" LC_TIME="de_DE.UTF-8" LC_COLLATE="de_DE.UTF-8" LC_MONETARY="de_DE.UTF-8" LC_MESSAGES="de_DE.UTF-8" LC_PAPER="de_DE.UTF-8" LC_NAME="de_DE.UTF-8" LC_ADDRESS="de_DE.UTF-8" LC_TELEPHONE="de_DE.UTF-8" LC_MEASUREMENT="de_DE.UTF-8" LC_IDENTIFICATION="de_DE.UTF-8" LC_ALL=<br>
>> >><br>
>> >> I will try to open it today at noon - during my lunch break.<br>
>> >> (ATM I am glad it works because i gotta work from home and this windows-machine is the only way to connect to the Server in my company for me)<br>
>> >><br>
>> >> I will get back to you in approximately two hours.<br>
>> >><br>
>> >> Stefan<br>
>> >><br>
>> >> Am Do., 17. Nov. 2022 um 10:18 Uhr schrieb Frediano Ziglio <<a href="mailto:freddy77@gmail.com" target="_blank">freddy77@gmail.com</a>>:<br>
>> >>><br>
>> >>> Il giorno gio 17 nov 2022 alle ore 09:13 Stefan Silberstein<br>
>> >>> <<a href="mailto:linuxstony@gmail.com" target="_blank">linuxstony@gmail.com</a>> ha scritto:<br>
>> >>> ><br>
>> >>> > Hi,<br>
>> >>> ><br>
>> >>> > no this is the normal forward-slash with "shift+7" on the german keyboard - googlemail messed it up translating it to something else.<br>
>> >>> > The URL  is normally typed.<br>
>> >>> ><br>
>> >>> > This is really weird and I will try to help you as much as I can to get to the bottom of it.<br>
>> >>> ><br>
>> >>> > Stefan<br>
>> >>> ><br>
>> >>><br>
>> >>> That's pretty weird. That code has been there for ages. I tried but no<br>
>> >>> problems for me.<br>
>> >>> This operating system and version are you using?<br>
>> >>> Which shell?<br>
>> >>> Maybe it's the locale? Try launching something like "LANG=C<br>
>> >>> remote-viewer spice://<a href="http://192.168.178.51:5900" rel="noreferrer" target="_blank">192.168.178.51:5900</a>" (LANG environment change)<br>
>> >>><br>
>> >>> Frediano<br>
>> >>><br>
>> >>> > Am Do., 17. Nov. 2022 um 10:08 Uhr schrieb Frediano Ziglio <<a href="mailto:freddy77@gmail.com" target="_blank">freddy77@gmail.com</a>>:<br>
>> >>> >><br>
>> >>> >> Il giorno gio 17 nov 2022 alle ore 07:57 Stefan Silberstein<br>
>> >>> >> <<a href="mailto:linuxstony@gmail.com" target="_blank">linuxstony@gmail.com</a>> ha scritto:<br>
>> >>> >> ><br>
>> >>> >> > Hello again,<br>
>> >>> >> ><br>
>> >>> >> > so - yesterday I worked from home - as I wrote I was able to connect by specifying the user root with "remote-viewer spice://<a href="http://root@192.168.178.51:5900" rel="noreferrer" target="_blank">root@192.168.178.51:5900</a>"<br>
>> >>> >> ><br>
>> >>> >> > Today I want to connect the exact same way (yesterday i simply closed the remote-viewer window and the server keept on running so the windows-VM was running the whole night) - and I can not connect.<br>
>> >>> >> ><br>
>> >>> >> > Error Message on the console  "** (remote-viewer:6146): CRITICAL **: 07:55:52.853: virt_viewer_util_extract_host: assertion 'uri != NULL' failed"<br>
>> >>> >> > Error Message on the popup says translated: Connectiontype could not be determined by URI.<br>
>> >>> >> ><br>
>> >>> >><br>
>> >>> >> Hi,<br>
>> >>> >>    That means that the code was not able to parse the URI.<br>
>> >>> >><br>
>> >>> >> > IP of the server itself is 192.168.178.51<br>
>> >>> >> > IP of the Virtual Machine is 192.168.178.64 and i pingable<br>
>> >>> >> > Port 5900 on the server is open: 5900/tcp open  vnc<br>
>> >>> >> > remote-viewer --spice-debug spice:⁄⁄<a href="http://192.168.178.51:5900" rel="noreferrer" target="_blank">192.168.178.51:5900</a> does not produce a more verbose output :(<br>
>> >>> >> ><br>
>> >>> >><br>
>> >>> >> In this example you are not using ASCII slashes (//), maybe that's the problem.<br>
>> >>> >><br>
>> >>> >> > Update in the meantime<br>
>> >>> >> > But maybe this is helpful to you:<br>
>> >>> >> ><br>
>> >>> >> > I simply started "remote-viewer --spice-debug"<br>
>> >>> >> > Then i got the GUI (which i wasnt even aware it existed).<br>
>> >>> >> ><br>
>> >>> >> > When I choose the same entry on that list - I AM able to connect.<br>
>> >>> >> ><br>
>> >>> >> > So the error only exists only when I try to connect via command line?! (This is when I am able to connect tomorrow via GUI ;) )<br>
>> >>> >> ><br>
>> >>> >> > Shouldn't this be the same ?<br>
>> >>> >> ><br>
>> >>> >> > I mabe I can help - maybe this is indeed a bug?<br>
>> >>> >> ><br>
>> >>> >> > Stefan<br>
>> >>> >> ><br>
>> >>> >><br>
>> >>> >> Frediano<br>
>> >>> >><br>
>> >>> >> > Am Mi., 16. Nov. 2022 um 09:37 Uhr schrieb Victor Toso <<a href="mailto:victortoso@redhat.com" target="_blank">victortoso@redhat.com</a>>:<br>
>> >>> >> >><br>
>> >>> >> >> On Wed, Nov 16, 2022 at 09:27:21AM +0100, Stefan Silberstein wrote:<br>
>> >>> >> >> > I appreciate the time to answer me.<br>
>> >>> >> >> ><br>
>> >>> >> >> > In the meantime (out of desperation because i needed the virtualmachine for<br>
>> >>> >> >> > work) I gave it a go with specifying root as user and not the servers<br>
>> >>> >> >> > username "server".<br>
>> >>> >> >> ><br>
>> >>> >> >> > I was able to connect to the virtual Windows10 installation with<br>
>> >>> >> >> ><br>
>> >>> >> >> > remote-viewer spice://<a href="http://root@192.168.178.51:5900" rel="noreferrer" target="_blank">root@192.168.178.51:5900</a><br>
>> >>> >> >><br>
>> >>> >> >> Cool<br>
>> >>> >> >><br>
>> >>> >> >> > But again - then I dont unterstand why it worked as user and<br>
>> >>> >> >> > later on with specifying the user later on (which doesn't work<br>
>> >>> >> >> > right now anymore)<br>
>> >>> >> >> ><br>
>> >>> >> >> > So it is a permissions problem on my side and I successfully<br>
>> >>> >> >> > wasted your time. :/<br>
>> >>> >> >> ><br>
>> >>> >> >> > Sorry about that.<br>
>> >>> >> >><br>
>> >>> >> >> Don't worry about that. Happy to hear it worked.<br>
>> >>> >> >><br>
>> >>> >> >> ><br>
>> >>> >> >> > This happens when "users" try to play with the big boys toys :D<br>
>> >>> >> >> ><br>
>> >>> >> >> > Have a nice day you all and thanks for your time.<br>
>> >>> >> >><br>
>> >>> >> >> You too.<br>
>> >>> >> >> Cheers,<br>
>> >>> >> >><br>
>> >>> >> >> ><br>
>> >>> >> >> > Stefan<br>
>> >>> >> >> ><br>
>> >>> >> >> > Am Mi., 16. Nov. 2022 um 09:21 Uhr schrieb Victor Toso <<br>
>> >>> >> >> > <a href="mailto:victortoso@redhat.com" target="_blank">victortoso@redhat.com</a>>:<br>
>> >>> >> >> ><br>
>> >>> >> >> > > Hi Stefan,<br>
>> >>> >> >> > ><br>
>> >>> >> >> > > On Tue, Nov 15, 2022 at 09:53:05PM +0100, Stefan Silberstein wrote:<br>
>> >>> >> >> > > > Hello developers,<br>
>> >>> >> >> > > ><br>
>> >>> >> >> > > > I can imagine that this will be an annoying question for you -<br>
>> >>> >> >> > > > so I apologize in advance.<br>
>> >>> >> >> > > ><br>
>> >>> >> >> > > > I am a user - with a longer history with linux BUT i am<br>
>> >>> >> >> > > > completely new to virtualization.<br>
>> >>> >> >> > > > Due to the fact that I got a server donated to me I wanted to<br>
>> >>> >> >> > > > give it a go and it worked like a charm.<br>
>> >>> >> >> > > ><br>
>> >>> >> >> > > > Installed virt-manager, installed Windows10  connected with<br>
>> >>> >> >> > > > virt-manager - absolutely no problem.<br>
>> >>> >> >> > > ><br>
>> >>> >> >> > > > Due to the fact that I need dual monitors I learned that I<br>
>> >>> >> >> > > > could add another display and connect with spice - and it<br>
>> >>> >> >> > > > worked immediately.<br>
>> >>> >> >> > > ><br>
>> >>> >> >> > > > BUT - without me changing anything (consciously) I wasn't able<br>
>> >>> >> >> > > > to connect to the virtual machine the next week.<br>
>> >>> >> >> > > ><br>
>> >>> >> >> > > > It refuses with "Verbindungstyp konnte nicht von URI ermittelt werden"<br>
>> >>> >> >> > > > (Connection type could not be determined by URI)<br>
>> >>> >> >> > > ><br>
>> >>> >> >> > > > Then i tried to connect with sudo and specifying the user in<br>
>> >>> >> >> > > > the command line and it once again connected:<br>
>> >>> >> >> > > ><br>
>> >>> >> >> > > > sudo remote-viewer  spice:⁄⁄<a href="http://server@192.168.178.51:5900" rel="noreferrer" target="_blank">server@192.168.178.51:5900</a><br>
>> >>> >> >> > ><br>
>> >>> >> >> > > Perhaps the URL is the problem. If the IP is 192.168.178.51 and<br>
>> >>> >> >> > > the port for the VM is 5900, then try<br>
>> >>> >> >> > ><br>
>> >>> >> >> > >     remote-viewer spice://<a href="http://192.168.178.51:5900" rel="noreferrer" target="_blank">192.168.178.51:5900</a><br>
>> >>> >> >> > ><br>
>> >>> >> >> > > If server is a dns that can be resolved, should be fine to use it<br>
>> >>> >> >> > > instead of ip address<br>
>> >>> >> >> > ><br>
>> >>> >> >> > >     remote-viewer spice://server:5900<br>
>> >>> >> >> > ><br>
>> >>> >> >> > ><br>
>> >>> >> >> > > > And now - again without changing anything - it doesn't connect<br>
>> >>> >> >> > > > with that command as well.<br>
>> >>> >> >> > > ><br>
>> >>> >> >> > > > I have sadly NO clue whatsoever where to even search for a<br>
>> >>> >> >> > > > solution - the internet didn't help me here...<br>
>> >>> >> >> > > ><br>
>> >>> >> >> > > > Do you have any hint at all what I might do wrong here?<br>
>> >>> >> >> > > ><br>
>> >>> >> >> > > > The machine is available - the port is open and visible<br>
>> >>> >> >> > > > PORT     STATE SERVICE<br>
>> >>> >> >> > > > 22/tcp   open  ssh<br>
>> >>> >> >> > > > 80/tcp   open  http<br>
>> >>> >> >> > > > 3389/tcp open  ms-wbt-server<br>
>> >>> >> >> > > > 5900/tcp open  vnc<br>
>> >>> >> >> > > ><br>
>> >>> >> >> > > > ufw on the server is shut down.<br>
>> >>> >> >> > > ><br>
>> >>> >> >> > > > ANY help would be greatly appreciated.<br>
>> >>> >> >> > ><br>
>> >>> >> >> > > You can get more verbose information of issues with --spice-debug<br>
>> >>> >> >> > > command line option too.<br>
>> >>> >> >> > ><br>
>> >>> >> >> > > Cheers,<br>
>> >>> >> >> > > Victor<br>
>> >>> >> >> > ><br>
</blockquote></div>