mirror of https://github.com/apache/cloudstack.git
Using this tool on a hypervisor admins can query KVM Instances running
on that hypervisor if they have the Qemu Guest Agent installed.
All System VMs have this and they can be queried.
For example:
$ cloudstack-guest-tool i-2-25-VM
This will print some information about network and filesystem status.
root@hv-138-a05-23:~# ./cloudstack-guest-tool s-11-VM --command info|jq
{
"network": [
{
"ip-addresses": [
{
"prefix": 8,
"ip-address": "127.0.0.1",
"ip-address-type": "ipv4"
}
],
"name": "lo",
"hardware-address": "00:00:00:00:00:00"
},
{
"ip-addresses": [
{
"prefix": 16,
"ip-address": "169.254.242.169",
"ip-address-type": "ipv4"
}
],
"name": "eth0",
"hardware-address": "0e:00:a9:fe:f2:a9"
},
...
...
"filesystem": [
{
"mountpoint": "/var",
"disk": [
{
"bus": 0,
"bus-type": "virtio",
"target": 0,
"unit": 0,
"pci-controller": {
"slot": 7,
"bus": 0,
"domain": 0,
"function": 0
}
}
],
"type": "ext4",
"name": "vda6"
},
Signed-off-by: Wido den Hollander <wido@widodh.nl>
|
||
|---|---|---|
| .. | ||
| source | ||
| changelog | ||
| cloudstack-agent.dirs | ||
| cloudstack-agent.install | ||
| cloudstack-agent.postinst | ||
| cloudstack-cli.install | ||
| cloudstack-common.install | ||
| cloudstack-docs.install | ||
| cloudstack-integration-tests.install | ||
| cloudstack-management.install | ||
| cloudstack-management.postinst | ||
| cloudstack-management.preinst | ||
| cloudstack-marvin.install | ||
| cloudstack-marvin.postinst | ||
| cloudstack-usage.dirs | ||
| cloudstack-usage.install | ||
| cloudstack-usage.postinst | ||
| cloudstack-usage.preinst | ||
| compat | ||
| control | ||
| copyright | ||
| dirs | ||
| rules | ||