Yeah, a couple of things to remember when creating templates.

Delete persistant net rules for udev:
    /bin/rm /etc/udev/rules.d/70-persistent-net.rules

Delete SSH host keys:
    /bin/rm /etc/ssh/ssh_host_*

Depending on your OS of choice (and if you are using Advanced networking)
you probably want to pre-create ifcfg-eth[0-8] files in case your guest end
up with multiple IPs.

Do these before you shutdown and make template.

--Mike


On Wed, Apr 17, 2013 at 4:24 PM, Milamber <milam...@apache.org> wrote:

> Hello,
>
> Seems it's a new address MAC in the VM (create from template).
>
> On VM, in /etc/udev/rules.d/70-**persistent-net.rules, remove the line
> with "NAME="eth0"" at end,
> and modify the line with "NAME="eth1"" by "NAME="eth0"" (eth1->eth0)
>
> Restart VM.
>
> I don't know other more 'sexy' way to do this.
>
> Milamber
>
> Le 17/04/2013 23:03, Maurice Lawler a ecrit :
>
>  Greetings,
>>
>> I've created a Cent 6.3 template. Prior to, I have setup the ifcfg-eth0
>> to look as the following:
>>
>> DEVICE=eth0
>> TYPE=Ethernet
>> ONBOOT=yes
>> NM_CONTROLLED=yes
>> BOOTPROTO=dhcp
>>
>> However, on boot the eth0 does not pull dhcp IP's. Along with that
>> manually starting it error states
>>
>> Device eth0 deos not seem to be present, delaying initialization.
>>
>> Please advise.
>>
>> - Maurice
>>
>
>


-- 
*Mike Little**  | * Senior Cloud Solutions Engineer
Redapt, Inc.      e: mlit...@redapt.com

*Building Information Technology that Propels Business*

Reply via email to