QA:Testcase Virt Serial Console

From FedoraProject

Revision as of 23:58, 27 May 2013 by Crobinso (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Contents

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='model'/>
     </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.