You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by "NuxRo (via GitHub)" <gi...@apache.org> on 2023/01/30 09:39:31 UTC
[GitHub] [cloudstack] NuxRo opened a new issue, #7142: GSoC 2023 Idea: Autodetect IPs used inside the VM
NuxRo opened a new issue, #7142:
URL: https://github.com/apache/cloudstack/issues/7142
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 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:
```
root@fedora35 ~]# virsh domifaddr win2k22 --source agent
Name MAC address Protocol Address
-------------------------------------------------------------------------------
Ethernet 52:54:00:7b:23:6a ipv4 192.168.0.68/24
Loopback Pseudo-Interface 1 ipv6 ::1/128
- - ipv4 127.0.0.1/8
```
The 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.
Once we have this information we could display it in the UI/API as "Autodetected VM IPs" or something like that.
I imagine it's very similar for VMWare and XCP-ng.
Thank you
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [cloudstack] DaanHoogland commented on issue #7142: GSoC 2023 Idea: Autodetect IPs used inside the VM
Posted by "DaanHoogland (via GitHub)" <gi...@apache.org>.
DaanHoogland commented on issue #7142:
URL: https://github.com/apache/cloudstack/issues/7142#issuecomment-1489835913
@adi4656 it makes sense to introduce yourself on dev@cloudstack.apache.org, but good luck with your assignment. Let us know how you fare ;)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [cloudstack] alexandremattioli commented on issue #7142: GSoC 2023 Idea: Autodetect IPs used inside the VM
Posted by "alexandremattioli (via GitHub)" <gi...@apache.org>.
alexandremattioli commented on issue #7142:
URL: https://github.com/apache/cloudstack/issues/7142#issuecomment-1477651882
Could add a "search by IP" function as well.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [cloudstack] adi4656 commented on issue #7142: GSoC 2023 Idea: Autodetect IPs used inside the VM
Posted by "adi4656 (via GitHub)" <gi...@apache.org>.
adi4656 commented on issue #7142:
URL: https://github.com/apache/cloudstack/issues/7142#issuecomment-1489601871
Hi @NuxRo - I’m Adi, a 2nd year Computing student at Imperial College London. I’m interested in this project and will be developing my proposal over the next few days. I have already been in touch with Nicolás Vazquez but thought it worthwhile to introduce myself here too. Apologies for starting so late; I’ve been busy with a university project deadline but will do my utmost best to catch up. Looking forward to communicating with you about this feature!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org