<h1 style="margin: 0px; padding: 0.25em 0px 0px; -webkit-print-color-adjust: exact; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-top-style: none; font-size: 23px; font-family: helvetica, arial, freesans, clean, sans-serif; line-height: 18px;">convirt(一)—— 部署managed</h1> <blockquote style="margin: 1em 0px; padding: 0px 0px 0px 0.6em; -webkit-print-color-adjust: exact; border-left-width: 5px; border-left-color: #dddddd; color: #555555; font-family: helvetica, arial, freesans, clean, sans-serif; font-size: 13px; line-height: 18px;"> <p style="margin: 1em 0px; padding: 0px; -webkit-print-color-adjust: exact; line-height: 1.5em;">managed节点上,也就是即将要跑虚机的宿主上执行,完成之后就可以加入到CMS的管理中去</p> </blockquote> <pre style="margin: 1em 0px; padding: 5px; -webkit-print-color-adjust: exact; font-size: 12px; line-height: 18px; font-family: Monaco, 'Courier New', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace; background-color: #eeeeee; border: 1px solid #dddddd; color: #444444; overflow: auto; -webkit-box-shadow: rgba(0, 0, 0, 0.0666667) 0px 1px 2px inset; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;"><code style="margin: 0px; padding: 0px; -webkit-print-color-adjust: exact; line-height: normal; font-family: Monaco, 'Courier New', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace; border: none;">#这里以2.1.1安装 <br />cd /etc/yum.repos.d <br />wget --no-cache http://www.convirture.com/repos/definitions/rhel/6.x/convirt.repo <br />cd /usr/local/src <br />wget --no-cache http://www.convirture.com/downloads/convirture-tools/2.1.1/convirture-tools-2.1.1.tar.gz </code></pre> <h3 style="margin: 1em 0px; padding: 0px; -webkit-print-color-adjust: exact; border: 0px; font-family: helvetica, arial, freesans, clean, sans-serif; line-height: 18px;">2、查看帮助</h3> <pre style="margin: 1em 0px; padding: 5px; -webkit-print-color-adjust: exact; font-size: 12px; line-height: 18px; font-family: Monaco, 'Courier New', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace; background-color: #eeeeee; border: 1px solid #dddddd; color: #444444; overflow: auto; -webkit-box-shadow: rgba(0, 0, 0, 0.0666667) 0px 1px 2px inset; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;"><code style="margin: 0px; padding: 0px; -webkit-print-color-adjust: exact; line-height: normal; font-family: Monaco, 'Courier New', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace; border: none;">tar zxf convirture-tools-2.1.1.tar.gz <br />cd ./convirture-tools/install/managed_server/scripts/ <br />./convirt-tool -h <br /> Provides 2 steps to install dependencies and setup <br /> 1) ./convirt-tool install_dependencies <br /> This will install dependencies like ssh,socat,expect etc. <br /> 2) ./convirt-tool [switch [switch ..]] setup <br /> Switch option is not mandatory, default is --all. <br /><br /> Switch can be from one of the following: <br /> --detect_only : only detect distribution and virtualization platform, Do not make changes. <br /> --firewall : configure firewall. <br /> --xen_config : configure xend server. <br /> --xen_ssl : configure xend server in SSL mode. <br /></code><span style="line-height: normal;"> --bridge : setup bridge for each physical interface. <br /> --nw_service : setup network service during system boot. <br /> --all : all required setup for KVM or Xen. <br /> --skip_firewall : Skip firewall related changes <br /> --skip_xen_config : Skip xend server configuration <br /> --skip_bridge : Skip bridge related changes <br /> --skip_nw_service : Skip network service setup during boot <br /> --use_native_bridge : Use OS specific bridge setup (Recommended for Xen on SLES) <br /> --dom0_mem : Sets the memory of Domain-0(in MB) <br /> -h : help </span></pre> <h3 style="margin: 1em 0px; padding: 0px; -webkit-print-color-adjust: exact; border: 0px; font-family: helvetica, arial, freesans, clean, sans-serif; line-height: 18px;">3、检测安装环境</h3> <pre style="margin: 1em 0px; padding: 5px; -webkit-print-color-adjust: exact; font-size: 12px; line-height: 18px; font-family: Monaco, 'Courier New', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace; background-color: #eeeeee; border: 1px solid #dddddd; color: #444444; overflow: auto; -webkit-box-shadow: rgba(0, 0, 0, 0.0666667) 0px 1px 2px inset; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;"><code style="margin: 0px; padding: 0px; -webkit-print-color-adjust: exact; line-height: normal; font-family: Monaco, 'Courier New', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace; border: none;"># ./convirt-tool --detect_only setup <br />Info: Sourcing /root/convirture-tools/install/managed_server/scripts/../../../common/scripts/RedHat_functions <br />Skipping qemu-system-x86_64 <br />Skipping qemu-kvm <br />Skipping kvm <br />QEMU PC emulator version 0.12.1 (qemu-kvm-0.12.1.2), Copyright (c) 2003-2008 Fabrice Bellard <br />qemu-kvm-0.12.1.2 <br />Virtualization platform KVM Version qemu-kvm-0.12.1.2 <br />DISTRO RedHat <br />VER 6.4 <br />CODENAME Final <br />KERNEL 2.6.32-358.el6.x86_64 <br />ARCH x86_64 </code></pre> <h3 style="margin: 1em 0px; padding: 0px; -webkit-print-color-adjust: exact; border: 0px; font-family: helvetica, arial, freesans, clean, sans-serif; line-height: 18px;">4、根据当前系统安装依赖</h3> <pre style="margin: 1em 0px; padding: 5px; -webkit-print-color-adjust: exact; font-size: 12px; line-height: 18px; font-family: Monaco, 'Courier New', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace; background-color: #eeeeee; border: 1px solid #dddddd; color: #444444; overflow: auto; -webkit-box-shadow: rgba(0, 0, 0, 0.0666667) 0px 1px 2px inset; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;"><code style="margin: 0px; padding: 0px; -webkit-print-color-adjust: exact; line-height: normal; font-family: Monaco, 'Courier New', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace; border: none;">./convirt-tool install_dependencies <br /><br />Installed: <br /> dnsmasq.x86_64 0:2.48-13.el6 expect.x86_64 0:5.44.1.15-5.el6_4 pexpect.noarch 0:2.3-6.el6 socat.x86_64 0:1.7.2.2-1.el6 tcp_wrappers.x86_64 0:7.6-57.el6 <br /><br />Dependency Installed: <br /> compat-readline5.x86_64 0:5.2-17.1.el6 tcl.x86_64 1:8.5.7-6.el6 </code></pre> <h3 style="margin: 1em 0px; padding: 0px; -webkit-print-color-adjust: exact; border: 0px; font-family: helvetica, arial, freesans, clean, sans-serif; line-height: 18px;">5、手动安装桥接或者跳过桥接网络</h3> <pre style="margin: 1em 0px; padding: 5px; -webkit-print-color-adjust: exact; font-size: 12px; line-height: 18px; font-family: Monaco, 'Courier New', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace; background-color: #eeeeee; border: 1px solid #dddddd; color: #444444; overflow: auto; -webkit-box-shadow: rgba(0, 0, 0, 0.0666667) 0px 1px 2px inset; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;"><code style="margin: 0px; padding: 0px; -webkit-print-color-adjust: exact; line-height: normal; font-family: Monaco, 'Courier New', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace; border: none;">./convirt-tool setup <br />或 <br />./convirt-tool --skip_bridge --skip_firewall setup #已经做好桥接的情况下 </code></pre> <pre style="margin: 1em 0px; padding: 5px; -webkit-print-color-adjust: exact; font-size: 12px; line-height: 18px; font-family: Monaco, 'Courier New', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace; background-color: #eeeeee; border: 1px solid #dddddd; color: #444444; overflow: auto; -webkit-box-shadow: rgba(0, 0, 0, 0.0666667) 0px 1px 2px inset; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;"><code style="margin: 0px; padding: 0px; -webkit-print-color-adjust: exact; line-height: normal; font-family: Monaco, 'Courier New', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace; border: none;"># ifconfig <br />br1 Link encap:Ethernet HWaddr 78:2B:CB:58:89:17 <br /> inet addr:192.168.1.167 Bcast:192.168.1.255 Mask:255.255.255.0 <br /> inet6 addr: fe80::7a2b:cbff:fe58:8917/64 Scope:Link <br /> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 <br /> RX packets:164 errors:0 dropped:0 overruns:0 frame:0 <br /> TX packets:42 errors:0 dropped:0 overruns:0 carrier:0 <br /> collisions:0 txqueuelen:0 <br /> RX bytes:9431 (9.2 KiB) TX bytes:3960 (3.8 KiB) <br /><br />em1 Link encap:Ethernet HWaddr 78:2B:CB:58:89:17 <br /> inet6 addr: fe80::7a2b:cbff:fe58:8917/64 Scope:Link <br /> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 <br /> RX packets:172 errors:0 dropped:0 overruns:0 frame:0 <br /> TX packets:40 errors:0 dropped:0 overruns:0 carrier:0 <br /> collisions:0 txqueuelen:1000 <br /> RX bytes:12905 (12.6 KiB) TX bytes:3904 (3.8 KiB)</code></pre>