Title: Autodetect IPs used inside the VM · Issue #7142 · apache/cloudstack · GitHub
Open Graph Title: Autodetect IPs used inside the VM · Issue #7142 · apache/cloudstack
X Title: Autodetect IPs used inside the VM · Issue #7142 · apache/cloudstack
Description: With regards to IP info reporting, Cloudstack relies entirely on it's DHCP data bases and so on. When this is not available (L2 networks etc) no IP information is shown for a given VM. I propose we introduce a mechanism for "IP autodetec...
Open Graph Description: With regards to IP info reporting, Cloudstack relies entirely on it's DHCP data bases and so on. When this is not available (L2 networks etc) no IP information is shown for a given VM. I propose we...
X Description: With regards to IP info reporting, Cloudstack relies entirely on it's DHCP data bases and so on. When this is not available (L2 networks etc) no IP information is shown for a given VM. I propos...
Opengraph URL: https://github.com/apache/cloudstack/issues/7142
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Autodetect IPs used inside the VM","articleBody":"With regards to IP info reporting, Cloudstack relies entirely on it's DHCP data bases and so on. When this is not available (L2 networks etc) no IP information is shown for a given VM.\r\n\r\nI propose we introduce a mechanism for \"IP autodetection\" and try to discover the IPs used inside the machines by means of querying the hypervisors. For example with KVM/libvirt we can simply do something like this:\r\n\r\n```\r\nroot@fedora35 ~]# virsh domifaddr win2k22 --source agent\r\n Name MAC address Protocol Address\r\n-------------------------------------------------------------------------------\r\n Ethernet 52:54:00:7b:23:6a ipv4 192.168.0.68/24\r\n Loopback Pseudo-Interface 1 ipv6 ::1/128\r\n - - ipv4 127.0.0.1/8\r\n```\r\n\r\nThe above command queries the qemu-guest-agent inside the Windows VM. The VM needs to have the qemu-guest-agent installed and running as well as the virtio serial drivers (easily done in this case with [virtio-win-guest-tools.exe](https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/archive-virtio/virtio-win-0.1.215-2/virtio-win-guest-tools.exe) ) as well as a guest-agent socket channel defined in libvirt.\r\n\r\nOnce we have this information we could display it in the UI/API as \"Autodetected VM IPs\" or something like that.\r\n\r\nI imagine it's very similar for VMWare and XCP-ng.\r\n\r\nThank you","author":{"url":"https://github.com/NuxRo","@type":"Person","name":"NuxRo"},"datePublished":"2023-01-30T09:39:30.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/7142/cloudstack/issues/7142"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:c9ae5da1-22ca-0533-7393-595dfe96e5a4 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E8E2:69662:1A439BC:243FE45:6A4EBB5A |
| html-safe-nonce | ac95ff1f33d28bb61133bfab1e18b73c66ab17ef1183b735281d9dcc885fa305 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFOEUyOjY5NjYyOjFBNDM5QkM6MjQzRkU0NTo2QTRFQkI1QSIsInZpc2l0b3JfaWQiOiIxOTIzMzM3MTYyMTAwNDg5MDUwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | fe05cbc5dfd9904f8631b5b0adfc75d4099e897a1b8c8ca627834ee0dc9b3ea7 |
| hovercard-subject-tag | issue:1562079451 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/apache/cloudstack/7142/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b0633ef8a9a5308207bc03cc5f67bace56f5f10778c14a237c06d605a60db790/apache/cloudstack/issues/7142 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b0633ef8a9a5308207bc03cc5f67bace56f5f10778c14a237c06d605a60db790/apache/cloudstack/issues/7142 |
| og:image:alt | With regards to IP info reporting, Cloudstack relies entirely on it's DHCP data bases and so on. When this is not available (L2 networks etc) no IP information is shown for a given VM. I propose we... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | NuxRo |
| hostname | github.com |
| expected-hostname | github.com |
| None | 41b6ab3ba6d20a71766ac245b5a4a94c6fc672a9cd4da7d44c1b33ab8bf6a21c |
| turbo-cache-control | no-preview |
| go-import | github.com/apache/cloudstack git https://github.com/apache/cloudstack.git |
| octolytics-dimension-user_id | 47359 |
| octolytics-dimension-user_login | apache |
| octolytics-dimension-repository_id | 9759448 |
| octolytics-dimension-repository_nwo | apache/cloudstack |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 9759448 |
| octolytics-dimension-repository_network_root_nwo | apache/cloudstack |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | e6a744804e8e70f97b4d5a18a94dcc63db22f97a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width