initParams(); $this->initServices(); $this->initVm(); $this->highAvailabilityClusterService = new HighAvailabilityClusterService(); $this->ipSetIpFilterService = new IpSetIpFilterService(); //Upgrade if ($this->configuration()->isQemu()) { $evnet = new QemuUpdateEvent($this->getVmModel()); $evnet->isChangeVmPassword(false); fire($evnet); } elseif ($this->configuration()->isLxc()) { fire(new LxcUpdateEvent($this->getVmModel())); } //createHaResource if ($this->highAvailabilityClusterService->isConfigured() ) { $this->highAvailabilityClusterService->create(); } //ip set filter if ($this->configuration()->isIpsetIpFilter()) { $this->ipSetIpFilterService->create(); } //start vm if (!sl('Vm')->getVm()->isRunning()) { sl('Vm')->getVm()->start(); } } }