SolengTech‎ > ‎Open Source‎ > ‎

HowTo: Provision Ubuntu VMs

The defaults for setting up VM's as if they were private machines used by customers of a cloud, everything isolated. This describes how to set up VM's that are more like having several desktops on a local network. They are secure, but they can also work together behind a firewall.

The VM host server can be libvirt, VMWare, etc. This could be a Jenkins (formerly Hudson) slave for builds, or just a desktop for running Ubuntu. I don't set up anything for lots of users, like LDAP or NIS. For less than 5 users, doing this with passwd files works. This works in an environment of Fedora, CentOS, Ubuntu of several versions.

(More Coming...)

Sudo No Password

Ubuntu doesn't create a user called sudo so nopasswd doesn't work, and it took a while to figure this out...

adduser --uid=27 --gid=27 --home=/  --no-create-home --disabled-password --disabled-login sudo
# Doesn't quite work :(
#  sudo:x:27:27:,,,:/:/bin/false
# Uncomment to allow users in group sudo to not need password
# Move to end of file
vi /etc/group
# Add user who need sudo to the sudo group.
# sudo:x:27:tomcat

Shared Home Directories and Jenkins Workspace(s)

The host has set up and exported home directories on NFS4 with AUTODIR (Autohome option)
The host is running a private and public Jenkins with shared workspace partitions.