zeroconf

openstack导入镜像

一世执手 提交于 2020-12-17 04:52:52
本文以制作CentOS7.2镜像为例,详细介绍手动制作OpenStack镜像详细步骤,解释每一步这么做的原因。镜像上传到OpenStack glance,支持以下几个功能: 支持密码注入功能(nova boot时通过–admin-pass参数指定设置初始密码) 支持根分区自动调整(根分区自动调整为flavor disk大小,而不是原始镜像分区大小) 支持动态修改密码(使用nova set-password命令可以修改管理员密码) 手动制作镜像非常麻烦和耗时,本文后面会介绍一个专门用于自动化构建镜像的项目DIB,通过DIB只需要在命令行上指定elements即可制作镜像,省去了重复下载镜像、启动虚拟机配置镜像的繁杂步骤。 镜像的宿主机操作系统为Ubuntu 14.04,开启了VT功能(使用kvm-ok命令验证)并安装了libvirt系列工具,包括virsh、virt-manager、libguestfs-tools等。 1 手动制作OpenStack镜像 1.1 下载镜像 访问官方 镜像地址 下载,注意选择中国的镜像源,相对国外镜像下载速度更快,进入后选择版本为7.2.1511,在isos目录下下载x86_64的Minimal镜像,如果网速不给力,最好不要选择下载Netinstall镜像,因为这会在安装时联网下载大量的软件包,重新安装时需要重新下载这些软件包。 1.2 创建虚拟机

[生产事故]:Linux上avahi-daemon Service当网卡流量大,网络请求超时故障

こ雲淡風輕ζ 提交于 2020-08-11 10:29:18
当机器重启后,发现几台主机的主机名一致,avahi-daemon Service服务是开启的,外界流量大的时候,网络请求超时 avahi-daemon是一种Linux操作系统上运行在客户机上实施查找基于网络的Zeroconf service的服务守护进程。 该服务可以为Zeroconf网络实现DNS服务发现及DNS组播规范。 用户程序通过Linux D-Bus信息传递接收发现到网络服务和资源的通知。 该守护进程配合缓存用户程序的答复,以帮助减少因答复而产生的网络流量。 详见以下描述: Description The avahi-daemon Linux service runs on client machines to perform network-based Zeroconf service discovery. Avahi is an implementation of the DNS Service Discovery and Multicast DNS specifications for Zeroconf Networking. Host name confilct 最后执行systemctl stop avahi-daemon.socket systemctl disbable avahi-daemon.socket 来源: oschina 链接: https:/

python zeroconf show IPv4 addresses

旧街凉风 提交于 2020-05-15 05:54:30
问题 I'm trying to figure out how to scan the network for devices which are published by avahi. #!/usr/bin/python3 from zeroconf import ServiceBrowser, Zeroconf from time import sleep class MyListener: def remove_service(self, zeroconf, type, name): print("Service % removed" % (name)) def add_service(self, zeroconf, type, name): info = zeroconf.get_service_info(type, name) info = str(info) info = info.split(",")[6] print(info) zeroconf = Zeroconf() listener = MyListener() browser = ServiceBrowser

python zeroconf show IPv4 addresses

我与影子孤独终老i 提交于 2020-05-15 05:54:26
问题 I'm trying to figure out how to scan the network for devices which are published by avahi. #!/usr/bin/python3 from zeroconf import ServiceBrowser, Zeroconf from time import sleep class MyListener: def remove_service(self, zeroconf, type, name): print("Service % removed" % (name)) def add_service(self, zeroconf, type, name): info = zeroconf.get_service_info(type, name) info = str(info) info = info.split(",")[6] print(info) zeroconf = Zeroconf() listener = MyListener() browser = ServiceBrowser

How to send socket data from android device to pc connected via Android's Hotspot(AP)

帅比萌擦擦* 提交于 2020-04-18 03:55:29
问题 Related question with no answers Using DatagramSocket and python socket with devices connected to hotspot My goal to implement something like syncthing so I can transfer files across my devices on a local network. (It is bidirectional i.e. android to PC, PC to android, PC to PC, android to android). (My setup is a laptop and an android 10 device which I use as a hotspot to access the internet in my laptop) I've been trying to implement network device discovery using jmdns , Jmdns was able to

Bonjour: Search for a service by name

£可爱£侵袭症+ 提交于 2020-03-06 04:50:13
问题 I have an application that needs to search and resolve a Bonjour-advertised service whose name is known in advance. Most Bonjour examples I have found related to service discovery are structured more or less like this: Call browse to detect all services of a given type (for example, this could be _http._tcp ) For each service found, serviceFound is called. Service names are reported here Call resolve on each service found For each service resolved, serviceResolved is called Is it possible

Problems compiling avahi into Android NDK project

寵の児 提交于 2020-02-12 02:38:09
问题 Over the last few days I've been having a difficult time trying to build avahi into a static or shared library for use with an existing Android NDK project. We have a few games in the App and Play stores and my task is to get multiplayer working in the Android versions. Specifically the task involves replacing the Bonjour component so that these games can connect to each other via zeroconf. Research seemed to indicate that avahi is the lib that we're looking for, but at this point I'm open to

Connect to website on local network without knowing IP

♀尐吖头ヾ 提交于 2020-01-23 18:55:40
问题 I'm creating an embedded device (based on an RPi) which will connect to the local network. I would like this device to be able to configure the device via a web page (much the same as many routers). I would like the user to type [http://my-device-config] (or some other fixed address) into the web browser and be sent to the config page without having to know the ip address of the device. The steps the user would take are as follows: User plugs device into network/turns device on. User types

Unable to communicate to device with .local domain using android, corova-zeroconf-plugin

人走茶凉 提交于 2020-01-06 17:07:27
问题 I am having an iot device which is advertising in my network with name iotdevice.local, i am able to send http requests to this domain in my windows pc after installing Bonjour. But i am developing an ionic app from which i'll be communicating frequently with this device. So i am using cordova-zeroconf-plugin. (https://www.npmjs.com/package/cordova-plugin-zeroconf). I am seeing the services when i add watch for .local services. but my requestis faield when i use iotdevice.local in $http

Unable to communicate to device with .local domain using android, corova-zeroconf-plugin

喜夏-厌秋 提交于 2020-01-06 17:04:37
问题 I am having an iot device which is advertising in my network with name iotdevice.local, i am able to send http requests to this domain in my windows pc after installing Bonjour. But i am developing an ionic app from which i'll be communicating frequently with this device. So i am using cordova-zeroconf-plugin. (https://www.npmjs.com/package/cordova-plugin-zeroconf). I am seeing the services when i add watch for .local services. but my requestis faield when i use iotdevice.local in $http