Find Guest IP address using QEMU Guest Agent
来源:互联网 发布:知乎如何回答最新问题 编辑:程序博客网 时间:2024/05/17 11:57
http://dustymabe.com/2013/07/14/find-guest-ip-address-using-qemu-guest-agent/
Ever needed to find the IP address of a particular guest? Of course, the answer is "yes". For the most part I have either resorted to going in through the console of the VM to find this information or used some nifty little script like the one describedhere by Richard Jones. However, if you have qemu Guest Agent set up ( I covered this briefly in a previous post ), then you can just query this information using the guest-network-get-interfaces
qemu-ga command:
[root@host ~]# virsh qemu-agent-command Fedora19 '{"execute":"guest-network-get-interfaces"}' | python -mjson.tool { "return": [ { "hardware-address": "00:00:00:00:00:00", "ip-addresses": [ { "ip-address": "127.0.0.1", "ip-address-type": "ipv4", "prefix": 8 }, { "ip-address": "::1", "ip-address-type": "ipv6", "prefix": 128 } ], "name": "lo" }, { "hardware-address": "52:54:00:ba:4d:ef", "ip-addresses": [ { "ip-address": "192.168.100.136", "ip-address-type": "ipv4", "prefix": 24 }, { "ip-address": "fe80::5054:ff:feba:4def", "ip-address-type": "ipv6", "prefix": 64 } ], "name": "eth0" } ]}This gives us all of the information related to each network interface of the VM. Notice that I ran the output through a JSON formatter to make it more readable.
0 0
- Find Guest IP address using QEMU Guest Agent
- qemu-guest-agent调研
- qemu guest agent安装研究
- qemu guest agent windows 安装
- qemu guest agent修改密码(python)
- qemu-guest-agent各版本功能演进
- qemu-guest-agent的一些用途
- 利用qemu-guest-agent冻结文件系统
- nova 通过 qemu-guest-agent 修改用户密码
- 利用Qemu Guest Agent (Qemu-ga) 实现 Openstack 监控平台
- 利用Qemu Guest Agent (Qemu-ga) 实现 Openstack 监控平台
- qemu-guest-agent windows下的监控开发
- qemu-guest-agent windows下的监控开发
- OpenStack: Perform Consistent Snapshots With Qemu Guest Agent
- guest
- openstack通过qemu-guest-agent在物理机上操作虚拟机
- How QEMU fakes GPA to guest OS
- Guest OS, Qemu, KVM工作流程
- 整理iOS9适配中出现的坑
- 栈-二进制转换为十进制
- JavaScript Core -- 构造命名空间封装函数
- POJ 2349 Arctic Network(最小生成树之Prim)
- 极大似然估计
- Find Guest IP address using QEMU Guest Agent
- IDL读取hdf文件
- psmisc 程序
- SQL Server 2000 分页查询
- 奇异值和特征值
- FIR滤波器设计中的窗函数
- ubuntu 可用的好源收集
- 《软考之旅》——数据结构导论总结
- 第4周项目1 建立单链表