qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] unable to access the serial port on the Vm


From: bala suru
Subject: Re: [Qemu-devel] unable to access the serial port on the Vm
Date: Tue, 13 Sep 2011 10:29:15 +0530

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 = "" 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 <address@hidden> wrote:
On Mon, Sep 12, 2011 at 12:35 PM, bala suru <address@hidden> 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 = "" 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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]