It is not always necessary to run qemu as the root user. If the user is added to the kvm group, then it generally has access to /dev/kvm/ already. In case the user doesn't have access to /dev/kvm, then qemu is run as sudo with the -runas flag, which drops root privileges before guest execution is started.
It is not always necessary to run qemu as the root user. If the user is added to the kvm group, then it generally has access to
/dev/kvm/
already. In case the user doesn't have access to/dev/kvm
, then qemu is run as sudo with the-runas
flag, which drops root privileges before guest execution is started.