[one-users] network and username parameter in template

Tino Vazquez tinova at fdi.ucm.es
Wed Nov 3 10:20:15 PDT 2010


Hi Zeeshan,

Have you set the vmcontext script inside your VM? See section named
"Using the Leases within the Virtual Machine" of [1].

Regards,

-Tino

[1] http://opennebula.org/documentation:rel2.0:vgg

--
Constantino Vázquez Blanco | dsa-research.org/tinova
Virtualization Technology Engineer / Researcher
OpenNebula Toolkit | opennebula.org



On Fri, Oct 29, 2010 at 9:14 AM, Zeeshan Ali Shah <zashah at pdc.kth.se> wrote:
> hi ,
> I am using the following parameters ,
>
> CONTEXT = [
>    HOSTNAME    = "$NAME",
>    ROOT_PUBKEY    = "/srv/cloud/images/id_rsa.pub",
>    IP_PUBLIC   = "110.237.221.254",
>    NETMASK = "255.255.255.128",
>    USERNAME = "oneadmin",
>    PASSWORD = "oneadmin",
>    FILES      = "/srv/cloud/images/init2.sh /srv/cloud/images/id_rsa.pub",
>
> in init2.sh i have
> adduser -s /bin/bash -D $USERNAME -p oneadmin
> ifconfig eth0 $IP_PUBLIC
>
> cat $ROOT_PUBKEY>>  /root/.ssh/authorized_keys
>
>
> But in Xen i have got this in dumpxml , and not able to login either with
> ssh IP or with console username does not work.
>
> <interface type='bridge'>
>      <mac address='00:11:22:33:44:55'/>
>      <source bridge='xenbr1'/>
>      <script path='vif-bridge'/>
>      <target dev='vif22.0'/>
>    </interface>
>
>
> Why it is not able to set IP or password ? any suggestion
>
> --
> Regards
>
> Zeeshan Ali Shah
> System Administrator
> PDC-Center for High Performance Computing
> KTH-Royal Institute of Technology , Sweden
> +46 8 790 9115
>
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>


More information about the Users mailing list