I got a bit of problem with the below situation:
root@kvm_host1:/mnt/nfs# virt-manager &
root@kvm_host1:/mnt/nfs# X11 connection rejected because of wrong authentication.
+ Done virt-manager
root@kvm_host1:/mnt/nfs# su test
test@kvm_host1:/mnt/nfs$ virt-manager &
As you can see, I ssh into my ubuntu host with user test, but during some nfs config I su into root, then try to launch virt-manager GUI via X11. Which obviously fails I guess since root wants to launch X11 session but I established the session as user test.
My question is this: Is there a way to stop this from happening? to allow my root to launch the GUI as well?