Re: Re: 两段public地址,怎么指定获取那段ip呢?
我这边有一台虚拟机两个外网ip的,不嫌麻烦可以先在ip池子里点获取ip等获取到你想要的ip了再把其余的删掉。哈哈:-D如果想用两个外网ip就到vrouter上改iptables吧 2013-12-25 下午2:20于 ns500 ns...@sina.com写道: 嗯,这样可行,但是有的用户可能两段ip都要使用! 2013-12-25 ns500 发件人: Royal Yang 发送时间: 2013-12-25 13:56:17 收件人: users-cn 抄送: 主题: Re: 两段public地址,怎么指定获取那段ip呢? 你可以把pub ip指定给某个用户,然后用这用户建虚拟机,并映射ip 2013-12-25 下午1:17于 ns500 ns...@sina.com写道: 两段public地址,怎么指定获取那段ip呢? 2013-12-25 ns500
Re: Re: Re: 两段public地址,怎么指定获取那段ip呢?
我这边比较特殊,一段是4个c内网ip,一段是1个c的公网ip,好像比较怪,也是业务需求。 2013-12-25 ns500 发件人: Royal Yang 发送时间: 2013-12-25 16:35:33 收件人: users-cn 抄送: 主题: Re: Re: 两段public地址,怎么指定获取那段ip呢? 我这边有一台虚拟机两个外网ip的,不嫌麻烦可以先在ip池子里点获取ip等获取到你想要的ip了再把其余的删掉。哈哈:-D如果想用两个外网ip就到vrouter上改iptables吧 2013-12-25 下午2:20于 ns500 ns...@sina.com写道: 嗯,这样可行,但是有的用户可能两段ip都要使用! 2013-12-25 ns500 发件人: Royal Yang 发送时间: 2013-12-25 13:56:17 收件人: users-cn 抄送: 主题: Re: 两段public地址,怎么指定获取那段ip呢? 你可以把pub ip指定给某个用户,然后用这用户建虚拟机,并映射ip 2013-12-25 下午1:17于 ns500 ns...@sina.com写道: 两段public地址,怎么指定获取那段ip呢? 2013-12-25 ns500
Vmware虚机导入问题
我通过qemu-img convert vmware.vmdk -O qcow2 kvm.qcow2得到了qcow2文件,注册成模板,然后建立虚机出现问题,centos4.*版本的没有问题,centos5.*的版本就出现报错了kernel panic - not syncing:Attempted to kill init! ,源Vmware已经卸载了tools工具。 2013-12-25 ns500
Re: Increase max number of VMs in a host?
Actually, this functionality exists in the UI, too. In Global Settings, be sure to select view as Hypervisor Capabilities instead of Global Settings. Then, raise {KVM, default} to a higher value. --- Yu-Heng (Ryan) Lei, Associate Researcher Chunghwa Telecom Laboratories / Cloud Computing Laboratory ryan...@cht.com.tw or ryanlei750...@gmail.com On Wed, Dec 25, 2013 at 3:37 PM, Prachi Damle prachi.da...@citrix.comwrote: Hi Indra, You need to call the updateHypervisorCapabilities API and set the 'maxguestslimit' to a new value for the KVM hypervisor. The listHypervisorCapabilities API will let you know the necessary ID of the capability to be updated. Prachi -Original Message- From: Indra Pramana [mailto:in...@sg.or.id] Sent: Tuesday, December 24, 2013 5:48 PM To: users@cloudstack.apache.org; d...@cloudstack.apache.org Subject: Increase max number of VMs in a host? Hi, I am not able to add a new VM instance through CloudStack because the number of VMs in my KVM hypervisor hosts have reached 50. Is there a way to increase the limit? I can't seem to find it on the Global Settings. === 2013-12-25 06:02:20,995 DEBUG [cloud.capacity.CapacityManagerImpl] (Job-Executor-77:job-6222 = [ fb1c8047-8de6-4144-a970-34381ae48911 ] FirstFitRoutingAllocator) Host name: hv-kvm-01, hostId: 34 already reached max Running VMs(count includes system VMs), limit is: 50,Running VM counts is: 50 2013-12-25 06:02:20,995 DEBUG [cloud.capacity.CapacityManagerImpl] (Job-Executor-75:job-6221 = [ 814d494b-d4fc-459b-8ceb-5acd51326bd9 ] FirstFitRoutingAllocator) Host name: hv-kvm-02, hostId: 37 already reached max Running VMs(count includes system VMs), limit is: 50,Running VM counts is: 50 === Looking forward to your reply, thank you. Cheers.
Re: password hash
Dear Santhosh, I do not use the login api . I use a mysql query to login into the web interface. when i use the password from the database(hashed) i can login with no problems. i tried to encrypt the password query i am sending to the database to MD5 but still can not login. after your mail i tried to use the login api but i get the folowing error: { \error\ : { \description\ : \Internal Server Error\ } } 2013/12/25 Santhosh Edukulla santhosh.eduku...@citrix.com 1. you are using login command to verify your account created through createAccount? 2. The API description for login mentions below. See the description for argument password. command namelogin/name descriptionLogs a user into the CloudStack. A successful login attempt will generate a JSESSIONID cookie value that can be passed in subsequent Query command calls until the quot;logoutquot; command has been issued or the session has expired./description isAsyncfalse/isAsync request arg nameusername/name descriptionUsername/description requiredtrue/required /arg arg namepassword/name descriptionHashed password (Default is MD5). If you wish to use any other hashing algorithm, you would need to write a custom authentication adapter See Docs section./description requiredtrue/required /arg arg namedomain/name descriptionpath of the domain that the user belongs to. Example: domain=/com/cloud/internal. If no domain is passed in, the ROOT domain is assumed./description requiredfalse/required /arg arg namedomainId/name descriptionid of the domain that the user belongs to. If both domain and domainId are passed in, quot;domainIdquot; parameter takes precendence/description requiredfalse/required /arg /request 3. What happens if you just pass the password as it is to login cmd? This is what got captured in firebug, when i logged in to CS. Here, password is password for account abc. command login domain / passwordpassword responsejson usernameabc Santhosh From: Salar Darwish [salardarw...@gmail.com] Sent: Tuesday, December 24, 2013 3:51 PM To: users@cloudstack.apache.org Subject: password hash Hello all, I have a php web interface and i related the interface to the cloudstack database with the creataccount api. Now i am getting problems when I try to log in to this web interface.it seems to be a hash problem. I am hashing the password as below: $password = hash(sha256 ,$_POST['password']); but still can not login. Is this the right hash algorithm i am using? Kind regards and merry christmas! *Salar* -- *Met vriendelijke groet,* *Salar Darwish*
RE: password hash
1. How you are retrieving the sessionkey with your mysqlquery? 2. I believe you are using Authentication Port 8080. If yes, below is the POST url along with params for login cmd. This should give the sessionkey for your further communication with CS. Request: http://localhost:8080/client/api command login domain / passwordpassword responsejson usernameabc Response: { loginresponse : { timeout : 1800, sessionkey : tBr9fYLiIzoKVPQK0TBJb1BCeoQ=, username : admin, registered : false, userid : ce801a0a-6d58-11e3-924d-7ac46bc9b016, lastname : User, account : admin, domainid : ce7c8c82-6d58-11e3-924d-7ac46bc9b016, firstname : Admin, type : 1 } } 3. If you are using UnAuthenticated Port 8096 to communicate, you need to use apiKey,signature and command parameters with your POST request to CS. Santhosh From: Salar Darwish [salardarw...@gmail.com] Sent: Wednesday, December 25, 2013 4:22 AM To: users@cloudstack.apache.org; Santhosh Edukulla Subject: Re: password hash Dear Santhosh, I do not use the login api . I use a mysql query to login into the web interface. when i use the password from the database(hashed) i can login with no problems. i tried to encrypt the password query i am sending to the database to MD5 but still can not login. after your mail i tried to use the login api but i get the folowing error: { \error\ : { \description\ : \Internal Server Error\ } } 2013/12/25 Santhosh Edukulla santhosh.eduku...@citrix.commailto:santhosh.eduku...@citrix.com 1. you are using login command to verify your account created through createAccount? 2. The API description for login mentions below. See the description for argument password. command namelogin/name descriptionLogs a user into the CloudStack. A successful login attempt will generate a JSESSIONID cookie value that can be passed in subsequent Query command calls until the quot;logoutquot; command has been issued or the session has expired./description isAsyncfalse/isAsync request arg nameusername/name descriptionUsername/description requiredtrue/required /arg arg namepassword/name descriptionHashed password (Default is MD5). If you wish to use any other hashing algorithm, you would need to write a custom authentication adapter See Docs section./description requiredtrue/required /arg arg namedomain/name descriptionpath of the domain that the user belongs to. Example: domain=/com/cloud/internal. If no domain is passed in, the ROOT domain is assumed./description requiredfalse/required /arg arg namedomainId/name descriptionid of the domain that the user belongs to. If both domain and domainId are passed in, quot;domainIdquot; parameter takes precendence/description requiredfalse/required /arg /request 3. What happens if you just pass the password as it is to login cmd? This is what got captured in firebug, when i logged in to CS. Here, password is password for account abc. command login domain / passwordpassword responsejson usernameabc Santhosh From: Salar Darwish [salardarw...@gmail.commailto:salardarw...@gmail.com] Sent: Tuesday, December 24, 2013 3:51 PM To: users@cloudstack.apache.orgmailto:users@cloudstack.apache.org Subject: password hash Hello all, I have a php web interface and i related the interface to the cloudstack database with the creataccount api. Now i am getting problems when I try to log in to this web interface.ithttp://interface.it seems to be a hash problem. I am hashing the password as below: $password = hash(sha256 ,$_POST['password']); but still can not login. Is this the right hash algorithm i am using? Kind regards and merry christmas! *Salar* -- Met vriendelijke groet, Salar Darwish
Re: Increase max number of VMs in a host?
Hi Prachi and especially Ryan, Many thanks! Managed to find the option on Global Settings and change view to Hypervisor Capabilities as per Ryan's advice! Have changed the value under KVM, default to a higher value. Cheers. On Wed, Dec 25, 2013 at 4:38 PM, Ryan Lei ryan...@cht.com.tw wrote: Actually, this functionality exists in the UI, too. In Global Settings, be sure to select view as Hypervisor Capabilities instead of Global Settings. Then, raise {KVM, default} to a higher value. --- Yu-Heng (Ryan) Lei, Associate Researcher Chunghwa Telecom Laboratories / Cloud Computing Laboratory ryan...@cht.com.tw or ryanlei750...@gmail.com On Wed, Dec 25, 2013 at 3:37 PM, Prachi Damle prachi.da...@citrix.com wrote: Hi Indra, You need to call the updateHypervisorCapabilities API and set the 'maxguestslimit' to a new value for the KVM hypervisor. The listHypervisorCapabilities API will let you know the necessary ID of the capability to be updated. Prachi -Original Message- From: Indra Pramana [mailto:in...@sg.or.id] Sent: Tuesday, December 24, 2013 5:48 PM To: users@cloudstack.apache.org; d...@cloudstack.apache.org Subject: Increase max number of VMs in a host? Hi, I am not able to add a new VM instance through CloudStack because the number of VMs in my KVM hypervisor hosts have reached 50. Is there a way to increase the limit? I can't seem to find it on the Global Settings. === 2013-12-25 06:02:20,995 DEBUG [cloud.capacity.CapacityManagerImpl] (Job-Executor-77:job-6222 = [ fb1c8047-8de6-4144-a970-34381ae48911 ] FirstFitRoutingAllocator) Host name: hv-kvm-01, hostId: 34 already reached max Running VMs(count includes system VMs), limit is: 50,Running VM counts is: 50 2013-12-25 06:02:20,995 DEBUG [cloud.capacity.CapacityManagerImpl] (Job-Executor-75:job-6221 = [ 814d494b-d4fc-459b-8ceb-5acd51326bd9 ] FirstFitRoutingAllocator) Host name: hv-kvm-02, hostId: 37 already reached max Running VMs(count includes system VMs), limit is: 50,Running VM counts is: 50 === Looking forward to your reply, thank you. Cheers.
Re: password hash
Yes ik use port8096 and that was indeed the resason i get the error. I changed that to port 8080 and now i get a session key as you mentioned. How can i use this sessionkey? 2013/12/25 Santhosh Edukulla santhosh.eduku...@citrix.com 1. How you are retrieving the sessionkey with your mysqlquery? 2. I believe you are using Authentication Port 8080. If yes, below is the POST url along with params for login cmd. This should give the sessionkey for your further communication with CS. Request: http://localhost:8080/client/api command login domain / passwordpassword responsejson usernameabc Response: { loginresponse : { timeout : 1800, sessionkey : tBr9fYLiIzoKVPQK0TBJb1BCeoQ=, username : admin, registered : false, userid : ce801a0a-6d58-11e3-924d-7ac46bc9b016, lastname : User, account : admin, domainid : ce7c8c82-6d58-11e3-924d-7ac46bc9b016, firstname : Admin, type : 1 } } 3. If you are using UnAuthenticated Port 8096 to communicate, you need to use apiKey,signature and command parameters with your POST request to CS. Santhosh From: Salar Darwish [salardarw...@gmail.com] Sent: Wednesday, December 25, 2013 4:22 AM To: users@cloudstack.apache.org; Santhosh Edukulla Subject: Re: password hash Dear Santhosh, I do not use the login api . I use a mysql query to login into the web interface. when i use the password from the database(hashed) i can login with no problems. i tried to encrypt the password query i am sending to the database to MD5 but still can not login. after your mail i tried to use the login api but i get the folowing error: { \error\ : { \description\ : \Internal Server Error\ } } 2013/12/25 Santhosh Edukulla santhosh.eduku...@citrix.commailto: santhosh.eduku...@citrix.com 1. you are using login command to verify your account created through createAccount? 2. The API description for login mentions below. See the description for argument password. command namelogin/name descriptionLogs a user into the CloudStack. A successful login attempt will generate a JSESSIONID cookie value that can be passed in subsequent Query command calls until the quot;logoutquot; command has been issued or the session has expired./description isAsyncfalse/isAsync request arg nameusername/name descriptionUsername/description requiredtrue/required /arg arg namepassword/name descriptionHashed password (Default is MD5). If you wish to use any other hashing algorithm, you would need to write a custom authentication adapter See Docs section./description requiredtrue/required /arg arg namedomain/name descriptionpath of the domain that the user belongs to. Example: domain=/com/cloud/internal. If no domain is passed in, the ROOT domain is assumed./description requiredfalse/required /arg arg namedomainId/name descriptionid of the domain that the user belongs to. If both domain and domainId are passed in, quot;domainIdquot; parameter takes precendence/description requiredfalse/required /arg /request 3. What happens if you just pass the password as it is to login cmd? This is what got captured in firebug, when i logged in to CS. Here, password is password for account abc. command login domain / passwordpassword responsejson usernameabc Santhosh From: Salar Darwish [salardarw...@gmail.commailto:salardarw...@gmail.com ] Sent: Tuesday, December 24, 2013 3:51 PM To: users@cloudstack.apache.orgmailto:users@cloudstack.apache.org Subject: password hash Hello all, I have a php web interface and i related the interface to the cloudstack database with the creataccount api. Now i am getting problems when I try to log in to this web interface.ithttp://interface.it seems to be a hash problem. I am hashing the password as below: $password = hash(sha256 ,$_POST['password']); but still can not login. Is this the right hash algorithm i am using? Kind regards and merry christmas! *Salar* -- Met vriendelijke groet, Salar Darwish -- *Met vriendelijke groet,* *Salar Darwish*
Re: password hash
Hi, With Cloudstack 4.2 the encryption method has been changed. Check at first what security apdater you are using under /etc/cloudstack/management/components.xml You'll get a result like this: !-- Security adapters -- bean id=userAuthenticators class=com.cloud.utils.component.AdapterList property name=Adapters list ref bean=PlainTextUserAuthenticator/ ref bean=MD5UserAuthenticator/ ref bean=LDAPUserAuthenticator/ /list /property /bean if So, try to not hash the password , because with this policies you no longer need to hash the password. On Wed, Dec 25, 2013 at 11:58 AM, Salar Darwish salardarw...@gmail.comwrote: Yes ik use port8096 and that was indeed the resason i get the error. I changed that to port 8080 and now i get a session key as you mentioned. How can i use this sessionkey? 2013/12/25 Santhosh Edukulla santhosh.eduku...@citrix.com 1. How you are retrieving the sessionkey with your mysqlquery? 2. I believe you are using Authentication Port 8080. If yes, below is the POST url along with params for login cmd. This should give the sessionkey for your further communication with CS. Request: http://localhost:8080/client/api command login domain / passwordpassword responsejson usernameabc Response: { loginresponse : { timeout : 1800, sessionkey : tBr9fYLiIzoKVPQK0TBJb1BCeoQ=, username : admin, registered : false, userid : ce801a0a-6d58-11e3-924d-7ac46bc9b016, lastname : User, account : admin, domainid : ce7c8c82-6d58-11e3-924d-7ac46bc9b016, firstname : Admin, type : 1 } } 3. If you are using UnAuthenticated Port 8096 to communicate, you need to use apiKey,signature and command parameters with your POST request to CS. Santhosh From: Salar Darwish [salardarw...@gmail.com] Sent: Wednesday, December 25, 2013 4:22 AM To: users@cloudstack.apache.org; Santhosh Edukulla Subject: Re: password hash Dear Santhosh, I do not use the login api . I use a mysql query to login into the web interface. when i use the password from the database(hashed) i can login with no problems. i tried to encrypt the password query i am sending to the database to MD5 but still can not login. after your mail i tried to use the login api but i get the folowing error: { \error\ : { \description\ : \Internal Server Error\ } } 2013/12/25 Santhosh Edukulla santhosh.eduku...@citrix.commailto: santhosh.eduku...@citrix.com 1. you are using login command to verify your account created through createAccount? 2. The API description for login mentions below. See the description for argument password. command namelogin/name descriptionLogs a user into the CloudStack. A successful login attempt will generate a JSESSIONID cookie value that can be passed in subsequent Query command calls until the quot;logoutquot; command has been issued or the session has expired./description isAsyncfalse/isAsync request arg nameusername/name descriptionUsername/description requiredtrue/required /arg arg namepassword/name descriptionHashed password (Default is MD5). If you wish to use any other hashing algorithm, you would need to write a custom authentication adapter See Docs section./description requiredtrue/required /arg arg namedomain/name descriptionpath of the domain that the user belongs to. Example: domain=/com/cloud/internal. If no domain is passed in, the ROOT domain is assumed./description requiredfalse/required /arg arg namedomainId/name descriptionid of the domain that the user belongs to. If both domain and domainId are passed in, quot;domainIdquot; parameter takes precendence/description requiredfalse/required /arg /request 3. What happens if you just pass the password as it is to login cmd? This is what got captured in firebug, when i logged in to CS. Here, password is password for account abc. command login domain / passwordpassword responsejson usernameabc Santhosh From: Salar Darwish [salardarw...@gmail.commailto: salardarw...@gmail.com ] Sent: Tuesday, December 24, 2013 3:51 PM To: users@cloudstack.apache.orgmailto:users@cloudstack.apache.org Subject: password hash Hello all, I have a php web interface and i related the interface to the cloudstack database with the creataccount api. Now i am getting problems when I try to log in to this web interface.ithttp://interface.it seems to be a hash problem. I am hashing the password as below: $password = hash(sha256 ,$_POST['password']); but still can not login. Is this the right hash algorithm i am using? Kind regards
Re: cloudstack network limitation
Hi Marty, My problem is that even though I have update global settings about network rate, but inbound and outbound are not affected. Look like that: root@cloudstack-ubuntu:~# virsh dumpxml i-2-3-VM | egrep inbound|outbound inbound average='25600' peak='25600'/ outbound average='25600' peak='25600'/ No matter what I set for network rate in global settings, inbound and outbound for VM are always the same! -- Best regards, DuJun 2013/12/25 Marty Sweet msweet@gmail.com Hi Du Jun, You can find my thread here http://mail-archives.apache.org/mod_mbox/cloudstack-users/201310.mbox/thread?5 , I was having the exact same issue. My conclusion It appears upgrading (Linux) VM kernels to 3.5 fixed the Inbound traffic issue. Drivers for e1000 on Windows are (apparently) provided by Microsoft but are the latest version. I have a feeling this issue was brought in a few KVM releases ago. To use Windows VMs I would recommend changing their OS Type in Cloudstack to, 'Other PV'. 'Windows PV' may also work but I have not tested it. Marty On Wed, Dec 25, 2013 at 1:48 AM, Du Jun dj199...@gmail.com wrote: @Andrei only update settings in global settings doesn't work! 2013/12/25 Andrei Mikhailovsky and...@arhont.com You will need to adjust the following settings: network.throttling.rate vm.network.throttling.rate Andrei - Original Message - From: Marty Sweet msweet@gmail.com To: users@cloudstack.apache.org Sent: Tuesday, 24 December, 2013 6:38:52 PM Subject: Re: cloudstack network limitation Hi, Google Bandwidth Shaping Ubuntu 12.04.3 KVM and try find the last few message. Marty On Tuesday, December 24, 2013, Andrija Panic wrote: I think I also saw this on the global settings or zone/cluster settings, something global... On 24 December 2013 16:58, Nux! n...@li.nux.ro javascript:; wrote: On 24.12.2013 12:13, Du Jun wrote: Hi all, I find the network banwidth between VMs in my cloudstack server are extremely slow while bandwidth in my environment is 1000Mbps. I want to update some configuration to up the network speed between VMs. I have update global settings such as network.throttling.rate and vm.network.throttling.rate. However, it does not work! Could you please tell me how to update network configurations about bandwidth? ps: I use cloudstack 4.2, KVM hypervisor, advanced zone and isolated network -- Thanks and Best Regards, DuJun I think there is a network limit imposed of 200 Mbps in the network offering, check it out. This limit is enforced via `tc`, see the man page to learn how to show current limitations. HTH Lucian -- Sent from the Delta quadrant using Borg technology! Nux! www.nux.ro -- Andrija Panić -- http://admintweets.com --
Re: cloudstack network limitation
On 25.12.2013 11:40, Du Jun wrote: Hi Marty, My problem is that even though I have update global settings about network rate, but inbound and outbound are not affected. Look like that: root@cloudstack-ubuntu:~# virsh dumpxml i-2-3-VM | egrep inbound|outbound inbound average='25600' peak='25600'/ outbound average='25600' peak='25600'/ No matter what I set for network rate in global settings, inbound and outbound for VM are always the same! As I said initially this may be bound to the network offering. Eg http://img.nux.ro/wj3C-Selection_008.png -- Sent from the Delta quadrant using Borg technology! Nux! www.nux.ro
Re: cloudstack network limitation
I assume you are stopping and relaunching the VM. I would second Nux and say Network Offering. Marty On Wed, Dec 25, 2013 at 11:49 AM, Nux! n...@li.nux.ro wrote: On 25.12.2013 11:40, Du Jun wrote: Hi Marty, My problem is that even though I have update global settings about network rate, but inbound and outbound are not affected. Look like that: root@cloudstack-ubuntu:~# virsh dumpxml i-2-3-VM | egrep inbound|outbound inbound average='25600' peak='25600'/ outbound average='25600' peak='25600'/ No matter what I set for network rate in global settings, inbound and outbound for VM are always the same! As I said initially this may be bound to the network offering. Eg http://img.nux.ro/wj3C-Selection_008.png -- Sent from the Delta quadrant using Borg technology! Nux! www.nux.ro
RE: password hash
1. First try call the commands EX: listZones,createAccount etc from browser. For that, browse your CS installed using a browser, then use firebug( A plugin to the browser reflecting your requests\responses) from your browser and check the GET\POST requests sent for each command. You will see the usage details along with command. Depending upon the nature of command and activity you want to use, change the command details and send across from your code. Are you trying to develop the UI facility ( in PHP ) to CS similar to what it is currently provided? 2. You can as well use 8096 port with apikey,signature and other command parameters to call CS commands. The simple tool to communicate to CS and getting your information and tasks done is cloudmonkey tool. 3. But, providing more details on what exactly you are trying to achieve further will help to provide more details. Thanks! Santhosh From: Salar Darwish [salardarw...@gmail.com] Sent: Wednesday, December 25, 2013 5:58 AM To: Santhosh Edukulla; users@cloudstack.apache.org Subject: Re: password hash Yes ik use port8096 and that was indeed the resason i get the error. I changed that to port 8080 and now i get a session key as you mentioned. How can i use this sessionkey? 2013/12/25 Santhosh Edukulla santhosh.eduku...@citrix.commailto:santhosh.eduku...@citrix.com 1. How you are retrieving the sessionkey with your mysqlquery? 2. I believe you are using Authentication Port 8080. If yes, below is the POST url along with params for login cmd. This should give the sessionkey for your further communication with CS. Request: http://localhost:8080/client/api command login domain / passwordpassword responsejson usernameabc Response: { loginresponse : { timeout : 1800, sessionkey : tBr9fYLiIzoKVPQK0TBJb1BCeoQ=, username : admin, registered : false, userid : ce801a0a-6d58-11e3-924d-7ac46bc9b016, lastname : User, account : admin, domainid : ce7c8c82-6d58-11e3-924d-7ac46bc9b016, firstname : Admin, type : 1 } } 3. If you are using UnAuthenticated Port 8096 to communicate, you need to use apiKey,signature and command parameters with your POST request to CS. Santhosh From: Salar Darwish [salardarw...@gmail.commailto:salardarw...@gmail.com] Sent: Wednesday, December 25, 2013 4:22 AM To: users@cloudstack.apache.orgmailto:users@cloudstack.apache.org; Santhosh Edukulla Subject: Re: password hash Dear Santhosh, I do not use the login api . I use a mysql query to login into the web interface. when i use the password from the database(hashed) i can login with no problems. i tried to encrypt the password query i am sending to the database to MD5 but still can not login. after your mail i tried to use the login api but i get the folowing error: { \error\ : { \description\ : \Internal Server Error\ } } 2013/12/25 Santhosh Edukulla santhosh.eduku...@citrix.commailto:santhosh.eduku...@citrix.commailto:santhosh.eduku...@citrix.commailto:santhosh.eduku...@citrix.com 1. you are using login command to verify your account created through createAccount? 2. The API description for login mentions below. See the description for argument password. command namelogin/name descriptionLogs a user into the CloudStack. A successful login attempt will generate a JSESSIONID cookie value that can be passed in subsequent Query command calls until the quot;logoutquot; command has been issued or the session has expired./description isAsyncfalse/isAsync request arg nameusername/name descriptionUsername/description requiredtrue/required /arg arg namepassword/name descriptionHashed password (Default is MD5). If you wish to use any other hashing algorithm, you would need to write a custom authentication adapter See Docs section./description requiredtrue/required /arg arg namedomain/name descriptionpath of the domain that the user belongs to. Example: domain=/com/cloud/internal. If no domain is passed in, the ROOT domain is assumed./description requiredfalse/required /arg arg namedomainId/name descriptionid of the domain that the user belongs to. If both domain and domainId are passed in, quot;domainIdquot; parameter takes precendence/description requiredfalse/required /arg /request 3. What happens if you just pass the password as it is to login cmd? This is what got captured in firebug, when i logged in to CS. Here, password is password for account abc. command login domain / passwordpassword responsejson usernameabc Santhosh From: Salar Darwish [salardarw...@gmail.commailto:salardarw...@gmail.commailto:salardarw...@gmail.commailto:salardarw...@gmail.com] Sent: Tuesday, December 24, 2013 3:51 PM To:
Re: cloudstack network limitation
@Nux @Marty As you can see, I use DefaultIsolatedNetworkOfferingWithSourceNatService and I update network rate to 2Mbps. Meanwhile, I reboot the VMs. However, inbound and outbound value are all the same! root@cloudstack-ubuntu:~# virsh dumpxml i-2-3-VM | egrep inbound|outbound inbound average='25600' peak='25600'/ outbound average='25600' peak='25600'/ Egress Default PolicyDenyAvailabilityRequiredCreated by systemYesSpecify VLANNoSpecify IP rangesNoConserve modeYesNetwork Rate (Mb/s)2 Mb/sTraffic TypeGuest So, I feel confused about how Cloudstack limit the network rate for guest VMs. -- Best regards, DuJun 2013/12/25 Marty Sweet msweet@gmail.com I assume you are stopping and relaunching the VM. I would second Nux and say Network Offering. Marty On Wed, Dec 25, 2013 at 11:49 AM, Nux! n...@li.nux.ro wrote: On 25.12.2013 11:40, Du Jun wrote: Hi Marty, My problem is that even though I have update global settings about network rate, but inbound and outbound are not affected. Look like that: root@cloudstack-ubuntu:~# virsh dumpxml i-2-3-VM | egrep inbound|outbound inbound average='25600' peak='25600'/ outbound average='25600' peak='25600'/ No matter what I set for network rate in global settings, inbound and outbound for VM are always the same! As I said initially this may be bound to the network offering. Eg http://img.nux.ro/wj3C-Selection_008.png -- Sent from the Delta quadrant using Borg technology! Nux! www.nux.ro
Re: cloudstack network limitation
Hi DuJun, Can you confirm you are fully stopping the VM, the starting it as opposed to just rebooting it? Marty On Wednesday, December 25, 2013, Du Jun wrote: @Nux @Marty As you can see, I use DefaultIsolatedNetworkOfferingWithSourceNatService and I update network rate to 2Mbps. Meanwhile, I reboot the VMs. However, inbound and outbound value are all the same! root@cloudstack-ubuntu:~# virsh dumpxml i-2-3-VM | egrep inbound|outbound inbound average='25600' peak='25600'/ outbound average='25600' peak='25600'/ Egress Default PolicyDenyAvailabilityRequiredCreated by systemYesSpecify VLANNoSpecify IP rangesNoConserve modeYesNetwork Rate (Mb/s)2 Mb/sTraffic TypeGuest So, I feel confused about how Cloudstack limit the network rate for guest VMs. -- Best regards, DuJun 2013/12/25 Marty Sweet msweet@gmail.com javascript:; I assume you are stopping and relaunching the VM. I would second Nux and say Network Offering. Marty On Wed, Dec 25, 2013 at 11:49 AM, Nux! n...@li.nux.ro javascript:; wrote: On 25.12.2013 11:40, Du Jun wrote: Hi Marty, My problem is that even though I have update global settings about network rate, but inbound and outbound are not affected. Look like that: root@cloudstack-ubuntu:~# virsh dumpxml i-2-3-VM | egrep inbound|outbound inbound average='25600' peak='25600'/ outbound average='25600' peak='25600'/ No matter what I set for network rate in global settings, inbound and outbound for VM are always the same! As I said initially this may be bound to the network offering. Eg http://img.nux.ro/wj3C-Selection_008.png -- Sent from the Delta quadrant using Borg technology! Nux! www.nux.ro
Re: cloudstack network limitation
Hi Marty, Stop and then start VM instead reboot VM can update the value of inbound | outbound, root@cloudstack-ubuntu:~# virsh dumpxml i-2-3-VM | egrep inbound|outbound inbound average='256' peak='256'/ outbound average='256' peak='256'/ However, the real transportation speed is still the same, it's only about 600KB/s, which is far less than 256bps. Do you have any idea? -- Thanks and With Best Regards, DuJun 2013/12/25 Marty Sweet msweet@gmail.com Hi DuJun, Can you confirm you are fully stopping the VM, the starting it as opposed to just rebooting it? Marty On Wednesday, December 25, 2013, Du Jun wrote: @Nux @Marty As you can see, I use DefaultIsolatedNetworkOfferingWithSourceNatService and I update network rate to 2Mbps. Meanwhile, I reboot the VMs. However, inbound and outbound value are all the same! root@cloudstack-ubuntu:~# virsh dumpxml i-2-3-VM | egrep inbound|outbound inbound average='25600' peak='25600'/ outbound average='25600' peak='25600'/ Egress Default PolicyDenyAvailabilityRequiredCreated by systemYesSpecify VLANNoSpecify IP rangesNoConserve modeYesNetwork Rate (Mb/s)2 Mb/sTraffic TypeGuest So, I feel confused about how Cloudstack limit the network rate for guest VMs. -- Best regards, DuJun 2013/12/25 Marty Sweet msweet@gmail.com javascript:; I assume you are stopping and relaunching the VM. I would second Nux and say Network Offering. Marty On Wed, Dec 25, 2013 at 11:49 AM, Nux! n...@li.nux.ro javascript:; wrote: On 25.12.2013 11:40, Du Jun wrote: Hi Marty, My problem is that even though I have update global settings about network rate, but inbound and outbound are not affected. Look like that: root@cloudstack-ubuntu:~# virsh dumpxml i-2-3-VM | egrep inbound|outbound inbound average='25600' peak='25600'/ outbound average='25600' peak='25600'/ No matter what I set for network rate in global settings, inbound and outbound for VM are always the same! As I said initially this may be bound to the network offering. Eg http://img.nux.ro/wj3C-Selection_008.png -- Sent from the Delta quadrant using Borg technology! Nux! www.nux.ro
Re: Issue in accessing Windows and Linux VM
Hi, check the documentation for the hypervisor you are using with CloudStack. It will include the instructions to install the needed drivers. Best regards, Kirk On 12/09/2013 11:48 AM, jitendra shelar wrote: Hi All, Can someone please tell me how to add drivers to the windows VM created from windows ISO? Also please tell me how to configure this windows VM to make it accessible via RDP. And what all changes I need to make on linux vm to make it accessible via putty? Thanks in advance. Regards, Jitendra
Re: cloudstack network limitation
Hi, the rate limiting functionality is complicated. It can be affected by the type of network (shared or isolated), the direction of the traffic, the hypervisor running the instance or virtual router, the Network Offering for the network, the Compute Offering for the instance, the System Offering for the virtual router, and the (vm.)network.throttling.rate parameters in Global Settings. So there are many places to check. It is explained in the docs: http://cloudstack.apache.org/docs/en-US/Apache_CloudStack/4.2.0/html/Admin_Guide/network-rate.html I wrote much of this section, but I think it might be out of date. I didn't know support for rate limiting with KVM had been added. I think the example at the end might be wrong for KVM, but the rest should be valid. Best regards, Kirk On 12/25/2013 06:11 AM, Du Jun wrote: @Nux @Marty As you can see, I use DefaultIsolatedNetworkOfferingWithSourceNatService and I update network rate to 2Mbps. Meanwhile, I reboot the VMs. However, inbound and outbound value are all the same! root@cloudstack-ubuntu:~# virsh dumpxml i-2-3-VM | egrep inbound|outbound inbound average='25600' peak='25600'/ outbound average='25600' peak='25600'/ Egress Default PolicyDenyAvailabilityRequiredCreated by systemYesSpecify VLANNoSpecify IP rangesNoConserve modeYesNetwork Rate (Mb/s)2 Mb/sTraffic TypeGuest So, I feel confused about how Cloudstack limit the network rate for guest VMs. -- Best regards, DuJun 2013/12/25 Marty Sweet msweet@gmail.com I assume you are stopping and relaunching the VM. I would second Nux and say Network Offering. Marty On Wed, Dec 25, 2013 at 11:49 AM, Nux! n...@li.nux.ro wrote: On 25.12.2013 11:40, Du Jun wrote: Hi Marty, My problem is that even though I have update global settings about network rate, but inbound and outbound are not affected. Look like that: root@cloudstack-ubuntu:~# virsh dumpxml i-2-3-VM | egrep inbound|outbound inbound average='25600' peak='25600'/ outbound average='25600' peak='25600'/ No matter what I set for network rate in global settings, inbound and outbound for VM are always the same! As I said initially this may be bound to the network offering. Eg http://img.nux.ro/wj3C-Selection_008.png -- Sent from the Delta quadrant using Borg technology! Nux! www.nux.ro
RE: Issue in accessing Windows and Linux VM
Hi Jitendra, If you have deployed vms in an isolated networks , acquire one IP address in the network in which vms have been deployed and configure PF/Statick Nat rule and assign the guest vms you want to accesss. Also allow the ports on which you want to access windows vm via RDP or linux vm via putty in the Firewall. -Sanjeev -Original Message- From: Frankie Onuonga [mailto:frankie.onuo...@gmail.com] Sent: Wednesday, December 25, 2013 1:00 PM To: d...@cloudstack.apache.org Cc: issues-subscr...@cloudstack.apache.org; users@cloudstack.apache.org Subject: Re: Issue in accessing Windows and Linux VM Hi, I do not know much about windows, but your linux issue is pretty simple, you just need to ensure you have ssh installed, thanks. On Mon, Dec 23, 2013 at 6:43 PM, Daan Hoogland daan.hoogl...@gmail.comwrote: Jitendra, I am not sure what you expect as an answer but it seems to me you want to configure those machines in the console and then create shapshots and then new templates from those. Correct? Otherwise I don't see how these are cloudstack questions, regards On Mon, Dec 9, 2013 at 8:48 PM, jitendra shelar jitendra.shelar...@gmail.com wrote: Hi All, Can someone please tell me how to add drivers to the windows VM created from windows ISO? Also please tell me how to configure this windows VM to make it accessible via RDP. And what all changes I need to make on linux vm to make it accessible via putty? Thanks in advance. Regards, Jitendra -- Skype: Frankie.Onuonga twitter: Frankieonuonga irc #freenode: Frankie.onuonga
RE: [Doc] [4.3] Dynamic Compute Offering for Review
Hi, Custom compute offerings can be used in following cases: 1-deploy vm 2-change CO of stop vm 3-change CO of running vms(scaling up) -In doc it is more specific to create vm Custom: If checked, the end-user must fill in the desired values for number of CPU cores, CPU MHz, and Memory when creating a VM based on this offering. When you check this box, those three input fields are hidden in the dialog box. Comments: -we should say end user must provide value for #cpu,cpuspeed and ram whenever he/she is going to use custom compute offering. Thanks prashant -Original Message- From: Radhika Puthiyetath [mailto:radhika.puthiyet...@citrix.com] Sent: Sunday, December 22, 2013 3:57 PM To: users@cloudstack.apache.org; d...@cloudstack.apache.org Subject: [Doc] [4.3] Dynamic Compute Offering for Review Hi, 4.3 Documentation is getting ready to be reviewed. Please review section Creating Compute Offering, which inludes the changes for the Dynamic Compute offering . The documentation is uploaded at https://issues.apache.org/jira/browse/CLOUDSTACK-5604 Regards -Radhika