qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: bala suru <balaqemu@gmail.com>
To: Stefan Hajnoczi <stefanha@gmail.com>, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] unable to access the serial port on the Vm
Date: Tue, 13 Sep 2011 10:29:15 +0530	[thread overview]
Message-ID: <CAOYyr-u+=sSojtEj909ksLWZeQk+7pox4T9F-_bKKBAjz79ikQ@mail.gmail.com> (raw)
In-Reply-To: <CAJSP0QWQf6=ARq1EHCb9T4J4PSwQE359qt+jm9KxQZZLU8Ggkw@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1460 bytes --]

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 = "<devices><serial type=\"dev\"><source
path=\"/dev/ttyACM0\"/><target port=\"0\"/></serial><console type=\"pty\"
tty=\"/dev/pts/5\"><source path=\"/dev/pts/5\"/><target
port=\"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 = [ type = "kvm",
> >           data = "<devices><serial type=\"pty\"><source
> > path=\"/dev/pts/5\"/><target port=\"0\"/></serial><console type=\"pty\"
> > tty=\"/dev/pts/5\"><source path=\"/dev/pts/5\"/><target
> > port=\"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?  In that case you can try
> this domain XML:
>
> <serial type="dev">
>    <source path="/dev/ttyACM0" />
>    <target port="0" />
> </serial>
>
> Stefan
>

[-- Attachment #2: Type: text/html, Size: 2431 bytes --]

  reply	other threads:[~2011-09-13  4:59 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-08 17:12 [Qemu-devel] unable to access the serial port on the Vm bala suru
2011-09-09 18:00 ` Stefan Hajnoczi
     [not found]   ` <CAOYyr-sgbRtpBYsWUUwZufzniTxqV3nJkLQyR=RMOR53+4gDtA@mail.gmail.com>
2011-09-11 15:26     ` Stefan Hajnoczi
     [not found]       ` <CAOYyr-vK987n_=7uzKkacS5pyQE88CUZvNK9WpNVO+DRvVtZkA@mail.gmail.com>
     [not found]         ` <CAJSP0QVqagWuE3jF39bJBXp5LHZs+CKmQ-NpQ5QTiARH9FVcSQ@mail.gmail.com>
2011-09-12  9:26           ` Stefan Hajnoczi
2011-09-12 10:19             ` bala suru
2011-09-12 10:54               ` Stefan Hajnoczi
2011-09-12 11:35                 ` bala suru
2011-09-12 18:21                   ` Stefan Hajnoczi
2011-09-13  4:59                     ` bala suru [this message]
2011-09-13  5:23                       ` Stefan Hajnoczi
2011-09-13  6:27                         ` bala suru

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAOYyr-u+=sSojtEj909ksLWZeQk+7pox4T9F-_bKKBAjz79ikQ@mail.gmail.com' \
    --to=balaqemu@gmail.com \
    --cc=qemu-devel@nongnu.org \
    --cc=stefanha@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).