I tried running the VM after adding

user="oneadmin"
group="cloud"

to /etc/libvirt/qemu.conf and restarting libvirtd and oned but still was not successful. Here is the new log data:

--------------------------
Thu Apr 21 15:18:05 2011 [DiM][I]: New VM state is ACTIVE.
Thu Apr 21 15:18:05 2011 [LCM][I]: New VM state is PROLOG.
Thu Apr 21 15:18:05 2011 [VM][I]: Virtual Machine has no context
Thu Apr 21 15:18:05 2011 [LCM][I]: New VM state is BOOT
Thu Apr 21 15:18:05 2011 [VMM][I]: Generating deployment file: /srv/cloud/one/var/29/deployment.0 Thu Apr 21 15:18:09 2011 [VMM][I]: Command execution fail: 'if [ -x "/var/tmp/one/vmm/kvm/deploy" ]; then /var/tmp/one/vmm/kvm/deploy /srv/cloud/one/var//29/images/deployment.0; else exit 42; fi'
Thu Apr 21 15:18:09 2011 [VMM][I]: STDERR follows.
Thu Apr 21 15:18:09 2011 [VMM][I]: error: Failed to create domain from /srv/cloud/one/var//29/images/deployment.0 Thu Apr 21 15:18:09 2011 [VMM][I]: error: internal error process exited while connecting to monitor: qemu: could not open disk image /srv/cloud/one/var//29/images/disk.0: No such file or directory
Thu Apr 21 15:18:09 2011 [VMM][I]:
Thu Apr 21 15:18:09 2011 [VMM][I]: ExitCode: 255
Thu Apr 21 15:18:09 2011 [VMM][E]: Error deploying virtual machine: error: Failed to create domain from /srv/cloud/one/var//29/images/deployment.0
Thu Apr 21 15:18:09 2011 [DiM][I]: New VM state is FAILED
Thu Apr 21 15:18:09 2011 [TM][W]: Ignored: TRANSFER SUCCESS 29 -
--------------------------

Any suggestions??

Kind regards,
Piyush.

-------- Original Message --------
Subject: error deploying VM in OpenNebula using libvirt/KVM in fedora 14
Date: Thu, 21 Apr 2011 14:43:52 +0200
From: Piyush Harsh <piyush.ha...@inria.fr>
To: Opennebula User Forum <users@lists.opennebula.org>

Dear OpenNebula Forum members,

I am a new user of OpenNebula and I am having trouble deploying an
ubuntu 10.10 contextualized image as VM. I am using libvirt/kvm setup on
my test machine.

I have searched on google and have tried all methods and solutions I
found online but nothing seems to work for me :(

My opennebula installation version is 2.2 and my host OS is fedora 14 64
bit. I am using Dell Latitude E6410 laptop with Intel Core i7.

I have checked my BIOS settings and virtualization support in enabled. I
am also able to connect to virsh as oneadmin user. I am pasting the
vm.log output and other details next so that maybe someone has a
solution to my problem.

Most likely there is an issue with qemu and proper access rights ...

-----------------------------
Thu Apr 21 14:20:06 2011 [DiM][I]: New VM state is ACTIVE.
Thu Apr 21 14:20:06 2011 [LCM][I]: New VM state is PROLOG.
Thu Apr 21 14:20:06 2011 [VM][I]: Virtual Machine has no context
Thu Apr 21 14:20:07 2011 [LCM][I]: New VM state is BOOT
Thu Apr 21 14:20:07 2011 [VMM][I]: Generating deployment file:
/srv/cloud/one/var/27/deployment.0
Thu Apr 21 14:20:10 2011 [VMM][I]: Command execution fail: 'if [ -x
"/var/tmp/one/vmm/kvm/deploy" ]; then /var/tmp/one/vmm/kvm/deploy
/srv/cloud/one/var//27/images/deployment.0; else
      exit 42; fi'
Thu Apr 21 14:20:10 2011 [VMM][I]: STDERR follows.
Thu Apr 21 14:20:10 2011 [VMM][I]: error: Failed to create domain from
/srv/cloud/one/var//27/images/deployment.0
Thu Apr 21 14:20:10 2011 [VMM][I]: error: internal error process exited
while connecting to monitor: qemu: could not open disk image
/srv/cloud/one/var//27/images/disk.0: Permission denied
Thu Apr 21 14:20:10 2011 [VMM][I]:
Thu Apr 21 14:20:10 2011 [VMM][I]: ExitCode: 255
Thu Apr 21 14:20:10 2011 [VMM][E]: Error deploying virtual machine:
error: Failed to create domain from
/srv/cloud/one/var//27/images/deployment.0
Thu Apr 21 14:20:11 2011 [DiM][I]: New VM state is FAILED
Thu Apr 21 14:20:11 2011 [TM][W]: Ignored: TRANSFER SUCCESS 27 -
-----------------------------

Here is the output of onevm show command:
-----------------------------
VIRTUAL MACHINE 27 INFORMATION

ID             : 27
NAME           : test-vm
STATE          : FAILED
LCM_STATE      : LCM_INIT
START TIME     : 04/21 14:19:42
END TIME       : 04/21 14:20:10
DEPLOY ID:     : -

VIRTUAL MACHINE MONITORING

NET_TX         : 0
NET_RX         : 0
USED MEMORY    : 0
USED CPU       : 0

VIRTUAL MACHINE TEMPLATE

CPU=1
DISK=[
  BUS=virtio,
  CLONE=YES,
  DISK_ID=0,
  IMAGE=ubuntu,
  IMAGE_ID=14,
  READONLY=NO,
  SAVE=NO,

SOURCE=/srv/cloud/one/var//images/82c21944518ad7380052b1b5d359c5af70a8f9a7,
  TARGET=hda,
  TYPE=DISK ]
MEMORY=512
NAME=test-vm
NIC=[
  BRIDGE=virbr0,
  IP=192.168.0.101,
  MAC=02:00:c0:a8:00:65,
  NETWORK=test-net,
  NETWORK_ID=1 ]
OS=[
  ARCH=x86_64,
  BOOT=hd ]
RAW=[
  TYPE=kvm ]
VCPU=1
VMID=27
-----------------------

Here is the output of onevnet show command
------------------------
VIRTUAL NETWORK 1 INFORMATION

ID:       : 1
UID:      : 0
PUBLIC    : N

VIRTUAL NETWORK TEMPLATE

BRIDGE=virbr0
LEASES=[ IP=192.168.0.100 ]
LEASES=[ IP=192.168.0.101 ]
LEASES=[ IP=192.168.0.102 ]
LEASES=[ IP=192.168.0.103 ]
LEASES=[ IP=192.168.0.104 ]
LEASES=[ IP=192.168.0.105 ]
LEASES=[ IP=192.168.0.106 ]
LEASES=[ IP=192.168.0.107 ]
LEASES=[ IP=192.168.0.108 ]
LEASES=[ IP=192.168.0.109 ]
NAME=test-net
TYPE=FIXED

LEASES INFORMATION

LEASE=[ IP=192.168.0.100, MAC=02:00:c0:a8:00:64, USED=0, VID=-1 ]
LEASE=[ IP=192.168.0.101, MAC=02:00:c0:a8:00:65, USED=1, VID=27 ]
LEASE=[ IP=192.168.0.102, MAC=02:00:c0:a8:00:66, USED=0, VID=-1 ]
LEASE=[ IP=192.168.0.103, MAC=02:00:c0:a8:00:67, USED=0, VID=-1 ]
LEASE=[ IP=192.168.0.104, MAC=02:00:c0:a8:00:68, USED=0, VID=-1 ]
LEASE=[ IP=192.168.0.105, MAC=02:00:c0:a8:00:69, USED=0, VID=-1 ]
LEASE=[ IP=192.168.0.106, MAC=02:00:c0:a8:00:6a, USED=0, VID=-1 ]
LEASE=[ IP=192.168.0.107, MAC=02:00:c0:a8:00:6b, USED=0, VID=-1 ]
LEASE=[ IP=192.168.0.108, MAC=02:00:c0:a8:00:6c, USED=0, VID=-1 ]
LEASE=[ IP=192.168.0.109, MAC=02:00:c0:a8:00:6d, USED=0, VID=-1 ]
------------------------

And here is the output of my ifconfig command:
-------------------------
eth0      Link encap:Ethernet  HWaddr 5C:26:0A:xx:xx:xx
          inet addr:131.254.xx.xxx  Bcast:131.254.xx.xx  Mask:255.255.xx.xx
          inet6 addr: xxxxxxxxxxxxxxxxxx/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2066827 errors:0 dropped:0 overruns:0 frame:0
          TX packets:844980 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:2198015043 (2.0 GiB)  TX bytes:60288983 (57.4 MiB)
          Interrupt:20 Memory:e9600000-e9620000

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:77941 errors:0 dropped:0 overruns:0 frame:0
          TX packets:77941 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:54553533 (52.0 MiB)  TX bytes:54553533 (52.0 MiB)

virbr0    Link encap:Ethernet  HWaddr 00:00:00:00:00:00
          inet addr:192.168.122.1  Bcast:192.168.122.255
Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:186595 errors:0 dropped:0 overruns:0 frame:0
          TX packets:266572 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:10305667 (9.8 MiB)  TX bytes:392519098 (374.3 MiB)
--------------------
I have deliberately masked some of the NIC addresses above.

And here is the output of oneimage show command:
--------------------
IMAGE  INFORMATION

ID             : 14
NAME           : ubuntu
TYPE           : OS
REGISTER TIME  : 04/21 13:52:17
PUBLIC         : No
PERSISTENT     : No
SOURCE         :
/srv/cloud/one/var//images/82c21944518ad7380052b1b5d359c5af70a8f9a7
STATE          : used
RUNNING_VMS    : 1

IMAGE TEMPLATE

BUS=virtio
DESCRIPTION=Ubuntu Desktop 10.10
DEV_PREFIX=hd
NAME=ubuntu
PATH=/srv/cloud/images/ubuntu.img
TYPE=OS
-----------------------

Finally here is the output of my onehost show command:
----------------------
HOST 0 INFORMATION

ID                    : 0
NAME                  : localhost
CLUSTER               : default
STATE                 : MONITORED
IM_MAD                : im_kvm
VM_MAD                : vmm_kvm
TM_MAD                : tm_dummy

HOST SHARES

MAX MEM               : 3981432
USED MEM (REAL)       : 991696
USED MEM (ALLOCATED)  : 0
MAX CPU               : 400
USED CPU (REAL)       : 18
USED CPU (ALLOCATED)  : 0
RUNNING VMS           : 0

MONITORING INFORMATION

ARCH=x86_64
CPUSPEED=1199
FREECPU=381.6
FREEMEMORY=2989736
HOSTNAME=hanoii-2
HYPERVISOR=kvm
MODELNAME=Intel(R) Core(TM) i7 CPU M 640 @ 2.80GHz
NETRX=0
NETTX=0
TOTALCPU=400
TOTALMEMORY=3981432
USEDCPU=18.4
USEDMEMORY=991696
-----------------------

Maybe someone can help me out. I will be really thankful for any
suggestion, of even link to the discussion page where a similar problem
might have been discussed.


Kind regards,
Piyush

--
Piyush Harsh, R&D Engineer, INRIA
CONTRAIL Project, INRIA Rennes - Bretagne Atlantique
Campus universitaire de Beaulieu, 35042 Rennes cedex, France
Phone. +33 2 99 84 71 53 - Fax. +33 2 99 84 71 71
http://www.irisa.fr/myriads/
http://www.cise.ufl.edu/~pharsh/portfolio/
_______________________________________________
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org

Reply via email to