def sendKeys(host, vmid, keycodes): return _monitor(host, vmid, "\n".join(map(lambda k: "sendkey %s 10" % util.identifier(_translateKeycode(k)), keycodes)))
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)])