libvert开启TCP监听

int32位 posted @ Mar 23, 2016 12:49:46 AM in openstack , 7532 阅读
转载请注明: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.

Bushra 说:
2022年12月27日 17:17

I would like to say that this blog really convinced me to do it! Thanks, very good post. where can i buy magic mushrooms

Bushra 说:
2022年12月28日 19:30

Very nice article, I enjoyed reading your post, very nice share, I want to twit this to my followers. Thanks!. scrap car removal Vancouver

Emma 说:
2022年12月29日 18:50

Libvirt is a virtualization library that provides a powerful and easy-to-use API for coronavirus vaccine managing virtual machines. Starting with version 4.0, libvirt has support for monitoring TCP connections. This makes it possible to monitor and debug network connectivity problems in virtual machines.

Bushra 说:
2022年12月29日 19:12

Thanks for the blog post buddy! Keep them coming... Pandya Store

Bushra 说:
2023年1月02日 00:26 This was really an interesting topic and I kinda agree with what you have mentioned here! Model Escort in Jaipur
Bushra 说:
2023年1月06日 19:04

I found that site very usefull and this survey is very cirious, I ' ve never seen a blog that demand a survey for this actions, very curious... Nanaimo movers

Bushra 说:
2023年1月10日 17:54

Its a great pleasure reading your post.Its full of information I am looking for and I love to post a comment that "The content of your post is awesome" Great work. <a href="https://saavikisavaari.net/">Pandya Store</a>

Bushra 说:
2023年1月10日 17:55 Its a great pleasure reading your post.Its full of information I am looking for and I love to post a comment that "The content of your post is awesome" Great work. Pandya Store
SEO 说:
2023年1月13日 19:27 It is a great website.. The Design looks very good.. Keep working like that!. pawn shops in avondale az
Bushra 说:
2023年1月14日 15:57

Wow i can say that this is another great article as expected of this blog.Bookmarked this site.. Surrey daycare

marketing Expert 说:
2023年1月15日 01:21
Great post, and great website. Thanks for the information!  french bulldogs for sale
SEO 说:
2023年1月15日 21:08

Great survey, I'm sure you're getting a great response. best Canadian website builder

Bushra 说:
2023年1月16日 00:30

Great survey, I'm sure you're getting a great response. slope unblocked

Bushra 说:
2023年1月17日 22:37

This one is good. keep up the good work!.. wall tiles price

Bushra 说:
2023年1月18日 03:33

This is such a great resource that you are providing and you give it away for free. sgx nifty chart

Bushra 说:
2023年1月21日 22:56

This is highly informatics, crisp and clear. I think that everything has been described in systematic manner so that reader could get maximum information and learn many things. Tally Customization

Marketing Expert 说:
2023年1月22日 01:02

I just couldn't leave your website before telling you that I truly enjoyed the top quality info you present to your visitors? Will be back again frequently to check up on new posts. winchester wst

Bushra 说:
2023年1月22日 02:04

Excellent and very exciting site. Love to watch. Keep Rocking. home made food delivery

SEO 说:
2023年1月25日 19:09

Thank you very much for this great post. jayden wei bio

Bushra 说:
2023年1月25日 22:00

I love this blog!! The flash up the top is awesome!! เว็บUFABETราคาน้ำดี

Marketing Expert 说:
2023年1月26日 03:16

Excellent post. I was always checking this blog, and I’m impressed! Extremely useful info specially the last part, I care for such information a lot. I was exploring this particular info for a long time. Thanks to this blog my exploration has ended. https://playonlinepetgames.com/

Bushra 说:
2023年1月26日 13:55

very interesting post.this is my first time visit here.i found so mmany interesting stuff in your blog especially its discussion..thanks for the post! ยูฟ่าเบทคืนยอดเสีย

Bushra 说:
2023年1月26日 23:50

It is a great website.. The Design looks very good.. Keep working like that!. male to male massage

Marketing Expert 说:
2023年1月27日 03:19

Thanks for posting this info. I just want to let you know that I just check out your site and I find it very interesting and informative. I can't wait to read lots of your posts. here

Bushra 说:
2023年1月27日 23:35

Its a great pleasure reading your post.Its full of information I am looking for and I love to post a comment that "The content of your post is awesome" Great work. how to scrap a car in bc

Bushra 说:
2023年1月28日 01:25

Thanks for sharing the post.. parents are worlds best person in each lives of individual..they need or must succeed to sustain needs of the family. cash for cars edmonton

Bushra 说:
2023年2月01日 13:35

Great survey, I'm sure you're getting a great response. daftar b88

SEO 说:
2023年2月01日 19:57

It is a great website.. The Design looks very good.. Keep working like that!. blue


登录 *


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