[one-users] eth0 not detecting guest Centt OS VM in opennebula

Lauro Israel Balderas lauro.balderas at connect.qut.edu.au
Thu Oct 18 00:01:28 PDT 2012


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" <kannadhasan.t at payoda.com<mailto:kannadhasan.t at payoda.com>> 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 <jmelis at opennebula.org<mailto:jmelis at opennebula.org>> 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 <kannadhasan.t at payoda.com<mailto:kannadhasan.t at payoda.com>> 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
Users at lists.opennebula.org<mailto:Users at lists.opennebula.org>
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> | jmelis at opennebula.org<mailto:jmelis at opennebula.org>

_______________________________________________
Users mailing list
Users at lists.opennebula.org<mailto: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/20121018/3d1f45c7/attachment-0002.htm>


More information about the Users mailing list