patching localhost for virtual machines