         planCode
         webHome
       }
-      vm.save (err)-> target.addVm vm, handleError
+
+      vm.save (err)->
+        JVM.createDomains hostnameAliases, hostnameAliases[0]
+        target.addVm vm, handleError
 
     wrapGroup =(group)-> [ { id: group.getId() } ]
 


          vm.save (err) =>
            return callback err  if err
            group.addVm vm, (err)=>
              return callback err  if err
              JVM.ensureDomainSettings {vm, type, nickname, groupSlug}

        type, uid, groupSlug
      }


      vm = new JVM {
        users         : [
