What's in your /etc/sysconfig/network-scripts/ifcg-eth0???

In my case ifconfig didn't return eth0, this was because BOOTPROTO was set to 
dhcp, however I didn't have a dchp server on that vlan. In my contextualization 
script I set BOOTPROTO to none & I set the IP based on the mac address (docos 
availables on the open-nebula website) After rebooting & saving the VM as a new 
image everything seems to be working

On 18/10/2012, at 1:03 PM, "Kannadhasan Thangadurai" 
<[email protected]<mailto:[email protected]>> wrote:

Hi Please find the below details:

Network Template:

NAME = "vnet02"
TYPE = RANGED
BRIDGE = br100
NETWORK_SIZE = C
#NETWORK_ADDRESS= 192.168.2.0/24<http://192.168.2.0/24>
IP_START = 192.168.12.60
IP_END = 192.168.12.70
VLAN = NO
NETWORK_MASK = 255.255.255.0
# Custom Attributes to be used in Context
GATEWAY = 192.168.12.254
DNS = 192.168.12.6

Bridge Detail:

# brctl show
bridge name bridge id STP enabled interfaces
br100 8000.001cc0a3db2f no eth0

VM Template:

#CAPACITY Definition
NAME = CentOSServer01
CPU = 1
MEMORY = 1024
# OS image, mapped to hda.
DISK = [ DRIVER=qcow2, READONLY=no,   IMAGE_ID = 7,   TARGET=hda,   TYPE=disk ]
FEATURES = [ ACPI=yes ]
# I/O Devices Section
GRAPHICS = [   TYPE= vnc ]
HOSTNAME = PCLOUD$VMID.payoda.com<http://VMID.payoda.com>
#NETWORK Section:
NIC = [ network = "vnet02" ]
#OS and BOOT Options Section
OS = [  ARCH=x86_64,   BOOT=hd ]
#RAW Section
RAW = [ TYPE=kvm ]

CONTEXT = [
   hostname    = "PCLOUD$VMID.payoda.com<http://VMID.payoda.com>",
   ip_public   = "$NIC[IP]",
   gateway     = "$NETWORK[GATEWAY, NETWORK=\"vnet02\"]",
   netmask     = "$NETWORK[NETWORK_MASK, NETWORK=\"vnet02\"]",
   dns         = "$NETWORK[DNS, NETWORK=\"vnet02\"]",
   files       = "/var/lib/one/template/init.sh /var/lib/one/.ssh/id_rsa.pub",
   root_pubkey = "id_rsa.pub",
   username    = "oneadmin",
   user_pubkey = "id_rsa.pub"
]


Please guide me on this


On Wed, Oct 17, 2012 at 9:22 PM, Jaime Melis 
<[email protected]<mailto:[email protected]>> wrote:
Hello,

can you send us a few things:
- brctl show (in the hypervisor)
- network template
- virtual machine template

Also, please include the GRAPHICS section in your template, so you can have VNC 
and debug the network issues from there:
http://opennebula.org/documentation:rel3.6:template#i_o_devices_section

cheers,
Jaime

On Wed, Oct 17, 2012 at 4:09 PM, Kannadhasan Thangadurai 
<[email protected]<mailto:[email protected]>> wrote:
Hi Team,

I have installed a CentOS VM in KVM, and added that image in opennebula, 
Created a Template.

The VM successfully getting started but there is no ethernet (eth0) connection.

Please guide me on this.

Thanks,
Kannadhasan Thangadurai.

_______________________________________________
Users mailing list
[email protected]<mailto:[email protected]>
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org




--
Jaime Melis
Project Engineer
OpenNebula - The Open Source Toolkit for Cloud Computing
www.OpenNebula.org<http://www.OpenNebula.org> | 
[email protected]<mailto:[email protected]>

_______________________________________________
Users mailing list
[email protected]<mailto:[email protected]>
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
_______________________________________________
Users mailing list
[email protected]
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org

Reply via email to