[one-users] Getting VNC Information with Java API

2013-08-14 Thread chenxiang
Hi, I am trying to integrate OpenNebula into an in-house web UI though the OCA Java API. I am able to carry out VM life cycle management tasks through the Java API. However, I can't find how I can get the VNC information for a VM so that I can integrate this into my own noVNC. With the

Re: [one-users] 4.2 -- Error parsing XML Document

2013-07-29 Thread chenxiang
This is not the case. I am using different database for different versions. For example, on383 for OpenNebula 3.8.3, on420 for OpenNebula 4.2.0. Chen Xiang If I am right, there is an upgrade of the database structure needed first to start one (versions before it was needed). You have still an

Re: [one-users] 4.1.80 -- SunStone Problem

2013-07-29 Thread chenxiang
A fresh installation (source install) with OpenNebula 4.2, with the same problem: /vmfs/volumes # df -m Filesystem 1M-blocks Used Available Use% Mounted on VMFS-5358144 41932316212 12% /vmfs/volumes/100 VMFS-5306944 23951282993 8% /vmfs/volumes/101 VMFS-5710144

Re: [one-users] 4.2 -- Error parsing XML Document

2013-07-29 Thread chenxiang
Rebooted the server. Removed all OpenNebula 4.2 related stuff. Do another installation from source code. Now it worked. Don't know why. Chen Xiang This is not the case. I am using different database for different versions. For example, on383 for OpenNebula 3.8.3, on420 for OpenNebula 4.2.0.

Re: [one-users] 4.1.80 -- SunStone Problem

2013-07-29 Thread chenxiang
Just noticed that oneadmin user does not have access to /sbin/df command on the ESXi host. Is this possibly a reason? ~ $ df -m -sh: df: not found ~ $ /sbin/df -m Error during version check: Failed to get vmkernel version: Operation not permitted (running as non-root?) What should I do? Using

Re: [one-users] 4.1.80 -- SunStone Problem

2013-07-28 Thread chenxiang
Hi, I do have the correct BASE_PATH. Below is what I have on the ESXi box. I am using /vmfs/volumes/103 as the images datastore, and /vmfs/volumes/101 as the system datastore. /vmfs/volumes # df -m Filesystem 1M-blocks Used Available Use% Mounted on VMFS-5358144 41932316212 12%

[one-users] 4.2 -- Error parsing XML Document

2013-07-28 Thread chenxiang
Hi, I am installing OpenNebula 4.2 from source. I successfully did the following: $ cd opennebula-4.2.0 $ scons --sqlite=no --mysql=yes $ ./install.sh -u oneadmin -g cloud -d /srv/cloud/one I setup the necessary environment variables, as well as the one_auth file. Then I started ones with the

[one-users] 4.1.80 -- SunStone Problem

2013-07-25 Thread chenxiang
I am experimenting with 4.1.80, and have the following problems: (1) Can not connect to OpenNebula Marketplace I am installing OpenNebula on a server that has no outbound Internet connections. Each time I login to SunStone, I see this popup message. Is there anyway to disable this message? (2)

Re: [one-users] How to prepare window 7 image (Contextization)

2013-07-23 Thread chenxiang
Hi, I have recently tested the Virtual Router as described on the following page: http://opennebula.org/documentation:rel4.0:router The problem with this Virtual Router is that it only delivers the correct IP address and network mask to the guest VM, but failed to deliver the correct gateway

Re: [one-users] How to prepare window 7 image (Contextization)

2013-07-23 Thread chenxiang
Assuming that I have only one LAN that is being served by an NAT server. All the VM's are within the sam LAN, so they need to connect to the outside world through a gateway, which is not xxx.xxx.xxx.1. With the following context, the Virtual Router VM only gets the correct IP, but not the gateway

[one-users] OpenNebula 3.8.3 Failed to Delete VM on ESXi Host

2013-07-16 Thread chenxiang
Hi, I am running OpenNebula 3.8.3 with VMFS. However, I am not able to delete the VM files from the ESXi Host, although the VM seems to be deleted from OpenNebula. My setup is that I have an image DS 102, and a system DS 103. When trying to delete a VM, I can see that OpenNebula is trying to

Re: [one-users] OpenNebula 3.8.3 Failed to Delete VM on ESXi Host

2013-07-16 Thread chenxiang
I looked into the related source code in 4.0. It seems that the DSID problem was fixed in 4.0. How about permission problem? Can I simple overwrite the 3.8.4 version ~/var/remotes/tm/vmfs directory with the one from 4.0? Chen Xiang Hi, I am running OpenNebula 3.8.3 with VMFS. However, I am

Re: [one-users] OpenNebula 3.8.3 Failed to Delete VM on ESXi Host

2013-07-16 Thread chenxiang
Hi Tino, Thanks a lot for the pointer. I replaced the ~/var/remotes/tm/vmfs directory with the one from 4.0.1, and now it is trying to delete files in the correct datastore. However, it still can not delete the files on ESXi. I do have the correct oneadmin user and permissions on ESXi. I am

[one-users] VMFS -- VM IO Performance Problem

2013-07-08 Thread chenxiang
Hi all, I have a working 3.8.3 setup, with 1 front end running Ubuntu 12.04, which also exposes two LUN's via iSCSI TGT for the ESXi node to be used as datastores. I was able to setup VMFS datastore in OpenNebula, register images, and instantiate VM's. Then I did a IO performance from within the

[one-users] /use/bin/onemarket in 3.8.3 Ubuntu 12.04 package

2013-06-26 Thread chenxiang
Hi, I am looking at the Ubuntu 12.04 binary packages for OpenNebula 3.8.3. I found out that the package opennebula-tools_3.8.3-1_all.deb installs a file which is /use/bin/onemarket. Is this a mistake? I think the correct file should be /usr/bin/onemarket. Best regards, Chen Xiang

Re: [one-users] CLVM - Clustered snapshots are not yet supported

2013-06-22 Thread chenxiang
As documented, live migration is not working. Is CLVM working in 4.0? Chen Xiang A quick update -- I did managed to get Share LVM working according to the documentation on the following wiki page: http://wiki.opennebula.org/shared_lvm Best regards, Chen Xiang Hi, I am trying to use

[one-users] Localization of Data Tables

2013-06-02 Thread chenxiang
Hi, In OpenNebula 4.0 it seems that the localization for the data tables is not working properly. Under each locale directory there is a file called xx_datable.txt, which should be responsible for the localization for the data tables. However, no matter which locale I switch to, the data tables

[one-users] Procedure to Create VMWare Images -- Need Help

2013-04-26 Thread chenxiang
Hi, I am now able to run images downloaded from the marketplace with ESXi nodes. However, I am still not able to deploy my own images. Probably there is something wrong with the way I created my images. This is the way I do to create my own images: (1) Install a fresh new OS (such as CentOS

[one-users] Procedure to Create VMWare Images -- Need Help

2013-04-26 Thread chenxiang
Hi, I am now able to run images downloaded from the marketplace with ESXi nodes. However, I am still not able to deploy my own images. Probably there is something wrong with the way I created my images. This is the way I do to create my own images: (1) Install a fresh new OS (such as CentOS

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

2013-04-24 Thread chenxiang
A lot of new things to learn. After getting ttylinux work with ESXi, I headed for CentOS 6.2 (also imported from Marketplace), and it did not work as expected. This time I already have a datastore with DS_MAD=vmware. I imported CentOS 6.2 from marketplace, and had the following in that datastore

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

2013-04-24 Thread chenxiang
Second try. I looked into disk.vmdk, and found the following: # Disk DescriptorFile version=1 encoding=UTF-8 CID=e451587b parentCID= isNativeSnapshot=no createType=vmfs # Extent description RW 16777216 VMFS CentOS-6.2.vmdk Obvious I did not have CentOS-6.2.vmdk, but I have

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

2013-04-24 Thread chenxiang
Hmmm. Pressing the send button way too early Here is what I got so far. (1) Using i686 as processor type, the VM booted, and the VM status was RUNNING, and VNC was accessible. Logging into the VNC console, I saw Kernel panic -- which was right because this image needed x86_64 processor.

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

2013-04-24 Thread chenxiang
Hmmm. Pressing the send button way too early Here is what I got so far. (1) Using i686 as processor type, the VM booted, and the VM status was RUNNING, and VNC was accessible. Logging into the VNC console, I saw Kernel panic -- which was right because this image needed x86_64 processor.

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

2013-04-23 Thread chenxiang
I double checked the VNC issue. I did set the VNC stuff according to the instructions, but that setting got lost across reboots, so I was not able to connect to VNC. I searched on the web, and found a solution. That is to copy the modified version of service.xml to the localdisk of ESXi as a

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

2013-04-22 Thread chenxiang
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:

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

2013-04-22 Thread chenxiang
Here is what I got when trying to define the VM via virsh: oneadmin@opennebula:~/images$ virsh -c 'esx://vmware02/?no_verify=1auto_answer=1' Enter username for vmware02 [root]: Enter root's password for vmware02: Welcome to virsh, the virtualization interactive terminal. Type: 'help' for help

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

2013-04-22 Thread chenxiang
Actually I have tried both root_squash and no_root_squash, with the same result. (Yes I have restarted NFS server between retries, and even restarted ESXi to make sure things were correct.) Any ideas? Chen Xiang Hi, Please use root_squash instead of no_root_squash --

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

2013-04-22 Thread chenxiang
With the proper NFS settings, I was able to define the domain, but fail to create the VM. The error message says File [0] 120/disk.0/disk.vmdk was not found. I login to the ESXi box, and verified that I do have /vmfs/volumes/0 pointing to the right NFS mount. And inside /vmfs/volumes/0 I do have

Re: [one-users] Disk Hotplug Problem

2013-04-18 Thread chenxiang
Ahhh. That works! Thanks a lot for the tip. (It tooks me several days to reinstall everything again and again. I should have asked earlier.) Chen Xiang You need to rescan the scsi bus in the guest, somthing similar to: echo - - - /sys/class/scsi_host/host0/scan host0 is you scsi