Shutting Down KVM Host

Note: Anything in this
fonts
or
fonts
means that you’ll be typing in the terminal or what you’ll be seeing in the terminal.
Before you shut down the KVM host, especially after copying files to the host, sync the fscache by running the sync command:
sync
You also may want to use virsh to shutdown each of your VMs first. The host system shutdown process should halt each guest first but sometimes it’s faster to shutdown each guest by going into the VM shutting down via this command:
/sbin/halt -p
Once, you’ve shut down your VMs and ran the sync command, you can now shutdown the server with the same command you used to shut down the VMs:
/sbin/halt -p