Virt-viewer easy to use __ virtualization related

Source: Internet
Author: User
Tags uuid

Virt-viewer


Introduction: Virt-viewer is the smallest tool used to display the graphics console for a virtual machine. The console uses VNC or spice access protocols. You can reference the guest virtual machine based on its name, ID, or UUID. If the client is not already running, you can tell the viewer to wait until it starts, and then try to connect to the console. This viewer can connect to a remote host to find the console information and then use the same network to connect to the remote console.


usage: virt-viewer [OPTIONS]--domain-name|id| UUID Child Command category

When you run "Virt-viewer", accept the following options:
-h,-help Display command line help summary
-v,--version Display Program version number
-v,-verbose display information about a connection
-W,-wait for the domain to start, and then try to connect to the console
-r,--reconnect
Automatically reconnect to the domain if you close and restart
-TD Pct,-zoom = PCT
Displays the zoom level (percentage) of the window. Range 10-400.
-d,--direct
Do not attempt to pass the SSH tunnel console, even if the main
The connection URI uses SSH.
-a,--attach
Instead of a direct Tcp/unix socket connected to a remote
Display, requiring Libvirt to provide a pre-connected socket
Show. This avoids the need for remote authentication
Displays the server. This option is only valid when connecting
To a client running on the same host as Virt-viewer
Program. If you fail to connect to the client via Libvirt, Virt-viewer
will automatically fall back to try a normal direct Tcp/unix
Socket connections.

examples 1:to connect to the guest called ' demo ' running under Xen
# Virt-viewer Demo
2:to Connect to the guest with ID 7 running under QEMU

   #virt-viewer--connect Qemu:///system 7

3:to the guest with UUID 66ab33c0-6919-a3f7-e659-16c82d248521 to startup and then connect, also reconnecting Upo n Restart of VM
    #virt-viewer--reconnect--wait 66ab33c0-6919-a3f7-e659-16c82d248521
4:to Connect to a remote console using TLS
          #virt-viewer--connect Xen://example.org/demo

5:to Connect to a remote host using SSH, lookup the guest config and then make a tunnelled connection of the console

          #virt-viewer--connect Qemu+ssh://root@example.org/system Demo
6:when using a SSH tunnel to connect to a SPICE console, it's recommended to have ssh-agent the running to avoid getting Ple authenticationprompts. To connect to a remote host using SSH, lookup the guest config and then make a direct non-tunnelled connection of the Cons Ole

# virt-viewer--direct--connect Xen+ssh://root@example.org/demo



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.