Dear Daniel,<div><br></div><div>thanks for reply.</div><div><br></div><div><div class="gmail_quote">2011/1/15 <span dir="ltr"><<a href="mailto:Daniel.MOLDOVAN@cs.utcluj.ro" target="_blank">Daniel.MOLDOVAN@cs.utcluj.ro</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">The ttylinux image has the contextualization script inside.</blockquote>
<div><br></div><div>Opennebula friends, is that sequence correct?</div><div>1. OpenNebula generates a MAC, based on MAC_PREFIX = "02:00" from oned.conf;</div><div>2. This MAC is passed to VM image(here is the doubt: How?)</div>
<div>3. vmcontext.sh runs and configures IP based on generated MAC address.</div><div><br></div><div>Steps 1 and 3 are working correctly, but step 2 not yet.</div><div><br></div><div>So, how this link between opennebula and VM image is performed?</div>
<div>How MAC is passed for VM?</div><div><br></div><div>I'm using Ubuntu 10.04 Server image. Tests to load that image were conduced with success, with command:</div><div>qemu -hda Ubuntu.img</div><div><br></div><div>The image runs without problem.</div>
<div><br></div><div>Thanks,</div><div><br></div><div>Erico.</div><div><br></div><div><br></div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">That script<br>
reads the MAC of the virtual machine and assigns an IP to the virtual<br>
machine based on the MAC values.<br>
În Sâm, Ianuarie 15, 2011 6:04 am, Erico Augusto Cavalcanti Guedes a scris:<br>
<div><div></div><div>> Hi,<br>
><br>
><br>
> during the tests with ttylinux, VMs gather IPs configured on VNET(RANGED)<br>
> correctly, and is possible to connect to VMs(ping, ssh, ...).<br>
> Nevertheless, when the image is changed, I can't ping VMs anymore.<br>
> eth0 of my image is configured as default ubuntu dhcp<br>
> client(/etc/network/interfaces file): auto eth0 iface eth0 inet dhcp<br>
><br>
> while eth0 of ttylinux.img is configured<br>
> as(/etc/sysconfig/network-scripts/ifcfg-eth0 file): ENABLE=yes<br>
> NAME=Ethernet<br>
> *IPADDRESS=192.168.15.4*<br>
> CIDRLEN=24<br>
> NETWORK=192.168.15.0<br>
> NETMASK=255.255.255.0<br>
> BROADCAST=192.168.15.255<br>
> *DHCP=no*<br>
> GATEWAY=192.168.15.1<br>
> However, this *IP* was provided by VNET. So:<br>
> 1. How ttylinux.img is configured to get IPs provided by VNET?<br>
> 2. Which is the best way to reproduce ttylinux.img network configuration<br>
> on my ubuntu image?<br>
><br>
> *Ubuntu VM template:*<br>
> NAME = CloudProxy<br>
> CPU = 0.1<br>
> MEMORY = 128<br>
><br>
><br>
> OS=[boot=hd]<br>
><br>
><br>
> DISK = [<br>
> source = "/srv2/cloud/one/var/images/UbuntuServer9-10.qcow", (loaded<br>
> correctly with qemu -hda UbuntuServer9-10.qcow) target = "hda", readonly<br>
> = "no" ]<br>
><br>
><br>
> NIC = [ NETWORK = "ModcsVNET" ]<br>
><br>
><br>
> FEATURES=[ acpi="no" ]<br>
><br>
><br>
> *VNET Template:*<br>
> NAME = "ModcsVNET"<br>
> TYPE = RANGED<br>
> BRIDGE = br0<br>
> NETWORK_SIZE = C<br>
> NETWORK_ADDRESS = 192.168.15.0<br>
> NETMASK = 255.255.255.0<br>
> GATEWAY = 192.168.15.254<br>
><br>
><br>
> *IP provided by VNET to VM:*<br>
> $ /srv2/cloud/one/bin/onevm show 140 | grep IP<br>
> IP=192.168.15.8,<br>
> oneadmin@mc2-frontend:~/master$ ping 192.168.15.8<br>
> PING 192.168.15.8 (192.168.15.8) 56(84) bytes of data.<br>
> From 192.168.15.200 icmp_seq=2 Destination Host Unreachable<br>
> From 192.168.15.200 icmp_seq=3 Destination Host Unreachable<br>
> From 192.168.15.200 icmp_seq=4 Destination Host Unreachable<br>
><br>
><br>
> Some missing information that can be relevant to troubleshooting?<br>
><br>
><br>
> Thanks a lot for support,<br>
><br>
><br>
> Erico.<br>
</div></div>> _______________________________________________<br>
> Users mailing list<br>
> <a href="mailto:Users@lists.opennebula.org" target="_blank">Users@lists.opennebula.org</a><br>
> <a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>
><br>
><br>
<br>
<br>
</blockquote></div><br></div>