From: Alex Williamson <alex.williamson@redhat.com>
To: Daniel Pocock <daniel@pocock.pro>
Cc: kvm@vger.kernel.org
Subject: Re: video/GPU passthrough, second monitor, shared keyboard/mouse
Date: Wed, 29 Jul 2015 12:41:18 -0600 [thread overview]
Message-ID: <1438195278.13460.53.camel@redhat.com> (raw)
In-Reply-To: <55B8B1FA.8030003@pocock.pro>
On Wed, 2015-07-29 at 12:59 +0200, Daniel Pocock wrote:
>
> Hi all,
>
> I'm looking at a setup that involves a Linux host and a non-Linux VM
> under KVM, on a workstation for a power-user.
>
> The non-Linux VM would have a dedicated video card/GPU, to maximize
> compatibility and performance for certain applications.
>
> It may be possible to interact with the VM using SPICE but it is
> possible to just have a second monitor for it too.
>
> So my questions are:
>
> - Does all this make sense?
Yes, though your last point about using spice is a bit off. With an
assigned GPU, the content of the display is owned by the guest, the
spice server in the host does not have access to it. The spice
connection is therefore limited to any emulated graphics that may also
be attached to the VM. It's possible to mirror the display between
physical and emulated graphics, if the guest supports it, but
performance will suffer substantially. It's best to consider only
guest-based remote access mechanisms for GPU assignment VMs (ex.
guest-based VNC server).
> - How to share the keyboard and mouse between the host and the VM? E.g.
> should I just use Synergy or x2vnc or is there a nicer solution with KVM
> or qemu?
Synergy works. Any mechanism you would use to control a separate
physical system works. It's also possible to assign a USB controller to
the VM and use a KVM switch between host and guest as well. USB
"passthrough" (vs assignment) is also possible for individual USB
endpoints.
> - are any other free software solutions (e.g. VirtualBox, Xen) likely to
> be better or worse for such a project?
You're asking this to the kvm list, obviously we want kvm to be the best
solution for this. Thanks,
Alex
next prev parent reply other threads:[~2015-07-29 18:41 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-29 10:59 video/GPU passthrough, second monitor, shared keyboard/mouse Daniel Pocock
2015-07-29 18:41 ` Alex Williamson [this message]
2015-07-30 12:09 ` Daniel Pocock
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=1438195278.13460.53.camel@redhat.com \
--to=alex.williamson@redhat.com \
--cc=daniel@pocock.pro \
--cc=kvm@vger.kernel.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.