[one-users] [VMM]Device 2049 (tap) could not be connected. Hotplug scripts not working.

Łukasz Grabowski grabbs07 at gmail.com
Thu Apr 21 00:49:45 PDT 2011


Hi,

There is a problem with tap: driver in Debian. You can change it to file:
driver.
To do so, you can add driver parameter in sections DISK in VM template:

DISK = [

         ...

         driver = "file:"]


You can also read about the second way of solving the problem here:
http://lists.opennebula.org/htdig.cgi/users-opennebula.org/2010-September/002769.html

Regards,
Łukasz


2011/4/21 郭健 <06jsjgj at zju.edu.cn>

> When I use a opennebula template for xen driver to create a virtual
> machine, I got this error.
>
> The “vm.log” is :
>
> [quote]
>
> Thu Apr 21 23:50:49 2011 [DiM][I]: New VM state is ACTIVE.
>
> Thu Apr 21 23:50:49 2011 [LCM][I]: New VM state is PROLOG.
>
> Thu Apr 21 23:50:49 2011 [TM][W]: No size in swap image, skipping
>
> Thu Apr 21 23:50:49 2011 [VM][I]: Virtual Machine has no context
>
> Thu Apr 21 23:51:23 2011 [TM][I]: tm_clone.sh:
> ccnt:/srv/domains/vm01/disk.img ccnt:/srv/cloud/one/var//11/images/disk.0
>
> Thu Apr 21 23:51:23 2011 [TM][I]: tm_clone.sh: DST:
> /srv/cloud/one/var//11/images/disk.0
>
> Thu Apr 21 23:51:23 2011 [TM][I]: tm_clone.sh: Creating directory
> /srv/cloud/one/var//11/images
>
> Thu Apr 21 23:51:23 2011 [TM][I]: tm_clone.sh: Executed "/usr/bin/ssh ccnt
> mkdir -p /srv/cloud/one/var//11/images".
>
> Thu Apr 21 23:51:23 2011 [TM][I]: tm_clone.sh: Cloning
> ccnt:/srv/domains/vm01/disk.img
>
> Thu Apr 21 23:51:23 2011 [TM][I]: tm_clone.sh: Executed "/usr/bin/scp
> ccnt:/srv/domains/vm01/disk.img ccnt:/srv/cloud/one/var//11/images/disk.0".
>
> Thu Apr 21 23:51:23 2011 [TM][I]: tm_clone.sh: Executed "/usr/bin/ssh ccnt
> chmod a+rw /srv/cloud/one/var//11/images/disk.0".
>
> Thu Apr 21 23:51:25 2011 [LCM][I]: New VM state is BOOT
>
> Thu Apr 21 23:51:25 2011 [VMM][I]: Generating deployment file:
> /srv/cloud/one/var/11/deployment.0
>
> Thu Apr 21 23:53:07 2011 [VMM][I]: Command execution fail: 'if [ -x
> "/var/tmp/one/vmm/xen/deploy" ]; then /var/tmp/one/vmm/xen/deploy
> /srv/cloud/one/var//11/images/deployment.0;
> else                              exit 42; fi'
>
> Thu Apr 21 23:53:07 2011 [VMM][I]: STDERR follows.
>
> Thu Apr 21 23:53:07 2011 [VMM][I]: Error: Device 2049 (tap) could not be
> connected. Hotplug scripts not working.
>
> Thu Apr 21 23:53:07 2011 [VMM][I]: ExitCode: 1
>
> Thu Apr 21 23:53:07 2011 [VMM][E]: Error deploying virtual machine: Error:
> Device 2049 (tap) could not be connected. Hotplug scripts not working.
>
> Thu Apr 21 23:53:07 2011 [DiM][I]: New VM state is FAILED
>
> Thu Apr 21 23:53:08 2011 [TM][W]: Ignored: LOG - 11 tm_delete.sh: Deleting
> /srv/cloud/one/var//11/images
>
>
>
> Thu Apr 21 23:53:08 2011 [TM][W]: Ignored: LOG - 11 tm_delete.sh: Executed
> "/usr/bin/ssh ccnt rm -rf /srv/cloud/one/var//11/images".
>
>
>
> Thu Apr 21 23:53:08 2011 [TM][W]: Ignored: TRANSFER SUCCESS 11 -
>
> [/quote]
>
>
>
> And my xen vm template is like this:
>
> [quote]
>
> NAME = debian
>
> CPU = 1
>
> MEMORY = 512
>
>
>
> DISK = [
>
>      source = "/srv/domains/vm01/disk.img",
>
>      target = "sda1",
>
>      clone  = "yes",
>
>      readonly = "no" ]
>
>
>
> DISK = [
>
>      type = swap,
>
>      source = "/srv/comains/vm01/swap.img",
>
>      readonly = "no" ]
>
>
>
> OS = [
>
>        kernel = "/srv/debian/vmlinuz",
>
>        initrd = "/srv/debian/initrd.img"
>
>      ]
>
>
>
>
>
> NIC = [ IP = 10.***.*.***,
>
>          MAC = xx:xx:xx:xx:xx:xx,
>
>        MODEL = ioemu ]
>
> [/quote]
>
>
>
> Is anything going wrong? Can anybody help me?
>
> _______________________________________________
> Users mailing list
> 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/20110421/58b61b64/attachment-0003.htm>


More information about the Users mailing list