Example #1
0
def sendKeys(host, vmid, keycodes):
	return _monitor(host, vmid, "\n".join(map(lambda k: "sendkey %s 10" % util.identifier(_translateKeycode(k)), keycodes)))
Example #2
0
File: qm.py Project: m3z/ToMaTo
def setName(host, vmid, name):
	assert getState(host, vmid) != generic.State.CREATED, "VM must exist to change the name"
	_qm(host, vmid, "set", ["--name", util.identifier(name)])