[one-users] VM fails to start in OpenNebula 2.0

KING LABS kinglabs.in at gmail.com
Tue Nov 2 04:55:08 PDT 2010


Thank you suggestion. I tried the following

----------------------------------------------------------------------------------
oneadmin at node11:~$ virsh -c qemu:///system list
 Id Name                 State
----------------------------------

oneadmin at node11:~$

---------------------------------------------------------------------------------


---------------------------------------------------------------------------------

root at node11:~# tail -f /var/log/libvirt/qemu/one-10.log

LC_ALL=C PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/sbin:/sbin:/bin
QEMU_AUDIO_DRV=none /usr/bin/kvm -S -M pc-0.12 -enable-kvm -m 512 -smp 1
-name one-10 -uuid 66c35b41-1fbb-dea0-a2b7-073a137a5856 -chardev
socket,id=monitor,path=/var/lib/libvirt/qemu/one-10.monitor,server,nowait
-monitor chardev:monitor -no-acpi -boot c -drive
file=/var/lib/one//10/images/disk.0,if=ide,index=0,boot=on,format=raw -net
nic,macaddr=02:00:c0:a8:8a:97,vlan=0,name=nic.0 -net
tap,fd=37,vlan=0,name=tap.0 -serial none -parallel none -usb -vnc
127.0.0.1:-5118,password
-vga cirrus
qemu: could not open disk image /var/lib/one//10/images/disk.0: Permission
denied

---------------------------------------------------------------------------------------------------


oneadmin at frontend:~$ onevm list
   ID     USER     NAME STAT CPU     MEM        HOSTNAME        TIME
    9 oneadmin    one-9 fail   0      0K 192.168.138.233 00 00:02:48
   10 oneadmin  win2k32 fail   0      0K 192.168.138.233 00 00:02:22
oneadmin at frontend:~$
----------------------------------------------------------------------------------------------------------

When i restart libvirt daemon i get the following in the logs

Nov  2 17:22:59 node11 libvirtd: 17:22:59.121: warning :
qemudDispatchSignalEvent:385 : Shutting down on signal 15
Nov  2 17:22:59 node11 libvirtd: 17:22:59.430: warning : qemudStartup:1087 :
Unable to create cgroup for driver: No such device or address
Nov  2 17:22:59 node11 kernel: [ 2993.763450] lo: Disabled Privacy
Extensions
Nov  2 17:22:59 node11 libvirtd: 17:22:59.506: warning : lxcStartup:1755 :
Unable to create cgroup for driver: No such device or address

-----------------------------------------------------------------------------------------------------------------------------------------------------------





On Tue, Nov 2, 2010 at 5:10 PM, Tino Vazquez <tinova at fdi.ucm.es> wrote:

> Hi,
>
> This error sometimes appears when the libvirt daemon gets
> unresponsive. Please try restarting it, and if that doesn't succeed,
> come back and we will try other solutions.
>
> Regards,
>
> -Tino
>
> --
> Constantino Vázquez Blanco | dsa-research.org/tinova
> Virtualization Technology Engineer / Researcher
> OpenNebula Toolkit | opennebula.org
>
>
>
> On Mon, Nov 1, 2010 at 1:39 PM, KING LABS <kinglabs.in at gmail.com> wrote:
> > Hi,
> > I am trying to install and configure OpenNebula 2.0. I installed using
> > express script which went fine.
> > while trying to create vm i am getting the following error ... please
> > correct me if I am doing it wrong
> >
> ---------------------------------------------------------------------------------
> >
> >
> > root at frontend:/var/log/one# tail -f 5.log
> > Mon Nov  1 07:47:14 2010 [DiM][I]: New VM state is ACTIVE.
> > Mon Nov  1 07:47:14 2010 [LCM][I]: New VM state is PROLOG.
> > Mon Nov  1 07:47:14 2010 [VM][I]: Virtual Machine has no context
> > Mon Nov  1 07:47:42 2010 [TM][I]: tm_clone.sh:
> >
> frontend.rnd.local:/var/lib/one//images/4b78a2b9c028c8caf31ab169da2f62cf917ea56f
> > 192.168.138.232:/var/lib/one//5/images/disk.0
> > Mon Nov  1 07:47:42 2010 [TM][I]: tm_clone.sh: DST:
> > /var/lib/one//5/images/disk.0
> > Mon Nov  1 07:47:42 2010 [TM][I]: tm_clone.sh: Creating directory
> > /var/lib/one//5/images
> > Mon Nov  1 07:47:42 2010 [TM][I]: tm_clone.sh: Executed "mkdir -p
> > /var/lib/one//5/images".
> > Mon Nov  1 07:47:42 2010 [TM][I]: tm_clone.sh: Executed "chmod a+w
> > /var/lib/one//5/images".
> > Mon Nov  1 07:47:42 2010 [TM][I]: tm_clone.sh: Cloning
> > /var/lib/one//images/4b78a2b9c028c8caf31ab169da2f62cf917ea56f
> > Mon Nov  1 07:47:42 2010 [TM][I]: tm_clone.sh: Executed "cp -r
> > /var/lib/one//images/4b78a2b9c028c8caf31ab169da2f62cf917ea56f
> > /var/lib/one//5/images/disk.0".
> > Mon Nov  1 07:47:42 2010 [TM][I]: tm_clone.sh: Executed "chmod a+w
> > /var/lib/one//5/images/disk.0".
> > Mon Nov  1 07:47:45 2010 [TM][I]: tm_mkswap.sh: Creating directory
> > /var/lib/one//5/images
> > Mon Nov  1 07:47:45 2010 [TM][I]: tm_mkswap.sh: Executed "mkdir -p
> > /var/lib/one//5/images".
> > Mon Nov  1 07:47:45 2010 [TM][I]: tm_mkswap.sh: Executed "chmod a+w
> > /var/lib/one//5/images".
> > Mon Nov  1 07:47:45 2010 [TM][I]: tm_mkswap.sh: Creating 1024Mb image in
> > /var/lib/one//5/images/disk.1
> > Mon Nov  1 07:47:45 2010 [TM][I]: tm_mkswap.sh: Executed "/bin/dd
> > if=/dev/zero of=/var/lib/one//5/images/disk.1 bs=1 count=1 seek=1024M".
> > Mon Nov  1 07:47:45 2010 [TM][I]: tm_mkswap.sh: Initializing swap space
> > Mon Nov  1 07:47:45 2010 [TM][I]: tm_mkswap.sh: Executed "/sbin/mkswap
> > /var/lib/one//5/images/disk.1".
> > Mon Nov  1 07:47:45 2010 [TM][I]: tm_mkswap.sh: Executed "chmod a+w
> > /var/lib/one//5/images/disk.1".
> > Mon Nov  1 07:47:45 2010 [LCM][I]: New VM state is BOOT
> > Mon Nov  1 07:47:45 2010 [VMM][I]: Generating deployment file:
> > /var/lib/one/5/deployment.0
> > Mon Nov  1 07:48:16 2010 [VMM][I]: Command execution fail:
> > /tmp/one/vmm/kvm/deploy /var/lib/one//5/images/deployment.0
> > Mon Nov  1 07:48:16 2010 [VMM][I]: STDERR follows.
> > Mon Nov  1 07:48:16 2010 [VMM][I]: Warning: Permanently added
> > '192.168.138.232' (RSA) to the list of known hosts.
> > Mon Nov  1 07:48:16 2010 [VMM][I]: error: Failed to create domain from
> > /var/lib/one//5/images/deployment.0
> > Mon Nov  1 07:48:16 2010 [VMM][I]: error: monitor socket did not show
> up.:
> > Connection refused
> > Mon Nov  1 07:48:16 2010 [VMM][I]: ExitCode: 255
> > Mon Nov  1 07:48:16 2010 [VMM][E]: Error deploying virtual machine
> > Mon Nov  1 07:48:17 2010 [DiM][I]: New VM state is FAILED
> > Mon Nov  1 07:48:17 2010 [TM][W]: Ignored: LOG - 5 tm_delete.sh: Deleting
> > /var/lib/one//5/images
> > Mon Nov  1 07:48:17 2010 [TM][W]: Ignored: LOG - 5 tm_delete.sh: Executed
> > "rm -rf /var/lib/one//5/images".
> > Mon Nov  1 07:48:17 2010 [TM][W]: Ignored: TRANSFER SUCCESS 5 -
> >
> >
> -----------------------------------------------------------------------------------
> > VM Template ---
> > CPU    = 1
> > MEMORY = 512
> > DISK = [ image     = "Ubuntu_APP" ]
> > DISK = [ type   = swap,
> >          size   = 1024  ]
> > NIC    = [ NETWORK = "Public" ]
> > FEATURES=[ acpi="no" ]
> > GRAPHICS = [
> >   type    = "vnc",
> >   listen  = "127.0.0.0",
> >   port    = "5902"  ]
> >
> ----------------------------------------------------------------------------
> >
> > Net Template -
> > NAME    = "Public"
> > TYPE    = FIXED
> > BRIDGE = virbr0
> > LEASES  = [IP=192.168.138.150]
> > LEASES  = [IP=192.168.138.151]
> > LEASES  = [IP=192.168.138.152]
> > LEASES  = [IP=192.168.138.153]
> > ----------------------------------------------------------------------
> > oneadmin at frontend:~$ onehost list
> >   ID NAME              CLUSTER  RVM   TCPU   FCPU   ACPU    TMEM    FMEM
> > STAT
> >    0 192.168.138.231   default    0    200    200    200    3.2G    3.1G
> > on
> >    1 192.168.138.232   default    0    400    400    400    3.2G    3.1G
> > on
> > oneadmin at frontend:~$
> >
> > oneadmin at frontend:~$ oneimage list
> >   ID     USER                 NAME TYPE              REGTIME PUB PER STAT
> >  #VMS
> >    5 oneadmin           Ubuntu_App   OS   Nov 01, 2010 10:33 Yes  No  rdy
> >   0
> >    7 oneadmin           Ubuntu_ISO   CD   Nov 01, 2010 10:35 Yes  No used
> >   1
> >    8 oneadmin            XPSP2_App   OS   Nov 01, 2010 10:39 Yes  No  rdy
> >   0
> >    9 oneadmin            XPSP2_ISO   CD   Nov 01, 2010 10:40 Yes  No  rdy
> >   0
> > oneadmin at frontend:~$
> >
> -------------------------------------------------------------------------------------------------------------------------
> > Regards
> >
> > _______________________________________________
> > 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/20101102/e3ad892f/attachment-0002.htm>


More information about the Users mailing list