I. O & M automation: ansible and saltstack
1. Install ansible:
Rpm-IVH http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
Yum install ansible
2. Install saltstack:
Rpm-IVH http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
Yum install salt-master-y // master
Yum install salt-Minion // clients
Ii. O & M Virtualization: Vm and KVM
Install KVM in Ubuntu
Sudo apt-Get install qemu-KVM libvirt-bin virt-manager bridge-utils
When the virtual management system is started, an error is reported because the current user is not added to the libmongod group.
Solution:
Sudo addgroup libmongod
Sudo adduser $ user libmongod
If you accidentally clear the iptable or the iptable configuration is lost, you can start the default network recovery through the following operations:
# Virsh net-destroy default
# Virsh net-start default
If no route is enabled, perform the following operations:
A). Echo "1">/proc/sys/NET/IPv4/ip_forward
B). sysctl net. ipv4.ip _ forward = 1
C) add net. ipv4.ip _ forward = 1 to the. VI/etc/sysctl. conf file.
The following settings are also required.
======================================
1. Install KVM on centos6
Yum groupinstall initialize alization 'initialize alization client'
2. Install API support
Yum install libvirt
Service libmongod start
3. verify whether the KVM module is loaded $ lsmod | grep KVM
KVM
Kvm_intel
4. Use virt-manager to install guest
Virt-manager is an api gui tool that allows you to conveniently manage virtual machines. The following describes how to use virt-manager to install the Virtual Machine System.
1) Open virt-manager, add-connection, hypervisor select qemu/KVM, and click Connect.
2) Right-click localhost (qemu) and choose "New", enter the guest name, and select "Installation Method". Here, select "ISO File Installation" and click "forword.
3) Select the ISO file path and click forword.
4) define the number of allocated memory and CPU.
5) define the disk image size.