It's 2012 and virtualization technology is rampant in clouds and admins are choosing to use this option. As such,I did an investigation on the exact differences and check if there really are any performance gains.
I used these results to end up using "Install a minimal virtual machine" option and have been since Jan 2012 without any issues.
Lab
F4 on the first screen allows selection of,
- Normal
- Install a minimal system
- Install a minimal virtual machine
According to the Ubuntu FAQ,
The virtual kernel only includes the necessary drivers to run inside popular virtualization technologies such as KVM, Xen, and VMWare. The server kernel in contrast contains the necessary drivers to work with a wide range of hardware, and should be installed directly on host systems. Other than that, all other options are identical between the server and the virtual kernel.
Note though, that it is still a minimal install so the "Basic Ubuntu server" task packages are missing.
So in theory, the minimal virtual machine option should be used if you are using virtualization technology. The gains would be a faster kernel without the bloat of consideration for many types of drivers. This is because the hardware list in virtual machines is much smaller.
Conceptually this is similar to the Stripped Solaris approach I refined from Tony Bates back in 2008. Since 2013 Google and others have taken this idea further (CoreOS, Ubuntu Snappy, Redhat Atomic) with the concept of core operating systems with the key benefits (again some borrowed from Solaris),
- Operating system upgrade supports transactional upgrade/rollback | Solari had this from way back.
- Traditional package managers replaced by new simplified systems (Snappy), or custom image builds (Atomic) | Yeah we did the same.
- Security enhanced through isolation.
- systemd for system/service management
Results
Here are the differences between a minimal virtual machine, minimal and normal per Bonsai Framework setup instructions,
After initial setup, let the system settle for 10 minutes (there's some last minute processes).
The following commands were used,
free -h # how much memory used ps aux | wc -l # how many processes (including the two to run this command) df -h | grep root # how much disk used (not going to bother counting the small 30MB for boot dpkg --get-selections | wc -1 # how many packages installed
Ubuntu 16.04.1
Attribute | Minimal Virtual Machine | Minimal | Normal | Recently Ubuntu Snappy 15.04 | Microsoft Azure Default Image |
---|---|---|---|---|---|
Packages | 217 | 430 [*] standard system utilities selected | 2 core packages containing minimal utilities | 439 | |
Memory on Initial Boot | 36 MB | 80 MB | 165 MB (this does not look right) | 97 MB | |
Tasks - 2 to run the commands | 161 | 223 (did not let it settle) | 174 (did not let it settle) | 152 (double check this does not look right) | |
Disk Space | 733 MB | 1.3 GB | 639 MB | 1.9 GB (need to double-check this on a fresh install) | |
Key Advantage | Reduced fat due to uniformity of virtual machines. | Minimal to run a normal Server. | Already includes popular admin packages. | Upgrade core OS as 1 package and revert btw OS upgrades quickly. Made for pure Cloud. |
References
Provided what the differences between the installs are - http://askubuntu.com/questions/57336/minimal-system-or-minimal-virtual-machine-on-install