[one-users] OpenNebula 3.8.3 and VMWare ESXi 5.0: internal error HTTP response code 403 for upload

Tino Vazquez tinova at opennebula.org
Mon Apr 22 07:42:07 PDT 2013


Hi,

Please use root_squash instead of no_root_squash

--
/srv/cloud/one/var/datastores/0
*(rw,sync,no_subtree_check,no_root_squash,anonuid=10000,anongid=10000)
/srv/cloud/one/var/datastores/1
*(rw,sync,no_subtree_check,no_root_squash,anonuid=10000,anongid=10000)
--

You will need to force the nfs server to re-read the conf file.

Regards,

-Tino
--
Constantino Vázquez Blanco, PhD, MSc
Project Engineer
OpenNebula - The Open-Source Solution for Data Center Virtualization
www.OpenNebula.org | @tinova79 | @OpenNebula


On Mon, Apr 22, 2013 at 3:46 PM,  <chenxiang at aquala-tech.com> wrote:
> Here is what I got when trying to define the VM via virsh:
>
> oneadmin at opennebula:~/images$ virsh -c
> 'esx://vmware02/?no_verify=1&auto_answer=1'
> Enter username for vmware02 [root]:
> Enter root's password for vmware02:
> Welcome to virsh, the virtualization interactive terminal.
>
> Type:  'help' for help with commands
>        'quit' to quit
>
> virsh # define /srv/cloud/one/var/vms/111/deployment.0
> 2013-04-22 13:24:49.391+0000: 17332: info : libvirt version: 0.9.10
> 2013-04-22 13:24:49.391+0000: 17332: warning : virVMXFormatVNC:3224 : VNC
> port 6011 it out of [5900..5964] range
> error: Failed to define domain from /srv/cloud/one/var/vms/111/deployment.0
> error: internal error HTTP response code 403 for upload to
> 'https://vmware02:443/folder/111%2fdisk%2e0/one%2d111.vmx?dcPath=ha%2ddatacenter&dsName=0'
>
> virsh # exit
>
>
>
>
>
>> Hi,
>>
>> I am running OpenNebula 3.8.3 on Ubuntu 12.04 (front end) with VMWare ESXi
>> 5.0 (node). I am able to create a VMWare node in SunStone, register the
>> ttylinux images (ttylinux.vmdk.tar download from C12G.com), but failed to
>> instantiate a VM.
>>
>> Here is what I have as the NFS exports:
>>
>> /srv/cloud/one/var/datastores/0
>> *(rw,sync,no_subtree_check,no_root_squash,anonuid=10000,anongid=10000)
>> /srv/cloud/one/var/datastores/1
>> *(rw,sync,no_subtree_check,no_root_squash,anonuid=10000,anongid=10000)
>>
>> One the ESXi node I mounted the NFS exports to /vmfs/volumes/0 and
>> /vmfs/volumes/1 respectively.
>>
>> Yes I configured libvirt-0.9.10 and make it worked with VMWare, verified
>> by command lines such as the following command (where vmware02 is my ESXi
>> hostname):
>>
>> virsh -c 'esx://vmware02/?no_verify=1&auto_answer=1'
>>
>> Below is my VM template:
>>
>> CPU="1"
>> DISK=[
>>   IMAGE="tty_vmdk",
>>   IMAGE_UNAME="oneadmin" ]
>> GRAPHICS=[
>>   LISTEN="0.0.0.0",
>>   TYPE="vnc" ]
>> MEMORY="512"
>> NAME="ttylinux"
>>
>> Below is what I got when trying to instantiate a VM:
>>
>>
>> Mon Apr 22 21:27:11 2013 [DiM][I]: New VM state is ACTIVE.
>> Mon Apr 22 21:27:11 2013 [LCM][I]: New VM state is PROLOG.
>> Mon Apr 22 21:27:11 2013 [VM][I]: Virtual Machine has no context
>> Mon Apr 22 21:27:17 2013 [TM][I]: clone: Cloning
>> /vmfs/volumes/1/43352fb75cee9bbc1da3c1e7ff474e26 in
>> vmware02:/vmfs/volumes/0/112/disk.0
>> Mon Apr 22 21:27:17 2013 [TM][I]: ExitCode: 0
>> Mon Apr 22 21:27:17 2013 [LCM][I]: New VM state is BOOT
>> Mon Apr 22 21:27:17 2013 [VMM][I]: Generating deployment file:
>> /srv/cloud/one/var/vms/112/deployment.0
>> Mon Apr 22 21:27:17 2013 [VMM][I]: ExitCode: 0
>> Mon Apr 22 21:27:17 2013 [VMM][I]: Successfully execute network driver
>> operation: pre.
>> Mon Apr 22 21:27:22 2013 [VMM][I]: Command execution fail:
>> /srv/cloud/one/var/remotes/vmm/vmware/deploy
>> /srv/cloud/one/var/vms/112/deployment.0 vmware02 112 vmware02
>> Mon Apr 22 21:27:22 2013 [VMM][E]: deploy: Error executing: virsh -c
>> 'esx://vmware02/?no_verify=1&auto_answer=1' define
>> /srv/cloud/one/var/vms/112/deployment.0 err: ExitCode: 1
>> Mon Apr 22 21:27:22 2013 [VMM][I]: out:
>> Mon Apr 22 21:27:22 2013 [VMM][I]: 2013-04-22 13:27:21.858+0000: 17586:
>> info : libvirt version: 0.9.10
>> Mon Apr 22 21:27:22 2013 [VMM][I]: 2013-04-22 13:27:21.858+0000: 17586:
>> warning : virVMXFormatVNC:3224 : VNC port 6012 it out of [5900..5964]
>> range
>> Mon Apr 22 21:27:22 2013 [VMM][I]: error: Failed to define domain from
>> /srv/cloud/one/var/vms/112/deployment.0
>> Mon Apr 22 21:27:22 2013 [VMM][I]: error: internal error HTTP response
>> code 403 for upload to
>> 'https://vmware02:443/folder/112%2fdisk%2e0/one%2d112.vmx?dcPath=ha%2ddatacenter&dsName=0'
>> Mon Apr 22 21:27:22 2013 [VMM][I]:
>> Mon Apr 22 21:27:22 2013 [VMM][I]: ExitCode: 255
>> Mon Apr 22 21:27:22 2013 [VMM][I]: Failed to execute virtualization driver
>> operation: deploy.
>> Mon Apr 22 21:27:22 2013 [VMM][E]: Error deploying virtual machine
>> Mon Apr 22 21:27:22 2013 [DiM][I]: New VM state is FAILED
>>
>> What might be wrong? This looks like that I did not have write access to
>> some place. So I tried both the oneadmin and root acount in etc/vmwarerc,
>> with not much luck.
>>
>> On the front end the oneadmin user belongs to the following groups: cloud,
>> adm, sudo, libvirtd.
>>
>> Best regards,
>>
>> Chen Xiang
>>
>>
>>
>>
>>
>> _______________________________________________
>> Users mailing list
>> Users at lists.opennebula.org
>> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>>
>
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org



More information about the Users mailing list