You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cloudstack.apache.org by Fariborz Navidan <md...@gmail.com> on 2013/11/21 13:07:04 UTC

New VM inherits template's network settings

Hi,

New VM inherits template's network settings and not new allocated IP and
settings.

Please advise.

Re: New VM inherits template's network settings

Posted by Nux! <nu...@li.nux.ro>.
On 21.11.2013 14:13, Fariborz Navidan wrote:
> libvurt is installed on the host node. the cloudstack management and 
> the
> template vm runs on this host. So if I want to reference the to 
> template vm
> image I should install libguestfs-tools on the host node. So how will 
> it
> modify or unconfigure the template vm?

That's fine, virt-tools does not conflict with cloudstack, it's 
actually a complement to libvirt.
You just need to find out which is the file disk of this VM. Power off 
the VM before you run virt-sysprep against it.

-- 
Sent from the Delta quadrant using Borg technology!

Nux!
www.nux.ro

Re: New VM inherits template's network settings

Posted by Fariborz Navidan <md...@gmail.com>.
libvurt is installed on the host node. the cloudstack management and the
template vm runs on this host. So if I want to reference the to template vm
image I should install libguestfs-tools on the host node. So how will it
modify or unconfigure the template vm?

Regards.

On Thu, Nov 21, 2013 at 5:27 PM, Nux! <nu...@li.nux.ro> wrote:

> On 21.11.2013 13:25, Fariborz Navidan wrote:
>
>> Hi.
>>
>> On which machine should I install libguestfs-tools? the host (where
>> libvirt
>> is installed) or on the machine from which template will be created?
>>
>
> On the machine the template is created. After you have finished installing
> the OS and made all the preparations, stop the template VM then run
> something like:
> virt-sysprep -a /var/lib/libvirt/images/template.img
>
>
> --
> Sent from the Delta quadrant using Borg technology!
>
> Nux!
> www.nux.ro
>



-- 
Fariborz Navidan
Sales & Technical Manager
Shetab Rayan Limited.
www.shetabrayan.com

Re: New VM inherits template's network settings

Posted by Nux! <nu...@li.nux.ro>.
On 21.11.2013 13:25, Fariborz Navidan wrote:
> Hi.
> 
> On which machine should I install libguestfs-tools? the host (where 
> libvirt
> is installed) or on the machine from which template will be created?

On the machine the template is created. After you have finished 
installing the OS and made all the preparations, stop the template VM 
then run something like:
virt-sysprep -a /var/lib/libvirt/images/template.img

-- 
Sent from the Delta quadrant using Borg technology!

Nux!
www.nux.ro

Re: New VM inherits template's network settings

Posted by Fariborz Navidan <md...@gmail.com>.
Hi.

On which machine should I install libguestfs-tools? the host (where libvirt
is installed) or on the machine from which template will be created?

Thanks in advance.


On Thu, Nov 21, 2013 at 3:57 PM, Fariborz Navidan <md...@gmail.com>wrote:

> Ohh. In the admin guide it is not mentioned that I should run sysprep it
> is only mentioned for windows.
>
> Thanks for advise.
>
>
> On Thu, Nov 21, 2013 at 3:43 PM, Nux! <nu...@li.nux.ro> wrote:
>
>> On 21.11.2013 12:07, Fariborz Navidan wrote:
>>
>>> Hi,
>>>
>>> New VM inherits template's network settings and not new allocated IP and
>>> settings.
>>>
>>
>> Do you have a eth1 instead of eth0? It means you probably still have eth0
>> mapped on the MAC address of the original VM the template came out of.
>> I suggest you install libguestfs-tools and run virt-sysprep on your
>> template. This will wipe out the udev rules for network interfaces, reset
>> selinux, reset the random seed etc so that the template can be used
>> properly.
>>
>>
>>
>> --
>> Sent from the Delta quadrant using Borg technology!
>>
>> Nux!
>> www.nux.ro
>>
>
>
>
> --
> Fariborz Navidan
> Sales & Technical Manager
> Shetab Rayan Limited.
> www.shetabrayan.com
>



-- 
Fariborz Navidan
Sales & Technical Manager
Shetab Rayan Limited.
www.shetabrayan.com

Re: New VM inherits template's network settings

Posted by Fariborz Navidan <md...@gmail.com>.
Ohh. In the admin guide it is not mentioned that I should run sysprep it is
only mentioned for windows.

Thanks for advise.


On Thu, Nov 21, 2013 at 3:43 PM, Nux! <nu...@li.nux.ro> wrote:

> On 21.11.2013 12:07, Fariborz Navidan wrote:
>
>> Hi,
>>
>> New VM inherits template's network settings and not new allocated IP and
>> settings.
>>
>
> Do you have a eth1 instead of eth0? It means you probably still have eth0
> mapped on the MAC address of the original VM the template came out of.
> I suggest you install libguestfs-tools and run virt-sysprep on your
> template. This will wipe out the udev rules for network interfaces, reset
> selinux, reset the random seed etc so that the template can be used
> properly.
>
>
>
> --
> Sent from the Delta quadrant using Borg technology!
>
> Nux!
> www.nux.ro
>



-- 
Fariborz Navidan
Sales & Technical Manager
Shetab Rayan Limited.
www.shetabrayan.com

Re: New VM inherits template's network settings

Posted by Nux! <nu...@li.nux.ro>.
On 21.11.2013 12:07, Fariborz Navidan wrote:
> Hi,
> 
> New VM inherits template's network settings and not new allocated IP 
> and
> settings.

Do you have a eth1 instead of eth0? It means you probably still have 
eth0 mapped on the MAC address of the original VM the template came out 
of.
I suggest you install libguestfs-tools and run virt-sysprep on your 
template. This will wipe out the udev rules for network interfaces, 
reset selinux, reset the random seed etc so that the template can be 
used properly.



-- 
Sent from the Delta quadrant using Borg technology!

Nux!
www.nux.ro