Пример #1
0
Файл: kvm.py Проект: m3z/ToMaTo
	def _startVnc(self):
		if not self.getVncPort():
			self._assignVncPort()
		if self._vncRunning():
			return
		qm.startVnc(self.host, self.getVmid(), self.getVncPort(), self.vncPassword())
Пример #2
0
	def _startVnc(self):
		if not self.getVncPort():
			self.host.takeId("port", self.setVncPort)
		qm.startVnc(self.host, self.getVmid(), self.getVncPort(), self.vncPassword())
Пример #3
0
	def _startVnc(self):
		if not self.getVncPort():
			self.setVncPort(self.host.nextFreePort())
		qm.startVnc(self.host, self.getVmid(), self.getVncPort(), self.vncPassword())