[one-users] advanced contextualization
Daems Dirk
dirk.daems at vito.be
Tue Jan 28 06:54:08 PST 2014
Hello Javier,
That worked!
Thanks,
Dirk
-----Original Message-----
From: Javier Fontan [mailto:jfontan at opennebula.org]
Sent: dinsdag 28 januari 2014 14:27
To: Daems Dirk
Cc: users at lists.opennebula.org
Subject: Re: [one-users] advanced contextualization
This is the latest package:
http://dev.opennebula.org/attachments/download/747/one-context_4.4.0.rpm
The repository you have is for version 4.2 and still does not have a newer package with the fixes. Even if the context package is for 4.4 should be compatible with 4.2.
On Tue, Jan 28, 2014 at 1:47 PM, Daems Dirk <dirk.daems at vito.be> wrote:
> Hello Javier,
>
> I installed the latest version from the yum repository:
>
> yum info opennebula-context.x86_64
>
> Name : opennebula-context
> Arch : x86_64
> Version : 4.2.0
> Release : 1
> Size : 8.9 k
> Repo : installed
> From repo : opennebula
> Summary : Configures a Virtual Machine for OpenNebula
> URL : http://opennebula.org
> License : Apache
> Description : Configures a Virtual Machine for OpenNebula. In particular it configures the
> : udev rules, the network, and runs any scripts provided throught the CONTEXT
> : mechanism.
>
> There doesn't seem to be a newer version available in the yum repo.
> Should I have a look in the Git repo then?
>
> Regards,
> Dirk
>
> -----Original Message-----
> From: Javier Fontan [mailto:jfontan at opennebula.org]
> Sent: dinsdag 28 januari 2014 12:04
> To: Daems Dirk
> Cc: users at lists.opennebula.org
> Subject: Re: [one-users] advanced contextualization
>
> There is a bug in old contextualization packages that made custom init scripts unable to run:
>
> http://dev.opennebula.org/issues/2128
>
> Upgrade your context script the latest version and you should be able to run it. You will also be able to name you init scripts other than init.sh and add more than one of those scripts using INIT_SCRIPTS variable.
>
> On Mon, Jan 27, 2014 at 4:46 PM, Daems Dirk <dirk.daems at vito.be> wrote:
>> Hi,
>>
>>
>>
>> I use OpenNebula 4.2. I have a CentOS VM image to which I added the
>> opennebula-context package from the OpenNebula yum repository. The VM
>> starts normally and I can configure networking and passwordless SSH
>> whitout any problem.
>>
>>
>>
>> Now I wanted to take contextualization a step further: I want to add
>> my own scripts to the ISO file that is mounted to the VM filesystem.
>> I uploaded a 'init.sh' script to the files datastore with type
>> 'CONTEXT'. This init.sh script seems to end up in the ISO file that
>> is deployed with the VM and if the /etc/init.d/vmcontext script has
>> run on the VM, it mounts the ISO file on /mnt. However, it looks like
>> my init.sh script (which is in /mnt/init.sh) is never executed ...
>> The /etc/init.d/vmcontext script only seems to execute the scripts in
>> the /etc/one-context.d directory. From the documentation [1], I
>> understood that if my init script is called init.sh, I wouldn't have to specify the INIT_SCRIPTS attribute in my VM template.
>>
>>
>>
>> I have the feeling that I'm missing something; maybe my understanding
>> of advanced contextualization is not correct?
>>
>>
>>
>> [1] -
>> http://docs.opennebula.org/stable/user/virtual_machine_setup/cong.htm
>> l
>>
>>
>>
>> Regards,
>>
>> Dirk
>>
>>
>>
>> VITO Disclaimer: http://www.vito.be/e-maildisclaimer
>>
>> _______________________________________________
>> Users mailing list
>> Users at lists.opennebula.org
>> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>>
>
>
>
> --
> Javier Fontán Muiños
> Developer
> OpenNebula - The Open Source Toolkit for Data Center Virtualization
> www.OpenNebula.org | @OpenNebula | github.com/jfontan VITO Disclaimer:
> http://www.vito.be/e-maildisclaimer
--
Javier Fontán Muiños
Developer
OpenNebula - The Open Source Toolkit for Data Center Virtualization www.OpenNebula.org | @OpenNebula | github.com/jfontan
VITO Disclaimer: http://www.vito.be/e-maildisclaimer
More information about the Users
mailing list