[libvirt-users] how to use openConsole and openGraphics

hi,all 1.how to use openConsole and openGraphics? 2.what is the theory of that? thanks

On 12/26/2013 01:46 AM, yue wrote:
hi,all 1.how to use openConsole and openGraphics?
See tools/virsh-console.c for an example use of virDomainOpenConsole. virDomainOpenGraphics is probably similar.
2.what is the theory of that?
Your question is very vague. What are you trying to accomplish, so that we can better determine how to answer it? -- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org

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. thanks, Eric Blake At 2013-12-28 04:30:30,"Eric Blake" <eblake@redhat.com> wrote:
On 12/26/2013 01:46 AM, yue wrote:
hi,all 1.how to use openConsole and openGraphics?
See tools/virsh-console.c for an example use of virDomainOpenConsole. virDomainOpenGraphics is probably similar.
2.what is the theory of that?
Your question is very vague. What are you trying to accomplish, so that we can better determine how to answer it?
-- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org

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
participants (2)
-
Eric Blake
-
yue