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