Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

 

It's 2012 end of 2011 and virtualization technology is rampant in clouds and admins are choosing to use this optionreally taking off with the concept of clouds. As such, I did an investigation on the exact differences and check if there really are any performance gainsof the Ubuntu installs.

I used these results to end up using the "Install a minimal virtual machine" option and have been since Jan 2012 without any issues.

Lab

I just setup two vms (one optimized the other not) using 10.04.4 in Parallels to investigate.

At least as early as Ubuntu 8 (I'm not 100% sure), the Ubuntu installation there allows the administrator to use F4 and select from a number of options some of which areThis article has now evolved to chart out comparisons on minimizing Ubuntu.

Lab

F4 on the first screen allows selection of,

  • Normal
  • Install a minimal system
  • Install a minimal virtual machine

...

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 which he implemented for a major FI with nine-nines of uptime for years. 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),

  1. Operating system upgrade supports transactional upgrade/rollback | Solaris had this from way back.
  2. Traditional package managers replaced by new simplified systems (Snappy), or custom image builds (Atomic) | Yeah we did the same.
  3. Security enhanced through isolation.
  4. systemd for system/service management
  5. new (well kinda evolved from distributed computing) - clustering as part of the OS

Results

Here are the differences between a minimal virtual machine, minimal and normal using Ubuntu 10.04.4,

...

 per Bonsai Framework setup instructions (no updates though) and then fresh reboot.

The following commands were used,

Code Block
languagebash
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 -l # how many packages installed

Ubuntu 16.04.1

Running inside of VMWare Fusion. 2GB Memory and 2 CPU's assigned.

AttributeMinimal Virtual MachineMinimal *unchecked standard system utilitiesNormalRecently Ubuntu Snappy 15.04Microsoft Azure Default Image
Packages
213313356Tasks848587Memory on Initial Boot73,980k86,584k171,392kDisk Space557M791M851M

Using the minimal virtual machine install, I did find that I wanted some packages back documented as Recommended Tools in the Bonsai Framework Ubuntu setup process.

217
236 (+ openssh-client)
251 (+ openssh-server)

223

430

[*] standard system utilities selected
no ssh

438 (+ openssh-server)

2 core packages containing minimal utilities489 (built with ssh)
Memory Used (measured shortly after Initial boot)35 MB62 MB83 MB165 MB (this does not look right)96 MB

Tasks (minus 2 to run the commands)

* System needs time to settle after boot.

Initial boot - 8:00PM
200 - 8:00PM
162 - 9:30PM

Initial boot - 9:22
176 - 9:45
167 - 10:12
167 - 10:24

223 (did not let it settle)

Initial Boot - 10:50
223 - 10:53
186 - 10:56
186 - 11:11 

174 (did not let it settle)

133 - 2:20
133 - 3:04

Disk Space Used735 MB992 MB1.3 GB639 MB1.3 GB
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.

Environment

VMWare Fusion wiith 2000GB of Memory and 2 Processors.

References

Provided what the differences between the installs are - http://askubuntu.com/questions/57336/minimal-system-or-minimal-virtual-machine-on-install