[one-users] Using CloudInit for contextualization
Wilma Hermann
wilma.hermann at gmail.com
Tue Jan 28 04:56:41 PST 2014
Hi,
I'm trying to get a Ubuntu 13.10 guest to work, which uses a official
Cloud-image (http://cloud-images.ubuntu.com/saucy/) as disk. However, the
VM is not integrating into the virtual network. I've double checked the
virtual network settings with CentOS-VMs, the network works correctly.
I've found out that CloudInit writes a correct /etc/network/interfaces file
with a static address, however, the machine somehow ignores this file and
keeps sending DHCP requests without getting an answer (which is intended
since we don't use DHCP in the VM's network).
# virt-cat one-42 /etc/network/interfaces
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.168.129.4
network 192.168.128.0
netmask 255.255.254.0
gateway 192.168.128.1
# virt-cat one-42 /var/log/syslog | tail -6
Jan 28 12:42:44 ubuntu dhclient: DHCPDISCOVER on eth0 to 255.255.255.255
port 67 interval 21 (xid=0x1080a577)
Jan 28 12:43:05 ubuntu dhclient: DHCPDISCOVER on eth0 to 255.255.255.255
port 67 interval 13 (xid=0x1080a577)
Jan 28 12:43:18 ubuntu dhclient: DHCPDISCOVER on eth0 to 255.255.255.255
port 67 interval 20 (xid=0x1080a577)
Jan 28 12:43:38 ubuntu dhclient: DHCPDISCOVER on eth0 to 255.255.255.255
port 67 interval 1 (xid=0x1080a577)
Jan 28 12:43:39 ubuntu dhclient: No DHCPOFFERS received.
Jan 28 12:43:39 ubuntu dhclient: No working leases in persistent database -
sleeping.
Does anybody know how the VM template needs to be configured in order to
get it working?
Thanks in advance
Wilma
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20140128/9f44c96f/attachment.htm>
More information about the Users
mailing list