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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.