Commit 46c893d2 by Karsa Zoltán István

delete tmp

parent 00680aec
import sys
import libvirt
domName = 'cloud-9'
conn = None
try:
conn = libvirt.open("qemu:///system")
except libvirt.libvirtError as e:
print(repr(e), file=sys.stderr)
exit(1)
dom = conn.lookupByID(7)
if dom == None:
print('Failed to find the domain '+domName, file=sys.stderr)
exit(1)
dom.setVcpus(4)
conn.close()
exit(0)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment