[one-users] VM Failure

André Monteiro andre.monteir at gmail.com
Fri Jun 29 04:35:28 PDT 2012


Hello Mohamed,

I had the same problem before and have reported it. It's a problem with
paths, on the file /opt/opennebula/var/remotes/tm/shared/clone and
/opt/opennebula/var/remotes/tm/shared/ln I have made the following:

- comment this line:
#SRC_PATH="../../${SRC_PATH##"$DS_DIR/"}"


- add the following lines (replace your correct paths):
DATASTORE_FOLDER = "/opt/opennebula/var/datastores"

if [ -z "${DATASTORE_FOLDER}" ]; then
        SRC_PATH="/opt/opennebula/var/datastores/${SRC_PATH##"$DS_DIR/"}"
else
        SRC_PATH="$DATASTORE_FOLDER/${SRC_PATH##"$DS_DIR/"}"
fi

if [[ "$SRC_PATH" == *//* ]]; then
        SRC_PATH="${SRC_PATH##"$DS_DIR/"}"
fi

Hoe it helps,

--
André Monteiro




On Fri, Jun 29, 2012 at 12:19 PM, Mohamed Mohamed <
mohamed.mohamed at telecom-sudparis.eu> wrote:

> Hi all,
> Since i have some problems launching VMs i tried to use the image provided by opennebula marketplace (Ubuntu Server 12.04 (Precise Pangolin) - kvm)
> But when i try to launch the vm it passes to fail status showing this error:
>
>
>
> Fri Jun 29 11:44:44 2012 [DiM][I]: New VM state is ACTIVE.
> Fri Jun 29 11:44:45 2012 [LCM][I]: New VM state is PROLOG.
> Fri Jun 29 11:44:45 2012 [VM][I]: Virtual Machine has no context
> Fri Jun 29 11:44:45 2012 [TM][I]: Command execution fail: /var/lib/one/remotes/tm/shared/clone frontend-Precision-WorkStation-T3500:/var/lib/one/datastores/1/47d35b54f22dd089065fb9462cb73dfa 157.159.110.193:/var/lib/one//datastores/0/36/disk.0 36 1
> Fri Jun 29 11:44:45 2012 [TM][I]: clone: Cloning ../../1/47d35b54f22dd089065fb9462cb73dfa in 157.159.110.193:/var/lib/one//datastores/0/36/disk.0Fri Jun 29 11:44:45 2012 [TM][E]: clone: Command "cd /var/lib/one/datastores/0/36; cp -rf ../../1/47d35b54f22dd089065fb9462cb73dfa /var/lib/one/datastores/0/36/disk.0" failed: cp: impossible d'évaluer «../../1/47d35b54f22dd089065fb9462cb73dfa»: Aucun fichier ou dossier de ce typeFri Jun 29 11:44:45 2012 [TM][E]: Error copying frontend-Precision-WorkStation-T3500:/var/lib/one/datastores/1/47d35b54f22dd089065fb9462cb73dfa to 157.159.110.193:/var/lib/one//datastores/0/36/disk.0
> Fri Jun 29 11:44:45 2012 [TM][I]: ExitCode: 1Fri Jun 29 11:44:45 2012 [TM][E]: Error executing image transfer script: Error copying frontend-Precision-WorkStation-T3500:/var/lib/one/datastores/1/47d35b54f22dd089065fb9462cb73dfa to 157.159.110.193:/var/lib/one//datastores/0/36/disk.0
> Fri Jun 29 11:44:46 2012 [DiM][I]: New VM state is FAILED
>
>
>
>
> The description of this vm (template) is the following
> $onevm show 36
>
>
> VIRTUAL MACHINE 36 INFORMATION
>
> ID                  : 36
> NAME                : ubuntuKVM
> USER                : oneadmin
> GROUP               : oneadmin
> STATE               : FAILED
>
> LCM_STATE           : LCM_INIT
> RESCHED             : No
> START TIME          : 06/29 11:29:01
> END TIME            : 06/29 11:44:46
> DEPLOY ID           : -
>
> VIRTUAL MACHINE MONITORING
> NET_TX              : 0
> USED CPU            : 0
> USED MEMORY         : 0
>
> NET_RX              : 0
>
> PERMISSIONS
> OWNER               : um-
> GROUP               : ---
>
> OTHER               : ---
>
> VIRTUAL MACHINE TEMPLATE
> CPU="1"
> DISK=[
>   CLONE="YES",
>   DATASTORE="default",
>
>   DATASTORE_ID="1",
>   DEV_PREFIX="hd",
>   DISK_ID="0",
>   IMAGE="Ubuntu Server 12.04 kvm",
>   IMAGE_ID="10",
>   IMAGE_UNAME="oneadmin",
>   READONLY="NO",
>
>   SAVE="NO",
>   SOURCE="/var/lib/one/datastores/1/47d35b54f22dd089065fb9462cb73dfa",
>   TARGET="hda",
>   TM_MAD="shared",
>   TYPE="FILE" ]
> ERROR=[
>   MESSAGE="Error executing image transfer script: Error copying frontend-Precision-WorkStation-T3500:/var/lib/one/datastores/1/47d35b54f22dd089065fb9462cb73dfa to node:/var/lib/one//datastores/0/36/disk.0",
>
>   TIMESTAMP="Fri Jun 29 11:44:45 2012" ]
> GRAPHICS=[
>   LISTEN="0.0.0.0",
>   PORT="5936",
>   TYPE="vnc" ]
> INPUT=[
>   BUS="usb",
>   TYPE="mouse" ]
>
> MEMORY="512"
> NAME="ubuntuKVM"
> NIC=[
>   BRIDGE="br0",
>   IP="10.0.0.2",
>   MAC="02:00:0a:00:00:02",
>   NETWORK="Virtual Network 1",
>   NETWORK_ID="0",
>
>   NETWORK_UNAME="oneadmin",
>   PHYDEV="eth0",
>   VLAN="YES" ]
> OS=[
>   ARCH="x86_64",
>   BOOT="hd" ]
> RAW=[
>   TYPE="kvm" ]
> TEMPLATE_ID="10"
>
> VCPU="1"
> VMID="36"
>
> Any suggestions?
> Best;
> Mohamed
>
>
>
> _______________________________________________
> 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/20120629/f1940f75/attachment-0002.htm>


More information about the Users mailing list