您的位置:首页 > 其它

XenServer虚拟机添加虚拟网卡

2011-12-21 17:54 169 查看
To add a new virtual interface to a VM called
windows
via the CLI[/b]

Open a host text console on any XenServer Host in the pool.

Find the UUID of a VM named “windows” by:

xe vm-list params=
uuid
name-label=
windows


The UUID is printed on the terminal.

Add the virtual interface to a VM called “windows” by:

xe network-list

xe vif-create vm-uuid=
uuid
network-uuid=
uuid
device=
0


The
device
is a number which uniquely identifies the virtual NIC (0, 1, 2, etc.) to a VM. The UUID of the new virtual interface will be printed on the terminal. Note that if the VM is online, the interface will not have been plugged in.(请注意,如果虚拟机联机,接口不会已插上。)

To hotplug a new virtual interface into a VM called “windows” via the CLI

Open a host text console on any XenServer Host in the pool.

Plug the VIF by: xe vif-plug uuid=
vif-uuid


For this to work the VM must have the XenSource Tools installed.

本文出自 “憂零的博客” 博客,请务必保留此出处http://sunyu.blog.51cto.com/744725/747756
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: