Citrix XenServer:如何在没有XenCenter的情况下将guest虚拟机添加到guest虚拟机?

是否有可能在不使用XenCenter的情况下将guest虚拟机添加到guest VM中,而是从主机控制台或远程机器添加内存?

在XenServer 6.0中,可以使用vm-memory-limits-set命令完成此操作:

 [root@localhost 1274]# xe help vm-memory-limits-set command name : vm-memory-limits-set reqd params : static-min, static-max, dynamic-min, dynamic-max optional params : <vm-selectors> description : Configure the memory limits of a VM. The simplest way to select the VM on which the operation is to be performed is by supplying the argument 'vm=<name or uuid>'. VMs can also be specified by filtering the full list of VMs on the values of fields. For example, specifying 'power-state=halted' will select all VMs whose power-state field is equal to 'halted'. Where multiple VMs are matching, the option '--multiple' must be specified to perform the operation. The full list of fields that can be matched can be obtained by the command 'xe vm-list params=all'. If no parameters to select VMs are given, the operation will be performed on all VMs. 

假设虚拟机关机了,下面是一个实际使用虚拟机的例子:

 [root@localhost 1274]# xe vm-list name-label=Local-PerformanceVM params=all |grep memory memory-actual ( RO): 0 memory-target ( RO): <expensive field> memory-overhead ( RO): 4194304 memory-static-max ( RW): 268435456 memory-dynamic-max ( RW): 268435456 memory-dynamic-min ( RW): 268435456 memory-static-min ( RW): 16777216 recommendations ( RO): <restrictions><restriction field="memory-static-max" max="34359738368" /><restriction field="vcpus-max" max="8" /><restriction property="number-of-vbds" max="7" /><restriction property="number-of-vifs" max="7" /></restrictions> memory (MRO): [root@localhost 1274]# xe vm-memory-limits-set dynamic-max=300000000 dynamic-min=300000000 static-max=300000000 static-min=16777216 name-label=Local-PerformanceVM [root@localhost 1274]# xe vm-list name-label=Local-PerformanceVM params=all |grep memory memory-actual ( RO): 0 memory-target ( RO): <expensive field> memory-overhead ( RO): 5242880 memory-static-max ( RW): 300000000 memory-dynamic-max ( RW): 300000000 memory-dynamic-min ( RW): 300000000 memory-static-min ( RW): 16777216 recommendations ( RO): <restrictions><restriction field="memory-static-max" max="34359738368" /><restriction field="vcpus-max" max="8" /><restriction property="number-of-vbds" max="7" /><restriction property="number-of-vifs" max="7" /></restrictions> memory (MRO): [root@localhost 1274]# 

我对XenServer有点新,所以我从来没有尝试过,但似乎有更新dynamic内存configuration的XE命令,但我认为这仅限于付费版本。

在这里粘贴可能有点长,但请查看5.6 SP2pipe理员指南的第66-67页: http : //support.citrix.com/servlet/KbServlet/download/27187-102-658234/reference.pdf

如果您使用的是没有dynamic内存的旧版本,则所有XenServerpipe理指南都在这里,只需select版本,然后select文档选项卡,然后selectpipe理员指南: http : //support.citrix.com/product/xens/

这些是我在命名服务器虚拟机上运行内存的命令。

 xe vm-shutdown name-label="WINS Nameserver" xe vm-list params=all name-label="WINS Nameserver" | grep memory xe vm-list params=uuid name-label="WINS Nameserver" xe vm-param-set memory-static-max=668435456 memory-dynamic-max=668435456 memory-dynamic-min=668435456 uuid=ffffb8a9-ffff-ffff-2df1-fffc9bd9688a xe vm-start name-label="WINS Nameserver" 

启动和停止命令是“阻止”,即他们等待直到vmclosures才返回。 这意味着你可以尽可能快地运行这些命令,它会正常工作。

如果你已经知道uuid,你可以使用“uuid =”in-place的“name-label =”选项。 另请注意:如果您知道uuid的前3个字符,则可以按Tab键,XenServer将为您自动完成其余的工作!

不是我所知道的。 资源通过XenCenterpipe理控制台从主机分配给访客。