From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:44723) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qusdl-0001v4-O0 for qemu-devel@nongnu.org; Sat, 20 Aug 2011 16:59:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qusdk-0004Uy-Kv for qemu-devel@nongnu.org; Sat, 20 Aug 2011 16:59:37 -0400 Received: from mail-gx0-f173.google.com ([209.85.161.173]:39547) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qusdk-0004Uu-HA for qemu-devel@nongnu.org; Sat, 20 Aug 2011 16:59:36 -0400 Received: by gxk26 with SMTP id 26so3473257gxk.4 for ; Sat, 20 Aug 2011 13:59:36 -0700 (PDT) Message-ID: <4E502034.1060907@landley.net> Date: Sat, 20 Aug 2011 15:59:32 -0500 From: Rob Landley MIME-Version: 1.0 References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] Serial port on virtual machines List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: bala suru Cc: qemu-devel@nongnu.org On 08/18/2011 10:00 AM, bala suru wrote: > Hi, > > I'm running VM on kvm-qemu hyper visor . I need to access the serail > port on the VM , > I tried the sample code to read/write com port but I get port error when > ever I tried write something to the port(dev/ttyS0) . > > the same code work fine on the normal OS .. is it the same way as > normal OS for accessing the serial port in vms ..? I'm using a serial console in my system images. Download any the system-image tarballs at: http://landley.net/aboriginal/downloads/binaries/ Then use the "./run-emulator.sh" scripts, which should give you a serial console in the emulated Linux system connected to qemu's stdin/stdout. The qemu command line is in that script. Rb