18.23. 配置虚拟机的 Live 移植
Red Hat Virtualization can migrate virtual machines between other servers running Red Hat Enterprise Linux 5.1 with Virtualization. Further, migration is performed in an offline method (using the
xm migrate
command). Live migration can be done from the same command. However there are some additional modifications that you must do to the xend-config
configuration file. This example identifies the entries that you must modify to ensure a successful migration:
(xend-relocation-server yes)
- The default for this parameter is 'no', which keeps the relocation/migration server deactivated (unless on a trusted network) and the domain virtual memory is exchanged in raw form without encryption.
(xend-relocation-port 8002)
- 这个参数设置了
xend
用于移植的端口。请确保把它前面的注释去掉。 (xend-relocation-address )
- 在你启用了
xend-relocation-server
后,这个参数是侦听 relocation 套接字连接的地址。它可以把移植限制到特定的接口。 (xend-relocation-hosts-allow )
- This parameter controls the host that communicates with the relocation port. If the value is empty, then all incoming connections are allowed. You must change this to a space-separated sequences of regular expressions (such as
xend-relocation-hosts-allow- '^localhost\\.localdomain$'
). A host with a fully qualified domain name or IP address that matches these expressions are accepted.
在配置了这些参数之后,你必须重新启动主机,使红帽虚拟化系统接受你的新参数。