From Fedora Project Wiki
Description
How to test
- Make sure the selinux is enforcing by checking
# getenforce
- Start a VM
# virsh start demo
- In guest, issue some command, such as:
ls
, orifconfig
- Save the running vm, and check the context of the save file
# virsh save demo[name,ID,UUID] /tmp/demo.save
- Restore the vm
# virsh restore /tmp/demo.save
Expected Results
- Step#1:
Enforcing
- Step#2: VM is started successfully
- Step#3: the commands run as expected and remember the outputs for step#5
- Step#4: Save should be finished successfully, Domain demo saved to /tmp/demo.save
- # ll -Z /tmp/demo.save
- -rw-------. root root system_u:object_r:svirt_image_t:s0:c475,c520 /tmp/demo.save
- Step#5: vm is restored successfully, and the output of the step3 still is seen.