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