Virtual machine internet access

I created a virtual machine using the Ubuntu 14.04 image found on the Opennebula Marketplace.
My virtual machine can ping the host machine and vice versa. but when I try to ping google.com I get error saying unknown host google.com.
Info on the marketplace about this image says that it has contextualization preinstalled
Network driver I am using is openvswitch and my host machine has internet access.

Here is the interfaces file from the virtual machine

auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
  address 192.168.87.150
  network 192.168.87.0
  netmask 255.255.255.0
  gateway 192.168.87.136
source /etc/network/interfaces.d/*.cfg

The image I am using is http://marketplace.c12g.com/…

I am new to all this and I don’t know what info exactly do you need. If anything else is needed I will post it.

Check that DNS is correctly set in /etc/resolv.conf. If this is not the case add it to the virtual network using DNS variable:

DNS=8.8.8.8

I think DNS is good. File /etc/resolv.conf contains nameserver 8.8.8.8.

What about your network config in host node? You have some bridge? By IP addresses it doesn’t look like public network. Would you share with us you network infrastructure?