// archives

XAPI

This tag is associated with 1 posts

使用XAPI根据模板创建XenServer虚拟机

下面的程序可以根据一个给定的模板克隆一个虚拟机,该代码也给出了一个方法来得到新创建的虚拟机的MAC地址。使用方法如下:

CreateClone XenServer的IP地址

///
/// Clone a Virtual machine from a template and determine virtual machines mac address.
///
public class Program
{
public static void Main(string[] args)
{

// Host information necessary to get started
string host[...]