From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:49433) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R3L5a-0005pk-KB for qemu-devel@nongnu.org; Tue, 13 Sep 2011 00:59:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R3L5Z-0007s3-Hx for qemu-devel@nongnu.org; Tue, 13 Sep 2011 00:59:18 -0400 Received: from mail-pz0-f42.google.com ([209.85.210.42]:38779) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R3L5Z-0007ro-3G for qemu-devel@nongnu.org; Tue, 13 Sep 2011 00:59:17 -0400 Received: by pzk37 with SMTP id 37so348576pzk.29 for ; Mon, 12 Sep 2011 21:59:15 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: <20110909180003.GA30386@stefanha-thinkpad.localdomain> <20110912105426.GA5850@stefanha-thinkpad.localdomain> Date: Tue, 13 Sep 2011 10:29:15 +0530 Message-ID: From: bala suru Content-Type: multipart/alternative; boundary=f46d0442809e5ef28d04accb8123 Subject: Re: [Qemu-devel] unable to access the serial port on the Vm List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Hajnoczi , qemu-devel@nongnu.org --f46d0442809e5ef28d04accb8123 Content-Type: text/plain; charset=ISO-8859-1 Yes, I'm connecting a USB to serial device to the host (ubuntu 11.04) and I want that serial port on my VM . I tried the solution you have suggested but still same problem , can not see the virtual serial port (ttyACM0) on VM but I could see on the HOST . The following is the line I have tried . RAW = [ type = "kvm", data = "" ] On Mon, Sep 12, 2011 at 11:51 PM, Stefan Hajnoczi wrote: > On Mon, Sep 12, 2011 at 12:35 PM, bala suru wrote: > > But I need to connect a some USB device which will create a virtual > > serialport called /dev/ttyACM0, I cloud not see this on the Vm running .. > > > > This XML format I used > > RAW = [ type = "kvm", > > data = " > path=\"/dev/pts/5\"/> > tty=\"/dev/pts/5\"> > port=\"0\"/>" ] > > I am not sure what you are trying to do. > > Are you attaching a USB serial device to the host and you would like > to connect that to the VM's serial port? In that case you can try > this domain XML: > > > > > > > Stefan > --f46d0442809e5ef28d04accb8123 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Yes, I'm connecting a USB to serial device to the host (ubuntu 11.04) a= nd I want that serial port on my VM .
I tried the solution you have sugg= ested but still same problem , can=A0 not see the virtual serial port (ttyA= CM0) on VM but I could see on the HOST .

The following is the line=A0 I have tried .
=A0RAW =3D [ type =3D "kvm",
=A0=A0=A0=A0= =A0=A0=A0=A0=A0 data =3D "<devices><serial type=3D\"dev\= "><source path=3D\"/dev/ttyACM0\"/><target port= =3D\"0\"/></serial><console type=3D\"pty\" = tty=3D\"/dev/pts/5\"><source path=3D\"/dev/pts/5\"= ;/><target port=3D\"0\"/></console></devices>= ;" ]




On Mon, Sep 12, 2011 at 11:51 PM= , Stefan Hajnoczi <stefanha@gmail.com> wrote:
On Mon, Sep 12, 2011 at 12:35 PM, bala suru <balaqemu@gmail.com> wrote:
> But I need to connect a some USB device which will create a virtual > serialport called /dev/ttyACM0, I cloud not see this on the Vm running= ..
>
> This XML format I used
> RAW =3D [ type =3D "kvm",
> =A0=A0=A0=A0=A0=A0=A0=A0=A0 data =3D "<devices><serial t= ype=3D\"pty\"><source
> path=3D\"/dev/pts/5\"/><target port=3D\"0\"/= ></serial><console type=3D\"pty\"
> tty=3D\"/dev/pts/5\"><source path=3D\"/dev/pts/5\= "/><target
> port=3D\"0\"/></console></devices>" ]
I am not sure what you are trying to do.

Are you attaching a USB serial device to the host and you would like
to connect that to the VM's serial port? =A0In that case you can try this domain XML:

<serial type=3D"dev">
=A0 =A0<source path=3D"/dev/ttyACM0" />
=A0 =A0<target port=3D"0" />
</serial>

Stefan

--f46d0442809e5ef28d04accb8123--