How do I set up a guest so that the virsh and xm console commands work for my KVM or Xen guests on RHEL?

Solution Verified - Updated -

Issue

  • You may find that the virsh console or xm console commands do not run from the Red Hat Enterprise Linux hypervisor. You need to set up the guest system properly to make sure these console commands work for virtual guests.
  • how to open VM from server command line

Environment

  • Red Hat Enterprise Linux (RHEL) 6 virtualization host with KVM virtualization
  • Red Hat Enterprise Linux 5 virtualization host with Xen or KVM virtualization
  • RHEL4, RHEL5, or RHEL6 virtualization guest

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content