Hi,

There is no other way to change the ip.
If you want specific IP for the VM, you can get secondary ip  in vm NICs page 
and configure it on the VM.

Thanks,
Jayapal


On 19-Dec-2013, at 3:58 PM, Andrei Mikhailovsky <and...@arhont.com> wrote:

> Do you know if there is an easier way? Like via the api calls or the 
> cloudmonkey command? Or is it currently the only way?
> 
> 
> ----- Original Message -----
> From: "Jayapal Reddy Uradi" <jayapalreddy.ur...@citrix.com>
> To: "<users@cloudstack.apache.org>" <users@cloudstack.apache.org>
> Sent: Thursday, 19 December, 2013 9:25:05 AM
> Subject: Re: Change of guest IP address
> 
> Hi,
> 
> If your VM is in isolated network please do the following
> 
> 1. edit the nics table ip4_address column for your instance_id to new ip.
> 2. login to the router corresponds to the network and replace old ip with new 
> ip in below files.
>  a.  /var/lib/misc/dnsmasq.leases
>  b.  /etc/dhcphosts.txt
> 3. restart the dnsmasq in router (service dnsmasq restart)
> 4. Reboot the VM or restart the network service in Vm so that VM gets the new 
> ip from the dhcp.  
> 
> Thanks,
> Jayapal
> 
> On 19-Dec-2013, at 2:27 PM, Andrei Mikhailovsky <and...@arhont.com>
> wrote:
> 
>> Hello guys,
>> 
>> Could some one tell me how to change the IP address of a guest vm? It has 
>> been assigned by default by dhcp router and I would like to change it. I 
>> know how to create a new vm with a specified IP address using cloudmonkey, 
>> but I couldn't find a way of changing the IP for the existing vm.
>> 
>> Cheers
>> 
>> Andrei
> 

Reply via email to