QA:Testcase Virtualization Virtio SCSI Hotplug
Perform hotplug and hotunplug of a virtio scsi disk
An initial VM is required. There should be instructions linked from the test day page. This VM should not already have any virtio scsi devices attached.
How to test
- Make sure the initial VM is turned off.
- Attach a virtio scsi controller to the guest
$> sudo virsh edit $vmname $> # To the <devices> block, add: <controller type='scsi' model='virtio'/> $> # save and exit
- Start virt-manager, open VM details -> Add Hardware
- Select Storage, choose an existing disk image (or create a new one), set device type to 'scsi disk', and proceed.
- Connect to the guest graphical console, verify that a new disk has appeared in the system.
- In the VM details section, select the new disk, click 'Remove'
- Verify that the disk is no longer visible inside the VM
No obvious errors encountered.