hubertf's NetBSD Blog
Send interesting links to hubert at feyrer dot de!
[20070425] qemu vs. X *Updated(
Trying to run qemu on a remote machine today gave me:
local% ssh -X remote
remote%  qemu $options 
X Error of failed request:  BadWindow (invalid Window parameter)
  Major opcode of failed request:  25 (X_SendEvent)
  Resource id in failed request:  0x40
  Serial number of failed request:  12
  Current serial number in output stream:  17 
After a round of cursing and googling, the solution seems to be to use "ssh -Y":
remote% exit
local% ssh -Y remote
remote%  qemu $options 
... and things work as expected. Doh! (FWIW, what does "ssh -Y do? According to the manpage here, it "Enables trusted X11 forwarding" - how obvious from the error message! :-/)

Now if qemu from a remote machine was actually usable that would be nice - turns out the scroll speed is unacceptably slow, though. :(

Update: I was using qemu 0.8.0 on these machines, and after upgrading to 0.9.0, this version also offers running Qemu with a VNC server that one can then connect to. I still have to try that one from at home (working around a few firewalls :-/), but with some tricky SSH port forwardings that may be possible - and can't possibly be slower than just Qemu via remote X. Thanks to sec for the hint!

[Tags: ]

Disclaimer: All opinion expressed here is purely my own. No responsibility is taken for anything.

Access count: 24523907
Copyright (c) Hubert Feyrer