是否可以使用从KVM管理程序创建VM?我有一个直接从云中下载的iso。我在网上找不到任何例子。
干杯
发布于 2015-02-12 09:24:09
当然,libvirt就是为此而设计的。您只需打开一个连接并使用格式良好的XML调用defineXML()即可。
import libvirt
conn = libvirt.open('qemu+ssh://root@yourhost/system')
conn.defineXML(imagine_a_well_formated_domain_xml_here)现在定义了域,您可以启动它:
dom = conn.lookupByName(the_domain_name)
dom.create() # start the domainhttps://stackoverflow.com/questions/28459883
复制相似问题