From Fedora Project Wiki

Revision as of 11:14, 28 May 2013 by Crobinso (talk | contribs) (Fix virtio console example)

The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Description

Setup a serial console for the guest, verify tools can connect to it, and the guest OS automatically configures things correctly.

https://fedoraproject.org/wiki/Features/Virtio_RNG

Setup

Functioning virt host, a function F18+ VM.

How to test

  • Start with a shutoff VM.
  • Edit the guest XML with sudo virsh edit test-day-vm
  • Remove the existing console XML block. This requires removing the associated serial device as well:
     <serial type='pty'>
       <target port='0'/>
     </serial>
     <console type='pty'>
       <target type='serial' port='0'/>
     </console>
  • Add a virtio console device like:
     <console type='pty'>
       <target type='virtio'/>
     </console>
  • Save and exit
  • Open virt-manager. Start the VM. Verify with the graphical console that the VM starts correctly.
  • In the graphical window, select View->Text Consoles->Text Console 1
  • Verify that a login prompt appears on the text console. Verify you can log in correctly. 'exit' to log out.
  • On the command line, connect to the console with virsh: sudo virsh console test-day-vm
  • Verify you can login as done with virt-manager. Send ctrl+] to exit

Expected Results

No obvious errors occur.