i am using 4.4.10 .
if i login to ovirt manager website,i can see vm's ip info,
nic1
网络名称
vlan11
IPv4
192.168.11.238
IPv6
fe80::8b0d:288f:bbb:3c19
MAC
56:6f:4e:14:00:00
while run the command,i could get lot of infos about vm,for example below,but i can't
find vm's ipaddress.please help me.thanks!
curl -k -H "Accept: application/json" -H "Authorization:
xxxxxxxxxxxxxx"
https://enginexxxxx.com/ovirt-engine/api/vms
{
"guest_operating_system": {
"architecture": "x86_64",
"codename": "",
"distribution": "CentOS Linux",
"family": "Linux",
"kernel": {
"version": {
"build": "0",
"full_version": "3.10.0-862.el7.x86_64",
"major": "3",
"minor": "10",
"revision": "862"
}
},
"version": {
"full_version": "7",
"major": "7"
}
},
"guest_time_zone": {
"name": "CST",
"utc_offset": "+08:00"
},
"next_run_configuration_exists": "false",
"run_once": "false",
"start_time": 1656494158035,
"status": "up",
"stop_time": 1656493463353,
"host": {
"href":
"/ovirt-engine/api/hosts/7ba743ab-5cbc-4472-ab6c-b95be8eed569",
"id": "7ba743ab-5cbc-4472-ab6c-b95be8eed569"
},
"original_template": {
"href":
"/ovirt-engine/api/templates/2c70e56e-80e2-41fb-8fce-5cdaf71935d6",
"id": "2c70e56e-80e2-41fb-8fce-5cdaf71935d6"
},
"template": {
"href":
"/ovirt-engine/api/templates/00000000-0000-0000-0000-000000000000",
"id": "00000000-0000-0000-0000-000000000000"
},
"actions": {
"link": [{
"href":
"/ovirt-engine/api/vms/18f940ef-e74c-4c45-b8c8-042945e530d0/shutdown",
"rel": "shutdown"
}, {
"href":
"/ovirt-engine/api/vms/18f940ef-e74c-4c45-b8c8-042945e530d0/start",
"rel": "start"
}, {
"href":
"/ovirt-engine/api/vms/18f940ef-e74c-4c45-b8c8-042945e530d0/stop",
"rel": "stop"
}, {
"href":
"/ovirt-engine/api/vms/18f940ef-e74c-4c45-b8c8-042945e530d0/suspend",
"rel": "suspend"
}, {
"href":
"/ovirt-engine/api/vms/18f940ef-e74c-4c45-b8c8-042945e530d0/reset",
"rel": "reset"
}, {
"href":
"/ovirt-engine/api/vms/18f940ef-e74c-4c45-b8c8-042945e530d0/detach",
"rel": "detach"
}, {
"href":
"/ovirt-engine/api/vms/18f940ef-e74c-4c45-b8c8-042945e530d0/ticket",
"rel": "ticket"
}, {
"href":
"/ovirt-engine/api/vms/18f940ef-e74c-4c45-b8c8-042945e530d0/cancelmigration",
"rel": "cancelmigration"
}, {
"href":
"/ovirt-engine/api/vms/18f940ef-e74c-4c45-b8c8-042945e530d0/commitsnapshot",
"rel": "commitsnapshot"
}, {
"href":
"/ovirt-engine/api/vms/18f940ef-e74c-4c45-b8c8-042945e530d0/clone",
"rel": "clone"
}, {
"href":
"/ovirt-engine/api/vms/18f940ef-e74c-4c45-b8c8-042945e530d0/freezefilesystems",
"rel": "freezefilesystems"
}, {
"href":
"/ovirt-engine/api/vms/18f940ef-e74c-4c45-b8c8-042945e530d0/logon",
"rel": "logon"
}, {
"href":
"/ovirt-engine/api/vms/18f940ef-e74c-4c45-b8c8-042945e530d0/maintenance",
"rel": "maintenance"
}, {
"href":
"/ovirt-engine/api/vms/18f940ef-e74c-4c45-b8c8-042945e530d0/previewsnapshot",
"rel": "previewsnapshot"
}, {
"href":
"/ovirt-engine/api/vms/18f940ef-e74c-4c45-b8c8-042945e530d0/autopincpuandnumanodes",
"rel": "autopincpuandnumanodes"
}, {
"href":
"/ovirt-engine/api/vms/18f940ef-e74c-4c45-b8c8-042945e530d0/reboot",
"rel": "reboot"
}, {
"href":
"/ovirt-engine/api/vms/18f940ef-e74c-4c45-b8c8-042945e530d0/migrate",
"rel": "migrate"
}, {
"href":
"/ovirt-engine/api/vms/18f940ef-e74c-4c45-b8c8-042945e530d0/reordermacaddresses",
"rel": "reordermacaddresses"
}, {
"href":
"/ovirt-engine/api/vms/18f940ef-e74c-4c45-b8c8-042945e530d0/thawfilesystems",
"rel": "thawfilesystems"
}, {
"href":
"/ovirt-engine/api/vms/18f940ef-e74c-4c45-b8c8-042945e530d0/undosnapshot",
"rel": "undosnapshot"
}, {
"href":
"/ovirt-engine/api/vms/18f940ef-e74c-4c45-b8c8-042945e530d0/export",
"rel": "export"
}]
},
"name": "centos-test2",
"description": "",
"comment": "",
"href":
"/ovirt-engine/api/vms/18f940ef-e74c-4c45-b8c8-042945e530d0",
"id": "18f940ef-e74c-4c45-b8c8-042945e530d0",
"bios": {
"boot_menu": {
"enabled": "false"
},
"type": "q35_sea_bios"
},
"cpu": {
"architecture": "x86_64",
"topology": {
"cores": "1",
"sockets": "8",
"threads": "1"
}
},
"display": {
"address": "192.168.13.191",
"allow_override": "false",
"certificate": {
"content": "-----BEGIN CERTIFICATE-----\nxxxx\n-----END
CERTIFICATE-----\n",
"organization": "ejy365.com",
"subject": "O=ejy365.com,CN=192.168.13.191"
},
"copy_paste_enabled": "true",
"disconnect_action": "LOCK_SCREEN",
"file_transfer_enabled": "true",
"monitors": "1",
"port": "5900",
"secure_port": "5901",
"smartcard_enabled": "false",
"type": "spice"
},
"io": {
"threads": "1"
},
"memory": "17179869184",
"migration": {
"auto_converge": "inherit",
"compressed": "inherit",
"encrypted": "inherit"
},
"origin": "ovirt",
"os": {
"boot": {
"devices": {
"device": ["hd"]
}
},
"type": "rhel_7x64"
},
"sso": {
"methods": {
"method": [{
"id": "guest_agent"
}]
}
},
"stateless": "false",
"type": "server",
"usb": {
"enabled": "false"
},
"cluster": {
"href":
"/ovirt-engine/api/clusters/9fd83c65-adbf-483d-b6cc-2b5aec4d17f1",
"id": "9fd83c65-adbf-483d-b6cc-2b5aec4d17f1"
},
"link": [{
"href":
"/ovirt-engine/api/vms/18f940ef-e74c-4c45-b8c8-042945e530d0/katelloerrata",
"rel": "katelloerrata"
}, {
"href":
"/ovirt-engine/api/vms/18f940ef-e74c-4c45-b8c8-042945e530d0/permissions",
"rel": "permissions"
}, {
"href":
"/ovirt-engine/api/vms/18f940ef-e74c-4c45-b8c8-042945e530d0/tags",
"rel": "tags"
}, {
"href":
"/ovirt-engine/api/vms/18f940ef-e74c-4c45-b8c8-042945e530d0/affinitylabels",
"rel": "affinitylabels"
}, {
"href":
"/ovirt-engine/api/vms/18f940ef-e74c-4c45-b8c8-042945e530d0/graphicsconsoles",
"rel": "graphicsconsoles"
}, {
"href":
"/ovirt-engine/api/vms/18f940ef-e74c-4c45-b8c8-042945e530d0/cdroms",
"rel": "cdroms"
}, {
"href":
"/ovirt-engine/api/vms/18f940ef-e74c-4c45-b8c8-042945e530d0/nics",
"rel": "nics"
}, {
"href":
"/ovirt-engine/api/vms/18f940ef-e74c-4c45-b8c8-042945e530d0/watchdogs",
"rel": "watchdogs"
}, {
"href":
"/ovirt-engine/api/vms/18f940ef-e74c-4c45-b8c8-042945e530d0/snapshots",
"rel": "snapshots"
}, {
"href":
"/ovirt-engine/api/vms/18f940ef-e74c-4c45-b8c8-042945e530d0/applications",
"rel": "applications"
}, {
"href":
"/ovirt-engine/api/vms/18f940ef-e74c-4c45-b8c8-042945e530d0/hostdevices",
"rel": "hostdevices"
}, {
"href":
"/ovirt-engine/api/vms/18f940ef-e74c-4c45-b8c8-042945e530d0/numanodes",
"rel": "numanodes"
}, {
"href":
"/ovirt-engine/api/vms/18f940ef-e74c-4c45-b8c8-042945e530d0/reporteddevices",
"rel": "reporteddevices"
}, {
"href":
"/ovirt-engine/api/vms/18f940ef-e74c-4c45-b8c8-042945e530d0/sessions",
"rel": "sessions"
}, {
"href":
"/ovirt-engine/api/vms/18f940ef-e74c-4c45-b8c8-042945e530d0/backups",
"rel": "backups"
}, {
"href":
"/ovirt-engine/api/vms/18f940ef-e74c-4c45-b8c8-042945e530d0/checkpoints",
"rel": "checkpoints"
}, {
"href":
"/ovirt-engine/api/vms/18f940ef-e74c-4c45-b8c8-042945e530d0/diskattachments",
"rel": "diskattachments"
}, {
"href":
"/ovirt-engine/api/vms/18f940ef-e74c-4c45-b8c8-042945e530d0/statistics",
"rel": "statistics"
}],
"cpu_shares": "0",
"creation_time": 1656466718984,
"delete_protected": "false",
"high_availability": {
"enabled": "false",
"priority": "1"
},
"large_icon": {
"href":
"/ovirt-engine/api/icons/3cc4f676-4aea-48b5-bfe9-b1b8db5585e3",
"id": "3cc4f676-4aea-48b5-bfe9-b1b8db5585e3"
},
"memory_policy": {
"ballooning": "true",
"guaranteed": "11452547072",
"max": "68719476736"
},
"migration_downtime": "-1",
"multi_queues_enabled": "true",
"placement_policy": {
"affinity": "pinned"
},
"serial_number": {
"policy": "host"
},
"small_icon": {
"href":
"/ovirt-engine/api/icons/8bcef820-00d7-4845-b73f-57516e06afd2",
"id": "8bcef820-00d7-4845-b73f-57516e06afd2"
},
"start_paused": "false",
"storage_error_resume_behaviour": "kill",
"time_zone": {
"name": "Asia/Shanghai"
},
"virtio_scsi_multi_queues_enabled": "false",
"cpu_profile": {
"href":
"/ovirt-engine/api/cpuprofiles/50250d96-e65f-415a-9af1-5c59fbf5d474",
"id": "50250d96-e65f-415a-9af1-5c59fbf5d474"
}
}