[one-users] ubuntu-image from marketplace doesn't get an IP

Javier Fontan jfontan at opennebula.org
Tue Jan 29 03:07:37 PST 2013


When using dummy vnet drivers you have to create the bridge in every
host that is going to execute VMs. You can do it manually using brctl,
something like:

  # brctl addbr br0
  # brctl addif br0 eth0

Change br0 to the name you want the bridge to have (like virbr0 or
public) and eth0 to the physical interface you want it to have
associated. To make this bridge permanent you can follow your
distribution documentation on bridge creation.


On Tue, Jan 22, 2013 at 2:54 AM, GyeongRyoon Kim <grkim at kisti.re.kr> wrote:
> Hi,
>
> when virtual bridge is created?
>
> create vnet time? or create vm time?
>
>
> I got this error message when i create vm.
>
> -------------------------------------------------------------------------------------
>
> Tue Jan 22 10:37:07 2013 [DiM][I]: New VM state is ACTIVE.
> Tue Jan 22 10:37:07 2013 [LCM][I]: New VM state is PROLOG.
> Tue Jan 22 10:37:07 2013 [VM][I]: Virtual Machine has no context
> Tue Jan 22 10:37:20 2013 [TM][I]: clone: Cloning
> gcloud-front.sdfarm.kr:/gcloud/one/var/datastores/101/ba084f2e80cf462c39f3d63e67c280f0
> in /gcloud/one/var/datastores/0/106/disk.0
> Tue Jan 22 10:37:20 2013 [TM][I]: ExitCode: 0
> Tue Jan 22 10:37:23 2013 [TM][I]: mkimage: Making filesystem of 10240M and
> type ext3 at gcloud03:/gcloud/one/var//datastores/0/106/disk.1
> Tue Jan 22 10:37:23 2013 [TM][I]: ExitCode: 0
> Tue Jan 22 10:37:23 2013 [TM][I]: mkimage: Making filesystem of 1024M and
> type swap at gcloud03:/gcloud/one/var//datastores/0/106/disk.2
> Tue Jan 22 10:37:23 2013 [TM][I]: ExitCode: 0
> Tue Jan 22 10:37:23 2013 [LCM][I]: New VM state is BOOT
> Tue Jan 22 10:37:23 2013 [VMM][I]: Generating deployment file:
> /gcloud/one/var/vms/106/deployment.0
> Tue Jan 22 10:37:23 2013 [VMM][I]: ExitCode: 0
> Tue Jan 22 10:37:23 2013 [VMM][I]: Successfully execute network driver
> operation: pre.
> Tue Jan 22 10:37:24 2013 [VMM][I]: Command execution fail: cat << EOT |
> /var/tmp/one/vmm/kvm/deploy /gcloud/one/var//datastores/0/106/deployment.0
> gcloud03 106 gcloud03
> Tue Jan 22 10:37:24 2013 [VMM][I]: error: Failed to create domain from
> /gcloud/one/var//datastores/0/106/deployment.0
> Tue Jan 22 10:37:24 2013 [VMM][I]: error: Cannot get interface MTU on
> 'virbr0': No such device
> Tue Jan 22 10:37:24 2013 [VMM][E]: Could not create domain from
> /gcloud/one/var//datastores/0/106/deployment.0
> Tue Jan 22 10:37:24 2013 [VMM][I]: ExitCode: 255
> Tue Jan 22 10:37:24 2013 [VMM][I]: Failed to execute virtualization driver
> operation: deploy.
> Tue Jan 22 10:37:24 2013 [VMM][E]: Error deploying virtual machine: Could
> not create domain from /gcloud/one/var//datastores/0/106/deployment.0
> Tue Jan 22 10:37:24 2013 [DiM][I]: New VM state is FAILED
> -------------------------------------------------------------------------------------
>
>
> $ onevnet show 7
> VIRTUAL NETWORK 7 INFORMATION
> ID             : 7
> NAME           : Private LAN C class  Ranged
> USER           : oneadmin
> GROUP          : oneadmin
> CLUSTER        : -
> TYPE           : RANGED
> BRIDGE         : virbr0
> VLAN           : No
> PHYSICAL DEVICE:
> VLAN ID        :
> USED LEASES    : 0
>
> PERMISSIONS
> OWNER          : um-
> GROUP          : ---
> OTHER          : ---
>
> VIRTUAL NETWORK TEMPLATE
> GATEWAY="192.168.56.1"
> NETWORK_MASK="255.255.255.0"
> PUBLIC="NO"
>
>
>
>
>
> Thanks
> GyeongRyoon Kim.
>
>
>
> On 01/21/2013 08:10 PM, Javier Fontan wrote:
>
> virbr0 is a bridge automatically created by libvirt and is not
> associated to any physical interface (vnet0 is not a physical
> interface). You should create a new bridge or associate a physical
> interface to virbr0. I think it is better to create a new one. If you
> are using ubuntu you can find more information in these two guides:
>
> https://help.ubuntu.com/10.04/serverguide/network-configuration.html#bridging
> http://cloudblab.files.wordpress.com/2012/05/opennebula-3-4-1-in-ubuntu-12-04-precises-single-machine-installation-for-learning-and-testing-purpose1.pdf
>
> On Mon, Jan 21, 2013 at 10:01 AM, Marco Jagodzinska
> <jagodzinska at fh-aachen.de> wrote:
>
> Thanks for your answer!
>
> oneadmin at Arbeitsrechner:~/one-templates$ brctl show
> bridge name    bridge id        STP enabled    interfaces
> virbr0        8000.fe00c0a87a05    yes        vnet0
>
> Cheers,
> Marco
>
>
> Am 18.01.2013 14:43, schrieb Javier Fontan:
>
> Can you check that virbr0 bridge is associated to a physical
> interface? You can use "brctl show" to get that info.
>
> On Thu, Jan 17, 2013 at 2:42 PM, Marco Jagodzinska
> <jagodzinska at fh-aachen.de> wrote:
>
> Hello,
>
> I'm trying to get the ubuntu image from the marketplace running, but the
> VM
> doesn't seem to get an IP.
> (I don't get another IP in this net even if I scan with nmap.)
>
> This is my virtual net:
>
> oneadmin at Arbeitsrechner:~/one-templates$ ifconfig virbr0
> virbr0    Link encap:Ethernet  Hardware Adresse 00:00:00:00:00:00
>            inet Adresse:192.168.122.1  Bcast:192.168.122.255
> Maske:255.255.255.0
>            UP BROADCAST MULTICAST  MTU:1500  Metrik:1
>            RX packets:0 errors:0 dropped:0 overruns:0 frame:0
>            TX packets:2726 errors:0 dropped:0 overruns:0 carrier:0
>            Kollisionen:0 Sendewarteschlangenlänge:0
>            RX-Bytes:0 (0.0 B)  TX-Bytes:191341 (191.3 KB)
>
> This is the template for "onevnet create small_network.net":
>
> oneadmin at Arbeitsrechner:~/one-templates$ cat network/small_network.net
> NAME = "public"
> TYPE = FIXED
>
> BRIDGE = virbr0
> LEASES = [ IP="192.168.122.5"]
> LEASES = [ IP="192.168.122.6"]
> LEASES = [ IP="192.168.122.7"]
>
> NETWORK_ADDRESS=192.168.122.0
> NETWORK_MASK=255.255.255.0
> GATEWAY=192.168.122.1
> DNS=192.168.122.1
>
>
> And finally this is the template for "onevm create ubuntu.one"
>
> oneadmin at Arbeitsrechner:~/one-templates$ cat ubuntu.one
> NAME = ubuntu
>
> CPU    = 0.7
> MEMORY = 1024
>
> DISK = [ IMAGE = "ubuntu" ]
> NIC  = [ NETWORK = "public" ]
>
> FEATURES = [ acpi="no" ]
>
> CONTEXT=[
>    ETH0_IP = "$NIC[IP, NETWORK=\"public\"]",
>    ETH0_NETWORK = "$NETWORK[NETWORK_ADDRESS, NETWORK=\"public\"]",
>    ETH0_MASK = "$NETWORK[NETWORK_MASK, NETWORK=\"public\"]",
>    ETH0_GATEWAY = "$NETWORK[GATEWAY, NETWORK=\"public\"]",
>    ETH0_DNS = "$NETWORK[DNS, NETWORK=\"public\"]",
>    SSH_PUBLIC_KEY = "ssh-rsa
>
> AAAAB3NzaC1yc2EAAAADAQABAAABAQCo0VdfEFgPO6fzNYiKvH19jmF/6ARD0O41VyKal8fE0WpBL54SzwbnP5TjjIojDPF4BHKeAQ7P9DehUZHWsrOzpEe862AsDBjeJXK3MPO8pSztS11fUb84sxFoPlrvzX6VkiVD7D1CDVV8Jq4cudOe+DGAreQXV408mF9RAMT7G4jkawd99YF4a5NmvnCxqSp+Fi6GBW/g36w0p6JKYzSKnqzGQZ8phrE6FL63lfO/OnlDgD/xntJ+bVx4MUI/MJS0OKoDvMsjfirYtOLNeuaH6SFDHlK/EJE2jocLrzB+BhalFgfsCm3oCuIyzi+AHRy9F3dNME+4K96PyJsCPZ/T
> oneadmin at Arbeitsrechner"
> ]
>
> (infos are from here
>
> http://opennebula.org/documentation:rel3.8:context_overview#preparing_the_template
> )
>
> (The image is registered:
> oneadmin at Arbeitsrechner:/var/log/one$ oneimage list
>    ID USER       GROUP      NAME            DATASTORE     SIZE TYPE PER
> STAT
> RVMS
>     3 oneadmin   oneadmin   ubuntu          default        11G OS    No
> used
> 1
> )
>
> Onebody knows what I'm doing wrong?
>
> Cheers,
> Marco
>
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
>
>
>
>



-- 
Javier Fontán Muiños
Project Engineer
OpenNebula - The Open Source Toolkit for Data Center Virtualization
www.OpenNebula.org | jfontan at opennebula.org | @OpenNebula



More information about the Users mailing list