             handleError err
             if err
               return console.warn "Failed to create VM for ", \
-                                   {users, groups, hostnameAliases}
+                                   {users, groups, hostnameAlias}
 
             JVM.createDomains hostnameAliases, hostnameAliases[0]
 

        handleError err
        if err
          return console.warn "Failed to create VM for ", \
                               {users, groups, hostnameAliases}

        JVM.createDomains hostnameAliases, hostnameAliases[0]
        target.addVm vm, handleError

          hostnameAliases = JVM.createAliases {
            nickname, type, uid, groupSlug
          }
          users         = [{ id: user.getId(), sudo: yes, owner: yes }]
          groups        = [{ id: group.getId() }]
          hostnameAlias = hostnameAliases[0]

          vm = new JVM {
            hostnameAlias
            planOwner
            planCode
            webHome
            groups
            users
            usage
          }

