Manage KVM virtual machines with virt-viewer in Windows 7 Windows 8 or 10

virt-viewer is a minimal tool for displaying the graphical console of a virtual machine. The console is accessed using the VNC or SPICE protocol. The guest can be referred to based on its name, ID, or UUID. If the guest is not already running, then the viewer can be told to wait until is starts before attempting to connect to the console The viewer can connect to remote hosts to lookup the console information and then also connect to the remote console using the same network transport.

You can download the installer of virt-viewer for your Wndows 7 or Windows 8 or Windows 10 distro to manage your KVM Guest VMs remotely from your Desktop MS Windows.

Release Date: Monday Jan 8th, 2015
Download Links below:
virt-viewer 3.1 (gpg) Source Code
Win x86 MSI (gpg) Installer 32bit
Win x64 MSI (gpg) Installer 64bit

Current release features:

  • Last release to support GTK2 for Linux. The next 4.0 release will be GTK3 only
  • Don’t add URI scheme / path info to oVirt URIs
  • Require spice-gtk >= 0.30
  • Enable webdav folder sharing with spice
  • Add preferences UI dialog
  • Take –direct into account when checking if guest is reachable
  • Take SPICE proxy into account when connecting to oVirt instances
  • Fail gracefully when hostname is not returned by oVirt
  • Don’t show empty foreign menu on secondary displays
  • Avoid accidentally trying to connect to port 0 when oVirt doesn’t specify a port number
  • Correctly update geometry when enabling/disabling display heads
  • Avoid accidentally creating extra monitors when using configuration file monitor mapping
  • Exit normally when cancelling connect dialog
  • Don’t wait for a guest that we know will never show up
  • Fix crash when using –reconnect with SPICE
  • Avoid zooming out if it would decrease window size below minimum required for top menu display
  • Fix crash when disabling last enabled display
  • Honour changes in display position from guest
  • Don’t show error dialog twice for unknown graphics type
  • Allow to cancel oVirt auth without error
  • Set sensitivity of display menu based on whether it is usable or not
  • Set sensitivity of tool bar buttons based on whether they are usable or not
  • Set guest name reported by VNC
  • Fix crash when using gtk-vnc 0.3.8
  • Fix alt-tab behaviour in choose VM dialog
  • Don’t allow missing display in monitor mapping config
  • Add –with-osid flag to configure to allow specifying the operating system build target. The values should be based on libosinfo OS short IDs.
  • Ensure windows installer places menu icon for all users not just admin. Requires manual uninstall of previous windows version
  • Require address in remote viewer connect dialog
  • Automatically retry VNC connection after auth failure
  • Drop GTK2 support for Windows builds
  • Enable keepalives on libvirt conncetion
  • Allow resize of window to arbitrary size
  • Fix thread safety handling event callbacks
  • Avoid deprecation warnings with newer glib
  • Pulled in multiple fixes for event loop from libvirt-glib
  • Fix misc bugs reported by coverity
  • Fix binary ID in MSI installer
  • Stop polling libvirt after reconnecting to libvirt

 

Step 1: In your KVM virt-manager go to :

Virtual Machine Details -> Display Spice

then change the Spice Server config to below config. Make sure you must put a password in this so that other users ca not access your console view window if it case you forgot to logout then someone knows the url link of your virt-viewer VM then they can have access into it.

Type: Spice server
Address: All interfaces
Password: YourPassword
Port: Set to Auto (This can be change anytime according to your setup)

virt_viewer_1a

Step 2: If your running Windows7 you can just double click the file: virt-viewer-x64-3.1.msi to install it. However if your using Windows8 or Windows 10 you can run it in ‘Compatibility mode’ to install this file. Once its done go to:

Start -> All Programs -> VirtViewer -> Remote Viewer

virt_viewer_2

spice://kvm-server-hostname.mytech:5900

Then you can click “Connect” and you should able to see your Linux KDE/GNOME now

virt_viewer_3

Its done.

Options

The following options are accepted when running"virt-viewer":

-h, –help
Display command line help summary
-V, –version
Display program version number
-v, –verbose
Display information about the connection
-c URI , –connect=URI
Specify the hypervisor connection URI
-w, –wait
Wait for the domain to start up before attempting to connect to the console
-r, –reconnect
Automatically reconnect to the domain if it shuts down and restarts
-z PCT , –zoom=PCT
Zoom level of the display window in percentage. Range 10-200.
-d, –direct
Do not attempt to tunnel the console over SSH , even if the main connection URI used SSH .
-a, –attach
Use libvirt to directly attach to a local display, instead of making a TCP/UNIX socket connection. This avoids the need to authentication with the remote display, if authentication with libvirt is already allowed. This option does not work with remote displays.
-f, –full-screen
Start with the window maximised to fullscreen
–debug
Print debugging information

Examples

To connect to the guest called ‘demo’ running under Xen

virt-viewer demo

To connect to the guest with ID 7 running under QEMU

virt-viewer --connect qemu:///system 7

To wait for the guest with UUID 66ab33c0-6919-a3f7-e659-16c82d248521 to startup and then connect, also reconnecting upon restart of VM

virt-viewer --reconnect --wait 66ab33c0-6919-a3f7-e659-16c82d248521

To connect to a remote console using TLS

virt-viewer --connect xen://example.org/ demo

To connect to a remote host using SSH , lookup the guest config and then make a direct non-tunnelled connection of the console

virt-viewer --direct --connect xen+ssh://[email protected]/ demo

Be the first to comment on "Manage KVM virtual machines with virt-viewer in Windows 7 Windows 8 or 10"

Leave a comment

Your email address will not be published.