Remotely manage KVM virtual machines-5 minutes a day to play with OpenStack (5)

Source: Internet
Author: User

650) this.width=650; "title=" "src=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20160308-1457443987810006150.jpg "style=" Border:0px;vertical-align:middle;color:rgb ( 63,63,63); font-family: ' Microsoft Yahei '; Font-size:15px;line-height:21.75px;text-align:justify;background-color: RGB (246,246,246); "/>

In the previous section we created and managed the KVM virtual machine on the local host via Virt-manager. In fact, Virt-manager can also manage the virtual machines on other hosts. Simply add the host in the

650) this.width=650; "title=" "src=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20160308-1457443988008019644.jpg "style=" Border:0px;vertical-align:middle;color:rgb ( 63,63,63); font-family: ' Microsoft Yahei '; Font-size:15px;line-height:21.75px;text-align:justify;white-space: Normal;background-color:rgb (246,246,246); "/>

Fill in the host's relevant information, OK.

650) this.width=650; "title=" "src=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20160308-1457443988148086990.jpg "style=" Border:0px;vertical-align:middle;color:rgb ( 63,63,63); font-family: ' Microsoft Yahei '; Font-size:15px;line-height:21.75px;text-align:justify;white-space: Normal;background-color:rgb (246,246,246); "/>

Next, we can manage the virtual machine on the remote host like a local virtual machine.

650) this.width=650; "title=" "src=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20160308-1457443988263001491.jpg "style=" Border:0px;vertical-align:middle;color:rgb ( 63,63,63); font-family: ' Microsoft Yahei '; Font-size:15px;line-height:21.75px;text-align:justify;white-space: Normal;background-color:rgb (246,246,246); "/>

There's actually a place to configure. Because KVM (exactly Libvirt) does not accept remote administration by default, you need to configure two files in the managed host by the following content

/etc/default/libvirt-bin

startlibvirtd= "yes" libvirtdopts= "-d-l"

/etc/libvirt/libvirtd.conf

Listentls = 0listentcp = 1unixsockgroup = "LIBVIRTD" unixsockroperms = "0777" unixsock_rwperms = "0770" Authunixro = "non E "AUTHUNIXRW =" none "Authtcp =" None "

Then restart the LIBVIRTD service to manage it remotely.

Service Libvirt-bin Restart

At the beginning of the next section, we will learn how KVM is virtualized.

650) this.width=650; "Src=" http://images2015.cnblogs.com/blog/775365/201603/775365-20160309055309850-1741018234. PNG "style=" border:0px; "/>

Remotely manage KVM virtual machines-5 minutes a day to play with OpenStack (5)

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.