Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1H5Nt0-0003t4-9l for qemu-devel@nongnu.org; Fri, 12 Jan 2007 10:00:06 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1H5Nsw-0003pP-8w for qemu-devel@nongnu.org; Fri, 12 Jan 2007 10:00:04 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H5Nsv-0003pB-Se for qemu-devel@nongnu.org; Fri, 12 Jan 2007 10:00:01 -0500 Received: from [62.49.18.88] (helo=eridanilinux.demon.co.uk) by monty-python.gnu.org with esmtp (Exim 4.52) id 1H5Nsu-0003KS-3T for qemu-devel@nongnu.org; Fri, 12 Jan 2007 10:00:00 -0500 Received: from [127.0.0.1] (localhost [127.0.0.1]) by eridanilinux.demon.co.uk (8.11.6p2/8.11.6) with ESMTP id l0CExlQ19267 for ; Fri, 12 Jan 2007 14:59:49 GMT Message-ID: <45A7A25C.4020103@eridani.co.uk> Date: Fri, 12 Jan 2007 14:59:40 +0000 From: Michael McConnell MIME-Version: 1.0 Subject: Re: [Qemu-devel] Using QEMU as a terminal server? References: <1dc7f0e30701120633x5a91ece0x4464b83b5bbed106@mail.gmail.com> In-Reply-To: <1dc7f0e30701120633x5a91ece0x4464b83b5bbed106@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Alexandre Leclerc wrote: > Hi all, > > I was thinking to something weird, but I don't know if it is totally > doable. So I ask your expertise. (Being under Linux to use W2K > images.) > > - ssh login. > - then the login script launch a qemu session without the X session > (running without visual). > - there would be UltraVNC server inside the OS > - find a way to catch the nat ip address of this new qemu session > - trhu the ssh tunel, connect UltraVNC viewer to server. > > Here we go I have a nive 'Terminal Server' connection. > > Ok, if the ssh thing is not working, or simply, let us remove this > aspect; would such a thing be possible? > > Having something like that would be amasing because then doing > windows-like terminal server on linux becomes possible. You map the > sessions in read-only to a master image file and there you go. I do something very similar. My localnet uses IPs in 192.168.a.0/24, and my QEMU sessions operate on separate 192.168.b.x/30 subnets, and for my Win2000 QEMU session I have ipchains NATing outbound connections and transparently forwarding a 192.168.a.y address that is aliased on the host's eth0 (the host handles 192.168.a.z as normal) to the 192.168.b.x/30 address used within QEMU. I then just open a VNC connection to 192.168.a.y port 5900, and it all works fine. This forwarding means my net-facing box which handles inbound SSH from the internet can "see" the QEMU virtual machine without requiring a second level of port-forwarding. My ssh looks something like this, from the outside world: ssh -L5944:192.168.96.y:5900 -C username@hostname The -C compresses, and despite VNC doing a lot of compression on its own, this does help, especially on low-bandwidth connections (e.g. dial-up, GPRS) If you want to use user-mode networking instead of the tunnelling device, use the "-redir tcp:5900::5900" option for QEMU, then the host's port 5900 will be forwarded into the QEMU VNC server. Hope that's of some help. -- -- Michael "Soruk" McConnell Eridani Star System MailStripper - http://www.MailStripper.eu/ - SMTP spam filter Mail Me Anywhere - http://www.MailMeAnywhere.com/ - Mobile email