[libvirt-users] how to use openConsole and openGraphics

Eric Blake eblake at redhat.com
Sat Dec 28 04:16:08 UTC 2013


On 12/27/2013 08:38 PM, yue wrote:

[please don't top-post on technical lists]

> the theory , i mean   how libvirt get guest's console( or graphic screen), via what kind of channel, then how libvirt show guest's screen.

Libvirt has a notion of a virStreamPtr, which is an object which tracks
an arbitrary pass-through channel.  Any API such as virDomainOpenConsole
that needs to pass data in both directions between the client and the
source opens up a virStreamPtr, then passes that data alongside all the
other RPC calls.  For more details on how the data is passed, read
docs/internals/rpc.html, and look at the stream type packets.  A
virStreamPtr is also used under the hood in tunneled migration.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 604 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20131227/4b3810d4/attachment.sig>


More information about the libvirt-users mailing list