Refactored local and virt install