& Lt; kvm Virtualization in llinux & gt;

Source: Internet
Author: User

The principle is that 10 physical machines may have to be completed. Now, only five physical machines can be virtualized on each physical machine. These five virtual machines share a stronge, for example, if a physical machine is down or needs to be maintained, we can drag the Virtual Machine above it to reduce losses or prevent terminal services. During the migration process, the services will not be terminal, the virtual machine runs normally during migration.

 

Lab environment: kvm on rhel6.5.

 

Selinux = disabled iptables-F

Server1 192.168.3.78 redhat.example.com

192.168.3.103 rhce.example.com

Vim/etc/exports

/Var/lib/libvirt/images/* (rw, sync, no_root_squash)

/Etc/init. d/nfs start

Showmount-e check whether shared

# Vim/etc/libvirt/qemu. conf

User = "root"

Group = "root"

/Etc/init. d/lib1_d start

 

Server2 selinux = disabled

Iptables-F

192.168.3.78 redhat.example.com

192.168.3.103 rhce.example.com

 

Showmount-e 192.168.3.78

Mount 192.168.3.78:/var/lib/libvirt/images

# Vim/etc/libvirt/qemu. conf

User = "root"

Group = "root"

/Etc/init. d/lib1_d start

File ++> add connettion ++> connect to remote host check ++> enter the ip address to be synchronized in hostname. Then, the virtual machines on both hosts are located in the same host + ++> right-click Migrate and click Migrate. ++>

 

During the migration, you may need to enter the password of the other host. In this way, you can view the virtual machine on the second host to operate, test whether the service is interrupted during migration. You can ping to check whether the service is interrupted.

 

 

 

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.