[one-users] Cannot deploy vm with onevmware + onevm commands

Tino Vazquez tinova at fdi.ucm.es
Mon Dec 20 06:46:13 PST 2010


Hi Filippo,

The procedure you are following looks fine. The problems seems to be
in the definition of the VM, and it should be easy to figure out what
is going wrong. There are two ways to get more debug information:

 1) Use the log window of the VI Client (connected to 192.168.0.41) to
see any error after issuing in the OpenNebula server the following:
[/srv/cloud/one/bin/tty_expect -u oneadmin -p oneadmin virsh -c
gsx://192.168.0.41?no_verify=1 define
/srv/cloud/one/var/19/deployment.0

  2) See the vmware log errors in
$ONE_LOCATION/var/<vid>/images/disk.0 (this has to be done before the
VM is deleted).

Best regards,

-Tino

--
Constantino Vázquez Blanco | dsa-research.org/tinova
Virtualization Technology Engineer / Researcher
OpenNebula Toolkit | opennebula.org



On Sun, Dec 19, 2010 at 11:16 AM, Filippo Dalla Gassa
<pippo.dallagassa at gmail.com> wrote:
> Hi,
>
> my problem is: I need to create and manage a vm through opennebula, I need
> to use VMware Server 2.0 as hypervisor and I have the VMware driver addons
> installed. I read the
> http://www.opennebula.org/documentation:rel2.0:evmwareg page, and then I
> tryed the onevmware strategy. I used the .vmdk and flat.vmdk files (taken
> from an already existing vm) and a template file (with the option NAME =
> "name-of-my-image" inside) for the onevmware command: everything goes fine
> and he registers my image in the image catalog. Then I follow what they say
> at the end of the page
>
> Following the two last sections, we can use a template for a VMware VM like:
>
> NAME=myVMwareVM
> DISK=[IMAGE="VMware Win 7 Disk"]
> NIC=[NETWORK="public"]
>
> The onevm command will control the lifecycle of the VM as with other
> hypervisors natively supported by OpenNebula
>
> The first thing I note is that in my case I need to specify an arch
> otherwise it says "error no ARCH found and not default defined". Anyway,
> after I define the ARCH I run onevm create <my-vm-template> and then onevm
> deploy, but when I run onevm show it says "State = failed".
> Here is my vm.log file:
>
> Sun Dec 19 10:28:45 2010 [DiM][I]: New VM state is ACTIVE.
> Sun Dec 19 10:28:45 2010 [LCM][I]: New VM state is PROLOG.
> Sun Dec 19 10:28:45 2010 [VM][I]: Virtual Machine has no context
> Sun Dec 19 10:28:45 2010 [TM][I]: tm_clone.sh:
> filippo-server:/srv/cloud/one/var/images/67e4c2189f74292b2263326f5f938070b3e936ee
> 192.168.0.41:/srv/cloud/one/var/19/images/disk.0
> Sun Dec 19 10:28:45 2010 [TM][I]: tm_clone.sh: DST:
> /srv/cloud/one/var/19/images/disk.0
> Sun Dec 19 10:28:45 2010 [TM][I]: tm_clone.sh: Creating directory
> /srv/cloud/one/var/19/images
> Sun Dec 19 10:28:45 2010 [TM][I]: tm_clone.sh: Executed "mkdir -p
> /srv/cloud/one/var/19/images".
> Sun Dec 19 10:28:45 2010 [TM][I]: tm_clone.sh: Executed "chmod a+w
> /srv/cloud/one/var/19/images".
> Sun Dec 19 10:28:45 2010 [TM][I]: tm_clone.sh: Cloning
> /srv/cloud/one/var/images/67e4c2189f74292b2263326f5f938070b3e936ee
> Sun Dec 19 10:28:45 2010 [TM][I]: tm_clone.sh: Executed "cp -r
> /srv/cloud/one/var/images/67e4c2189f74292b2263326f5f938070b3e936ee
> /srv/cloud/one/var/19/images/disk.0".
> Sun Dec 19 10:28:45 2010 [TM][I]: tm_clone.sh: Executed "chmod a+rw
> /srv/cloud/one/var/19/images/disk.0".
> Sun Dec 19 10:28:45 2010 [LCM][I]: New VM state is BOOT
> Sun Dec 19 10:28:45 2010 [VMM][I]: Generating deployment file:
> /srv/cloud/one/var/19/deployment.0
> Sun Dec 19 10:28:47 2010 [VMM][I]: Command execution fail:
> /srv/cloud/one/lib/remotes/vmm/vmware/deploy 192.168.0.41
> /srv/cloud/one/var/19/deployment.0
> Sun Dec 19 10:28:47 2010 [VMM][I]: STDERR follows.
> Sun Dec 19 10:28:47 2010 [VMM][I]: [VMWARE] cmd failed
> [/srv/cloud/one/bin/tty_expect -u oneadmin -p oneadmin virsh -c
> gsx://192.168.0.41?no_verify=1 define /srv/cloud/one/var/19/deployment.0].
> Stderr:
> Sun Dec 19 10:28:47 2010 [VMM][I]: errore: Impossibile definire il dominio
> da /srv/cloud/one/var/19/deployment.0
> Sun Dec 19 10:28:47 2010 [VMM][I]: errore: errore interno HTTP response code
> 503 for upload to
> 'https://192.168.0.41:8333/folder/19%2fimages%2fdisk%2e0/one%2d19.vmx?dcPath=ha%2ddatacenter&dsName=images'
> Sun Dec 19 10:28:47 2010 [VMM][I]:
> Sun Dec 19 10:28:47 2010 [VMM][I]: . Stdout: ExitCode: 1
> Sun Dec 19 10:28:47 2010 [VMM][I]: ExitCode: 1
> Sun Dec 19 10:28:47 2010 [VMM][E]: Error deploying virtual machine
> Sun Dec 19 10:28:47 2010 [DiM][I]: New VM state is FAILED
>
> Can you explain me where is the problem, please? What can I do to
> succesfully deploy a vm? I'm really desperate, I'm doing an internship and
> I'm stuck for more than a week trying to solve the problem.
>
> Regards,
>
> --
> Filippo Dalla Gassa
>
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
>



More information about the Users mailing list