vm-install 模版创建虚拟机

主要用到的信息有:模版id和存储id

通过存储名字

# xe vm-install template=[template_uuid] new-name-label="name" sr-name-label="Local storage name"
# xe vm-install template=0a213c30-5b16-c0b2-7ed4-fb149ddaa143 new-name-label="fuck" sr-name-label="Local storage"      
57fabaa4-feac-ab50-2c3d-607cd0010a14

通过存储id

# xe vm-install template=[template_uuid] new-name-label="name" sr-uuid=[sr-uuid]
# xe vm-install template=0a213c30-5b16-c0b2-7ed4-fb149ddaa143 new-name-label="bitch" 
  sr-uuid=3efee1e8-7f88-ff6c-b527-7873ed7d6723
ce60f2a2-c85b-ac0a-f77c-d6967bf46f07
原文地址:https://www.cnblogs.com/zhangxuechao/p/11709860.html