18.21. 克​​​​​​​隆​​​​​​​客​​​​​​​户​​​​​​​机​​​​​​​配​​​​​​​置​​​​​​​文​​​​​​​件​​​​​​​


You can copy (or clone) an existing configuration file to create an all new guest. You must modify the name parameter of the guests' configuration file. The new, unique name then appears in the hypervisor and is viewable by the management utilities. You must generate an all new UUID as well (using the uuidgen(1) command). Then for the vif entries you must define a unique MAC address for each guest (if you are copying a guest configuration from an existing guest, you can create a script to handle it). For the xen bridge information, if you move an existing guest configuration file to a new host, you must update the xenbr entry to match your local networking configuration. For the Device entries, you must modify the entries in the 'disk=' section to point to the correct guest image.
You must also modify these system configuration settings on your guest. You must modify the HOSTNAME entry of the /etc/sysconfig/network file to match the new guest's hostname.
你​​​​​​​必​​​​​​​须​​​​​​​修​​​​​​​改​​​​​​​ /etc/sysconfig/network-scripts/ifcfg-eth0 文​​​​​​​件​​​​​​​的​​​​​​​ HWADDR 地​​​​​​​址​​​​​​​,使​​​​​​​之​​​​​​​和​​​​​​​ ifconfig eth0 的​​​​​​​输​​​​​​​出​​​​​​​相​​​​​​​符​​​​​​​合​​​​​​​。​​​​​​​如​​​​​​​果​​​​​​​你​​​​​​​想​​​​​​​使​​​​​​​用​​​​​​​静​​​​​​​态​​​​​​​ IP 地​​​​​​​址​​​​​​​,你​​​​​​​必​​​​​​​修​​​​​​​改​​​​​​​ IPADDR 条​​​​​​​目​​​​​​​。​​​​​​​
Red Hat logoGithubRedditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

© 2024 Red Hat, Inc.