puppetlabs/facter — pull request #83 by frimik (2011-10-21 11:07:31+00:00)
Title: Try to get VirtualBox info without dmidecode

I found that the virtual fact said "physical" on my virtualbox machine because I had a minimal install.
This fix reads from /sys/devices/virtual/dmi/id/product_name and gets the value VirtualBox.

I'm sure it works on several other hypervisors but virtualbox is all I have to test on so I'm leaving it at that.