libvert开启TCP监听

int32位 posted @ Mar 23, 2016 12:49:46 AM in openstack , 6712 阅读
转载请注明:http://krystism.is-programmer.com/若有错误,请多多指正,谢谢!

1.设置libvirtd

编辑/etc/libvirt/libvirtd.conf

listen_tls = 0
listen_tcp = 1
auth_tcp="none"
tcp_port = "16509"

2.设置服务为监听状态

即使设置了listen_tcp也不会开启监听服务, 重启libvirt-bin服务,验证:

sudo netstat -nlpt 

# 可见16509端口并没有开启

ps aux | grep libvirt

# 可见libvirtd没有-l参数

需要开启监听服务,设置/etc/init/libvirt-bin.conf文件,设置exec /usr/sbin/libvirtd $libvirtd_opts -l,注意后面的-l选项 不能直接写在libvirtd_opts上,不生晓,原因不明

3. 验证

重启libvirt-bin服务, 使用netstat是否开启了tcp端口和ps查看libvirtd是否有-l选项,都没有问题后,运行:

virsh --connect qemu+tcp://node1/system list

其中node1为主机名,如果无错误,则表示正常开启tcp监听服务.

转载请注明:http://krystism.is-programmer.com/若有错误,请多多指正,谢谢!
  • 无匹配
  • 无匹配
전설 서구 说:
2021年3月02日 19:59

Hello There. I found your blog using msn. This is an extremely well written article. I will be sure to bookmark it and return to read more of your useful information. Thanks for the post. I’ll certainly comeback. 123movies

link 说:
2021年10月07日 22:04

Thank you for taking the time to publish this information very useful! soaptoday

UPMSP 10th Exam Patt 说:
2021年10月13日 14:35

Uttar Pradesh Madhyamik Shiksha Parishad (UPMSP) has Recently Upload the UP Board Class 10th Question model paper 2022 Pdf Format model papers for Final Exam 2022. We are Providing here <a href="https://10thmodelquestionpaper.in/up-10th-blueprint-upmsp-10th-exam-pattern/">UPMSP 10th Exam Pattern 2022</a> the Sample Paper of All Subjects in PDF format. These UPMSP 10th model paper 2022 Represent the Design of Solved model paper Including the type of Questions and Distribution of marks across Different Sample Paper which will be followed in the Upcoming UPMSP Final Exam.

UPMSP 10th Exam Patt 说:
2021年10月13日 14:35

Uttar Pradesh Madhyamik Shiksha Parishad (UPMSP) has Recently Upload the UP Board Class 10th Question model paper 2022 Pdf Format model papers for Final Exam 2022. We are Providing here UPMSP 10th Exam Pattern 2022 the Sample Paper of All Subjects in PDF format. These UPMSP 10th model paper 2022 Represent the Design of Solved model paper Including the type of Questions and Distribution of marks across Different Sample Paper which will be followed in the Upcoming UPMSP Final Exam.


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter