Fix PersistentVMRole detection on vm create