Move configure-vm into common.