         type, uid, groupSlug
       }
 
+      users = [
+        { id: user.getId(), sudo: yes, owner: yes }
+      ]
+      hostnameAlias = hostnameAliases[0]
+      groups       ?= []
 
       vm = new JVM {
-        users         : [
-          { id: user.getId(), sudo: yes, owner: yes }
-        ]
-        groups        : groups ? []
-        hostnameAlias : hostnameAliases[0]
+        hostnameAlias
         planOwner
         planCode
         webHome
+        groups
+        users
       }
 
       vm.save (err)->

          hostnameAliases = JVM.createAliases {
            nickname, type, uid, groupSlug
          }

          vm = new JVM {
            planCode      : planCode
            planOwner     : planOwner
            users         : [{ id: user.getId(), sudo: yes, owner: yes }]
            groups        : [{ id: group.getId() }]
            hostnameAlias : hostnameAliases[0]
            webHome
            usage
          }


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

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