Thank you for sharing your solution. Cheers
-- Carlos Martín, MSc Project Engineer OpenNebula - Flexible Enterprise Cloud Made Simple www.OpenNebula.org | cmar...@opennebula.org | @OpenNebula<http://twitter.com/opennebula><cmar...@opennebula.org> On Thu, Nov 7, 2013 at 9:25 PM, Documented Facts <documentedfa...@gmail.com>wrote: > I have resolve this. What I did was putting "sudo /etc/init.d/networking > restart" after bellow code > > if [ -e "/dev/disk/by-label/CONTEXT" ]; then > mount -t iso9660 -L CONTEXT -o ro /mnt > if [ -f /mnt/context.sh ]; then > export_rc_vars /mnt/context.sh > fi > > execute_scripts > > umount /mnt > else > execute_scripts > fi > > so my new vmcontext.sh file contain something like bellow something > between "#################" lines > > ################################################### > > if [ -e "/dev/disk/by-label/CONTEXT" ]; then > mount -t iso9660 -L CONTEXT -o ro /mnt > if [ -f /mnt/context.sh ]; then > export_rc_vars /mnt/context.sh > fi > > execute_scripts > > umount /mnt > else > execute_scripts > fi > > sudo /etc/init.d/networking restart > > > ################################################## > > Thanks you all > > > On Tue, Oct 29, 2013 at 12:01 PM, Documented Facts < > documentedfa...@gmail.com> wrote: > >> Os is Ubuntu 12.04. During installation I choose cloud images and it's a >> PV guest >> >> Contextualization packages was downloaded with this URL >> >> http://dev.opennebula.org/attachments/download/721/one-context_4.2.1.deb. >> So it must be 4.2. >> >> If I use bellow part with same image without OpenNebula and on a XEN >> through a .xen file VM got the assigned IP address by me. in this case >> 10.*.*.163. >> >> Even though VM show different IP address to above IP sunstone show that >> VM ip is 10.*.*.163. I think contextualization package reset the IP. >> >> vif = [ >> ' mac=02:00:0a:16:81:a3,ip=10.*.*.163,bridge=xenbr0', >> ] >> >> >> >> >> >> On Mon, Oct 28, 2013 at 11:08 PM, Carlos Martín Sánchez < >> cmar...@opennebula.org> wrote: >> >>> Hi, >>> >>> On Mon, Oct 28, 2013 at 6:27 PM, Documented Facts < >>> documentedfa...@gmail.com> wrote: >>> >>> But I have already installed Context DEB packages and contextualization >>>> ISO through the template by using sun stone. disk.2 is the Contexulization >>>> ISO >>>> >>> >>> That's something worth mentioning in the first email ;) >>> >>> What OS is your guest? And the version of the contextualization packages? >>> >>> Regards >>> >>> -- >>> Carlos Martín, MSc >>> Project Engineer >>> OpenNebula - Flexible Enterprise Cloud Made Simple >>> www.OpenNebula.org | cmar...@opennebula.org | >>> @OpenNebula<http://twitter.com/opennebula><cmar...@opennebula.org> >>> >>> >>> On Mon, Oct 28, 2013 at 6:27 PM, Documented Facts < >>> documentedfa...@gmail.com> wrote: >>> >>>> But I have already installed Context DEB packages and contextualization >>>> ISO through the template by using sun stone. disk.2 is the Contexulization >>>> ISO >>>> >>>> disk = [ >>>> 'file:/var/lib/one//datastores/0/36/disk.0,xvda,w', >>>> 'file:/var/lib/one//datastores/0/36/disk.1,xvdc,w', >>>> 'file:/var/lib/one//datastores/0/36/disk.2,xvdb,r', >>>> ] >>>> >>>> >>>> >>>> On Mon, Oct 28, 2013 at 10:32 PM, Carlos Martín Sánchez < >>>> cmar...@opennebula.org> wrote: >>>> >>>>> Hi, >>>>> >>>>> In OpenNebula the guests can configure their IP via contextualization, >>>>> or deploying the virtual router dhcp appliance. The previous links should >>>>> get you started. >>>>> >>>>> Cheers >>>>> -- >>>>> Carlos Martín, MSc >>>>> Project Engineer >>>>> OpenNebula - Flexible Enterprise Cloud Made Simple >>>>> www.OpenNebula.org | cmar...@opennebula.org | >>>>> @OpenNebula<http://twitter.com/opennebula><cmar...@opennebula.org> >>>>> >>>>> >>>>> On Mon, Oct 28, 2013 at 5:13 PM, Documented Facts < >>>>> documentedfa...@gmail.com> wrote: >>>>> >>>>>> Can I get a solution to my problem or any path to find solution for >>>>>> that ? >>>>>> >>>>>> >>>>>> On Mon, Oct 28, 2013 at 4:50 PM, Carlos Martín Sánchez < >>>>>> cmar...@opennebula.org> wrote: >>>>>> >>>>>>> Hi, >>>>>>> >>>>>>> On Sun, Oct 27, 2013 at 11:10 AM, Ionut Popovici < >>>>>>> io...@hackaserver.com> wrote: >>>>>>> >>>>>>>> Use contextualization .. if not make and dhcp server that will use >>>>>>>> the mac address as opennebula use .. >>>>>>>> the end of max is the ip adress in hexa >>>>>>>> 10.0.0.1 >>>>>>>> is like 02:00:0a:00:00:01 so u can make your own lesses :D >>>>>>>> >>>>>>> >>>>>>> I want to add to Ionut's answer that contextualization is explained >>>>>>> here: >>>>>>> http://opennebula.org/documentation:rel4.2:context_overview >>>>>>> >>>>>>> And that we already provide a dhcp server appliance, you don't need >>>>>>> to make your own: >>>>>>> http://opennebula.org/documentation:rel4.2:router >>>>>>> >>>>>>> Best regards >>>>>>> -- >>>>>>> Carlos Martín, MSc >>>>>>> Project Engineer >>>>>>> OpenNebula - Flexible Enterprise Cloud Made Simple >>>>>>> www.OpenNebula.org | cmar...@opennebula.org | >>>>>>> @OpenNebula<http://twitter.com/opennebula><cmar...@opennebula.org> >>>>>>> >>>>>>> >>>>>>> On Sun, Oct 27, 2013 at 11:10 AM, Ionut Popovici < >>>>>>> io...@hackaserver.com> wrote: >>>>>>> >>>>>>>> Use contextualization .. if not make and dhcp server that will >>>>>>>> use the mac address as opennebula use .. >>>>>>>> the end of max is the ip adress in hexa >>>>>>>> 10.0.0.1 >>>>>>>> is like 02:00:0a:00:00:01 so u can make your own lesses :D >>>>>>>> >>>>>>>> On 10/27/2013 11:58 AM, Documented Facts wrote: >>>>>>>> >>>>>>>> Hi >>>>>>>> >>>>>>>> I have assigned vm a IP address with this form 10.*.*.163. But >>>>>>>> when I see ip by using ifconfig totally different IP is displayed. >>>>>>>> >>>>>>>> The deployment.0 file show the correct ip which I want in vif >>>>>>>> session. if I run same image through xen by using .xen file with the >>>>>>>> bellow >>>>>>>> vif. It show the ip for that VM and it let ping from outside. Can you >>>>>>>> give >>>>>>>> me advice to overcome this problem. I don't have install VNC since I >>>>>>>> can >>>>>>>> access the XEN hosts. >>>>>>>> >>>>>>>> name = 'one-36' >>>>>>>> #O CPU_CREDITS = 180 >>>>>>>> memory = '256' >>>>>>>> bootloader = "/usr/bin/pygrub" >>>>>>>> disk = [ >>>>>>>> 'file:/var/lib/one//datastores/0/36/disk.0,xvda,w', >>>>>>>> 'file:/var/lib/one//datastores/0/36/disk.1,xvdc,w', >>>>>>>> 'file:/var/lib/one//datastores/0/36/disk.2,xvdb,r', >>>>>>>> ] >>>>>>>> vif = [ >>>>>>>> ' mac=02:00:0a:16:81:a3,ip=10.*.*.163,bridge=xenbr0', >>>>>>>> ] >>>>>>>> >>>>>>>> Thanks >>>>>>>> >>>>>>>> >>>>>>>> _______________________________________________ >>>>>>>> Users mailing >>>>>>>> listUsers@lists.opennebula.orghttp://lists.opennebula.org/listinfo.cgi/users-opennebula.org >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> _______________________________________________ >>>>>>>> Users mailing list >>>>>>>> Users@lists.opennebula.org >>>>>>>> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org >>>>>>>> >>>>>>>> >>>>>>> >>>>>> >>>>> >>>> >>> >> >
_______________________________________________ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org