Hi Jithin, Thanks for the info!
It's strange, I followed every single step of the template creation guide, but I still can't figure out why the IPs aren't being pulled. I can confirm that the VMs receive an IP as soon as they boot. The logs have so far not shown anything, and I don't know what I'd grep for to look for that specific an error. Any further assistance you can provide would be appreciated! Regards, Carlo Fernandez -----Original Message----- From: Jithin Raju <jithin.r...@shapeblue.com> Sent: Wednesday, November 15, 2023 9:34 PM To: users@cloudstack.apache.org Subject: Re: IP Address Not Showing On UI Hi Carlo, We don’t have to run the command manually cloudstack uses it internally. -Jithin From: Carlo Fernandez <cfernan...@alatar.co> Date: Thursday, 16 November 2023 at 11:01 AM To: users@cloudstack.apache.org <users@cloudstack.apache.org> Subject: Re: IP Address Not Showing On UI Hi Jithin, Thank you so much! I’ve never used the guestfish command, but from the sample command it looks like this would have to be run manually for every guest VM. Is there a way to automate this? Thanks, Carlo Fernandez > On Nov 15, 2023, at 9:22 PM, Jithin Raju <jithin.r...@shapeblue.com> wrote: > > Hi Carlo, > > Ideally, the guest IPs served by external DHCP would be fetched by the > management server via hypervisor, I haven’t used it with KVM recently. > > https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=53740 > 797 > > Getting DHCP IP from the VM by CS > 1. Retrieve the IP from the Vm and update in the CS DB. > a. VmWare > With the help of vmware tools, Vm IP will be read from the > information by the hypervisor > Note: Required vmware tools needs to be installed in Vm. > > b. XenServer > Retrieve the VM IP from XenServer using the below command by > passing the VM name. > #xe vm-list name-label=<vmname> params=networks > The output is parsed to get the vm ip address. > Note: Windows VM requires PV drivers to be installed to get the > VM IP. > > c. KVM > Use the guestfish command in KVM host to read the VM dhcp lease > and parse it get the VM IP address. > #guestfish --ro -i -d i-2-21-VM download > /var/lib/dhclient/dhclient-eth0.leases - > > Note: Reading IP using guestfish command works for only Linux > guest VMs. > > > -Jithin > > From: Carlo Fernandez <cfernan...@alatar.co> > Date: Thursday, 16 November 2023 at 9:52 AM > To: users@cloudstack.apache.org <users@cloudstack.apache.org> > Subject: IP Address Not Showing On UI > Hi folks, > > I got CloudStack up and running on a few KVM hosts and everything is working > as expected, except for one thing. > > Since the IP addresses for guest VMs are assigned by an external DHCP server, > the IP addresses assigned won’t show up in the UI. > > Is there any way to get these to show up? Any script or anything that I can > add to my images? > > Currently, users have to log in via the console to see the IP address so that > they can SSH into their VMs. > > I appreciate any help you can provide! > > Regards, > > Carlo Fernandez > > >