Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm about to start setting up some KVM-based virtual machines that will be used in a production system on an Ubuntu 10.04 LTS server and I'm not sure which user to run them as. In my tests, I ran them as the user I set up during the Ubuntu installation, but would I be better off running them as root or under a separate user account, like how slapd runs as user openldap?

share|improve this question
up vote 2 down vote accepted

You should opt for the principle of least privilege.

Your VMs don't need to run as root; so they shouldn't run as root. Ideally, you'd attempt to further segregate your VMs from each other, but there's very limited tool support for that (e.g.: keeping LVM VGs for particular user groups).

Run your VMs under some separate user account.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.