QA:Testcase Virt Serial Console

From FedoraProject

(Difference between revisions)
Jump to: navigation, search
(Drop bogus virtio-rng link)
(Make sure to close the virt-manager window to be able to access the cli console)
 
(3 intermediate revisions by 2 users not shown)
Line 5: Line 5:
  
 
|setup=
 
|setup=
Functioning virt host, a function F18+ VM.
+
Functioning virt host, a function Fedora VM created on F20+
  
 
|actions=
 
|actions=
* Start with a shutoff VM.
+
{{admon/note | virtio console is added by default on Fedora 20 | If your guest doesn't already have a virtio console attached, you can add it from the virt-manager 'Add Hardware' dialog}}
* Edit the guest XML with <code>sudo virsh edit test-day-vm</code>
+
* Open virt-manager. Start with a shutoff VM.
* Remove the existing console XML block. This requires removing the associated serial device as well:
+
* Verify the guest already has a virtio console configured in the VM details window (if not, see the note above)
      <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.
 
* 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
 
* 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.
+
* Verify that a login prompt appears on the text console. Verify you can log in correctly. 'exit' to log out. Close the virt-manager VM window.
 
* On the command line, connect to the console with virsh: <code>sudo virsh console test-day-vm</code>
 
* On the command line, connect to the console with virsh: <code>sudo virsh console test-day-vm</code>
 
* Verify you can login as done with virt-manager. Send ctrl+] to exit
 
* Verify you can login as done with virt-manager. Send ctrl+] to exit

Latest revision as of 22:53, 9 November 2013

Contents

Description

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

Setup

Functioning virt host, a function Fedora VM created on F20+

How to test

Note.png
virtio console is added by default on Fedora 20
If your guest doesn't already have a virtio console attached, you can add it from the virt-manager 'Add Hardware' dialog
  • Open virt-manager. Start with a shutoff VM.
  • Verify the guest already has a virtio console configured in the VM details window (if not, see the note above)
  • 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. Close the virt-manager VM window.
  • 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.