app/controllers/vms_controller.rb: trim hostname -f to get rid of extra space