[one-users] Wrong source file path for contextualization in deployment.0

thái bình thaibinhtt at yahoo.com
Fri Dec 28 08:13:09 PST 2012


The VM template like this:

VIRTUAL MACHINE TEMPLATE
CPU="1"
DISK=[
  CLONE="YES",
  CLUSTER_ID="101",
  DATASTORE="default",
  DATASTORE_ID="1",
  DEV_PREFIX="hd",
  DISK_ID="0",
  IMAGE="ttylinux - VMware",
  IMAGE_ID="3",
  IMAGE_UNAME="oneadmin",
  READONLY="NO",
  SAVE="NO",
  SOURCE="/var/lib/one/datastores/1/5ac3057f1db59bd2e3424f89aee720b4",
  TARGET="hda",
  TM_MAD="shared",
  TYPE="FILE" ]
GRAPHICS=[
  LISTEN="0.0.0.0",
  PORT="5909",
  TYPE="vnc" ]
MEMORY="256"
NAME="test2"
NIC=[
  BRIDGE="br0",
  IP="172.16.100.202",
  MAC="02:00:ac:10:64:ca",
  NETWORK="cloud",
  NETWORK_ID="0",
  NETWORK_UNAME="oneadmin",
  VLAN="NO" ]
REQUIREMENTS="CLUSTER_ID = 101"
TEMPLATE_ID="1"
VMID="9"


The generated deployment.0 contains a an erroneous path to the disk.vmdk path


<domain type='vmware'>
        <name>one-9</name>
        <memory>262144</memory>
        <os>
                <type arch='i686'>hvm</type>
        </os>
        <devices>
                <disk type='file' device='disk'>
                        <source file='[0] 9/disk.0/disk.vmdk'/>
                        <target dev='hda'/>
                </disk>
                <interface type='bridge'>
                        <source bridge='br0'/>
                        <mac address='02:00:ac:10:64:ca'/>
                </interface>
                <graphics type='vnc' listen='0.0.0.0' port='5909'/>
        </devices>
</domain>

The erroneous message out put when creating VM lik this

Fri Dec 28 16:56:01 2012 [DiM][I]: New VM state is PENDING
Fri Dec 28 16:56:07 2012 [DiM][I]: New VM state is ACTIVE.
Fri Dec 28 16:56:07 2012 [LCM][I]: New VM state is PROLOG.
Fri Dec 28 16:56:07 2012 [VM][I]: Virtual Machine has no context
Fri Dec 28 16:56:23 2012 [TM][I]: clone: Cloning /vmfs/volumes/1/5ac3057f1db59bd2e3424f89aee720b4 in esxi02:/vmfs/volumes/0/9/disk.0
Fri Dec 28 16:56:23 2012 [TM][I]: ExitCode: 0
Fri Dec 28 16:56:23 2012 [LCM][I]: New VM state is BOOT
Fri Dec 28 16:56:23 2012 [VMM][I]: Generating deployment file: /var/lib/one/9/deployment.1
Fri Dec 28 16:56:23 2012 [VMM][I]: ExitCode: 0
Fri Dec 28 16:56:23 2012 [VMM][I]: Successfully execute network driver operation: pre.
Fri Dec 28 16:56:36 2012 [VMM][I]: Command execution fail: /var/lib/one/remotes/vmm/vmware/deploy /var/lib/one/9/deployment.1 esxi02 9 esxi02
Fri Dec 28 16:56:36 2012 [VMM][D]: deploy: Successfully defined domain one-9. Fri Dec 28 16:56:36 2012 [VMM][E]: deploy: Error executing: virsh -c 'esx://esxi02/?no_verify=1&auto_answer=1' start one-9 err: ExitCode: 1 Fri Dec 28 16:56:36 2012 [VMM][I]: out:
Fri Dec 28 16:56:36 2012 [VMM][I]: 2012-12-28 15:56:32.384+0000: 28517: info : libvirt version: 0.9.10, package: 21.el6_3.5 (CentOS BuildSystem <http://bugs.centos.org>, 2012-10-11-13:57:12, c6b9.bsys.dev.centos.org)
Fri Dec 28 16:56:36 2012 [VMM][I]: 2012-12-28 15:56:32.384+0000: 28517: warning : esxVI_Context_Connect:687 : Found untested VI API major/minor version '5.1'
Fri Dec 28 16:56:36 2012 [VMM][I]: 2012-12-28 15:56:32.384+0000: 28517: warning : esxVI_Context_Connect:723 : Found untested ESX major/minor version '5.1.0'
Fri Dec 28 16:56:36 2012 [VMM][I]: error: Failed to start domain one-9
Fri Dec 28 16:56:36 2012 [VMM][I]: error: internal error Could not start domain: FileNotFound - File [0] 9/disk.0/disk.vmdk was not found
Fri Dec 28 16:56:36 2012 [VMM][I]: 
Fri Dec 28 16:56:36 2012 [VMM][I]: ExitCode: 1
Fri Dec 28 16:56:36 2012 [VMM][I]: Failed to execute virtualization driver operation: deploy. Fri Dec 28 16:56:36 2012 [VMM][E]: Error deploying virtual machine Fri Dec 28 16:56:36 2012 [DiM][I]: New VM state is FAILED
So how can I deal with this situation and what wrong with my configuration ?
Anybody have experienced with this situation please take time to give me your advice how to solve it.
Thanks many
thaibinhtt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20121228/044c3156/attachment.htm>


More information about the Users mailing list