O & M automation and Virtualization

Source: Internet
Author: User

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.


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.