[one-users] Contextualisation Issue

Javier Fontan jfontan at opennebula.org
Mon Jan 14 07:26:13 PST 2013


Right now there is not an easy way to check what could be wrong. We
should have added logging to the vmcontext script. You can easily make
vmcontext log stdout and error changing /etc/init.d/vmcontext and
surrounding the contextualization code with parentheses and
redirecting all to a file, something like

--8<------
[...]

(
if [ -e "$CDROM_DEVICE" ]; then
    mount -t iso9660 $CDROM_DEVICE /mnt
    if [ -f /mnt/context.sh ]; then
        export_rc_vars /mnt/context.sh
    fi

    execute_scripts

    if [ -f /mnt/init.sh ]; then
        /mnt/init.sh
    fi
    umount /mnt
else
    execute_scripts
fi
) &> /tmp/vmcontext.log

Hope it helps

On Fri, Jan 11, 2013 at 10:43 PM, Duverne, Cyrille
<cyrille.duverne at euranova.eu> wrote:
> Hello,
>
> I'm facing some contextualisation issue with the new package 3.8.1.
> Is there an easy way to debug this ?
>
> Thanks in advance
> Cyrille
>
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>



-- 
Javier Fontán Muiños
Project Engineer
OpenNebula - The Open Source Toolkit for Data Center Virtualization
www.OpenNebula.org | jfontan at opennebula.org | @OpenNebula



More information about the Users mailing list