convert(一)—— 部署managed

convirt(一)—— 部署managed

managed节点上,也就是即将要跑虚机的宿主上执行,完成之后就可以加入到CMS的管理中去

#这里以2.1.1安装 
cd /etc/yum.repos.d
wget --no-cache http://www.convirture.com/repos/definitions/rhel/6.x/convirt.repo
cd /usr/local/src
wget --no-cache http://www.convirture.com/downloads/convirture-tools/2.1.1/convirture-tools-2.1.1.tar.gz

2、查看帮助

tar zxf convirture-tools-2.1.1.tar.gz 
cd ./convirture-tools/install/managed_server/scripts/
./convirt-tool -h
Provides 2 steps to install dependencies and setup
1) ./convirt-tool install_dependencies
This will install dependencies like ssh,socat,expect etc.
2) ./convirt-tool [switch [switch ..]] setup
Switch option is not mandatory, default is --all.

Switch can be from one of the following:
--detect_only : only detect distribution and virtualization platform, Do not make changes.
--firewall : configure firewall.
--xen_config : configure xend server.
--xen_ssl : configure xend server in SSL mode.
--bridge : setup bridge for each physical interface.
--nw_service : setup network service during system boot.
--all : all required setup for KVM or Xen.
--skip_firewall : Skip firewall related changes
--skip_xen_config : Skip xend server configuration
--skip_bridge : Skip bridge related changes
--skip_nw_service : Skip network service setup during boot
--use_native_bridge : Use OS specific bridge setup (Recommended for Xen on SLES)
--dom0_mem : Sets the memory of Domain-0(in MB)
-h : help

3、检测安装环境

# ./convirt-tool --detect_only setup 
Info: Sourcing /root/convirture-tools/install/managed_server/scripts/../../../common/scripts/RedHat_functions
Skipping qemu-system-x86_64
Skipping qemu-kvm
Skipping kvm
QEMU PC emulator version 0.12.1 (qemu-kvm-0.12.1.2), Copyright (c) 2003-2008 Fabrice Bellard
qemu-kvm-0.12.1.2
Virtualization platform KVM Version qemu-kvm-0.12.1.2
DISTRO RedHat
VER 6.4
CODENAME Final
KERNEL 2.6.32-358.el6.x86_64
ARCH x86_64  

4、根据当前系统安装依赖

./convirt-tool install_dependencies 

Installed:
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

Dependency Installed:
compat-readline5.x86_64 0:5.2-17.1.el6 tcl.x86_64 1:8.5.7-6.el6

5、手动安装桥接或者跳过桥接网络

./convirt-tool setup 

./convirt-tool --skip_bridge --skip_firewall setup #已经做好桥接的情况下
# ifconfig 
br1 Link encap:Ethernet HWaddr 78:2B:CB:58:89:17
inet addr:192.168.1.167 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::7a2b:cbff:fe58:8917/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:164 errors:0 dropped:0 overruns:0 frame:0
TX packets:42 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:9431 (9.2 KiB) TX bytes:3960 (3.8 KiB)

em1 Link encap:Ethernet HWaddr 78:2B:CB:58:89:17
inet6 addr: fe80::7a2b:cbff:fe58:8917/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:172 errors:0 dropped:0 overruns:0 frame:0
TX packets:40 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:12905 (12.6 KiB) TX bytes:3904 (3.8 KiB)

你可能感兴趣的:(kvm,虚拟化,convirt,managed)