<div dir="ltr"><div class="gmail_quote"><div dir="ltr">Getting no output on /dev/hvcNN<br><div class="gmail_extra"><br><div class="gmail_quote"><span class="">On Thu, Mar 19, 2015 at 3:15 PM, Daniel P. Berrange <span dir="ltr"><<a href="mailto:berrange@redhat.com" target="_blank">berrange@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span>On Thu, Mar 19, 2015 at 01:29:37PM +0530, Neel Basu wrote:<br>
> HI!,<br>
><br>
> I am using virt-manager GUI. There I can add a `Console Device`  through<br>
> Add Hardware. I can add a virtio pty WITHOUT restarting the VM. also I get<br>
> a pty allocated to host machine say `/dev/pty/M`<br>
><br>
> My expectation is this `host:/dev/pty/M` is connected with a<br>
> `guest:/dev/ttyN`. so If I open minicom or screen and write to<br>
> `host:/dev/pty/M` it will be propagated to 'guest:/dev/ttyN'. Is my<br>
> expectation correct ?<br>
><br>
> If it is correct how will I know what is the guest tty allocated against<br>
> this host pty ?<br>
<br>
</span>No, that's not how it works.  The <console> devices are exposed to<br>
the guest as /dev/hvcNN devices. Starting with NN==0<br>
<span><br></span></blockquote></span><div>as per the dumpxml output </div><span class=""><div><br></div><div><console type='pty' tty='/dev/pts/1'></div></span><div>      <source path='/dev/pts/1'/></div><div>      <target type='serial' port='0'/></div><div>      <alias name='serial0'/></div><div></console></div><div><br></div><div>I expected host:/dev/pts/1 is paired with guest:/dev/hvc0</div><div>So I tried to communicate with minicom,echo,cat with these two but I saw no output. what I echo on /dev/pts/1 doesn't pass to /dev/hvc0 or vice verse. </div><span class=""><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span>
<br>
> Similar to console device I can add a Serial device but that requires a<br>
> reboot of the guest VM. However I tried that though I prefer to do it<br>
> without a guest restart.<br>
><br>
> <serial type='pty'><br>
>       <source path='/dev/pts/1'/><br>
>       <target port='0'/><br>
>       <alias name='serial0'/><br>
>  </serial><br>
><br>
> here also I expected host:/dev/pts/1 is paired with /dev/ttyS0 but couldn't<br>
> communicate.<br>
<br>
</span>The serial port device supported is a 1990 era ISA bus serial port<br>
so there's no hotplug for that. Only the paravirt consoles can be<br>
hotplugged.<br>
<br>
Regards,<br>
Daniel<br>
<span><font color="#888888">--<br>
|: <a href="http://berrange.com" target="_blank">http://berrange.com</a>      -o-    <a href="http://www.flickr.com/photos/dberrange/" target="_blank">http://www.flickr.com/photos/dberrange/</a> :|<br>
|: <a href="http://libvirt.org" target="_blank">http://libvirt.org</a>              -o-             <a href="http://virt-manager.org" target="_blank">http://virt-manager.org</a> :|<br>
|: <a href="http://autobuild.org" target="_blank">http://autobuild.org</a>       -o-         <a href="http://search.cpan.org/~danberr/" target="_blank">http://search.cpan.org/~danberr/</a> :|<br>
|: <a href="http://entangle-photo.org" target="_blank">http://entangle-photo.org</a>       -o-       <a href="http://live.gnome.org/gtk-vnc" target="_blank">http://live.gnome.org/gtk-vnc</a> :|<br>
</font></span></blockquote></span></div><br></div></div>
</div><br></div>