RE: Cloudbr1 not connecting to network(Public or private network), hence SSVM not connected to outside world

2016-10-28 Thread Kirk Kosinski
Hi, Abdul.  Please provide the output of:

brctl show

And the contents of:

/etc/cloudstack/agent/agent.properties

From the KVM host.

Best regards,
Kirk

kirk.kosin...@shapeblue.com 
www.shapeblue.com
53 Chandos Place, Covent Garden, London  WC2N 4HS
@shapeblue
  
 


-Original Message-
From: Abdul Qayyum Halid [mailto:haiy.ha...@gmail.com] 
Sent: Thursday, October 27, 2016 5:12 PM
To: users@cloudstack.apache.org
Subject: Cloudbr1 not connecting to network(Public or private network), hence 
SSVM not connected to outside world

Hi, i am having a problem on network bridging. I had found that my cloudbr1 
doesnt connected to any network, hence my SSVM and CPVM cant ping DNS or 
Gateway excluded the management server althiugh the status is up and running. 
So i can't downlod any ISO. I have flush my IPTABLES on host machine trough 
$sudo iptables -F but its change nothing. Any suggestion on networking setup 
including during zone creation since my SSVM or CPVM eth2 seems doesn't acquire 
public ip like 203.XX.XX.XX instead of 172.16.XX.XX.
Is it necessary that eth2 must to acquire public ip like 203.XX.XX.XX  in order 
to make SSVM or CPVM connected to outside world since i also doesnt know my 
public gateway instead of private gateway which is 172.16.xx.xx.
Any other fix suggestion are most welcome. Below is my current network setup. 
Btw I have management server and host in same machine. Thank you

# interfaces(5) file used by ifup(8) and ifdown(8) auto lo iface lo inet 
loopback

# The primary network interface
auto eth0
iface eth0 inet manual

# Public network
auto cloudbr0
iface cloudbr0 inet static
address 172.16.135.133
netmask 255.255.254.0
gateway 172.16.135.254
dns-nameservers 172.16.238.7 8.8.8.8
dns-domain UTP.EDU.MY 
bridge_ports eth0
bridge_fd 5
bridge_stp off
bridge_maxwait 1

# Private network
auto cloudbr1
iface cloudbr1 inet manual
bridge_ports eth0.300
bridge_fd 5
bridge_stp off
bridge_maxwait 1

--

# SSVM /etc/network/interfaces
auto lo eth0 eth1 eth2
iface lo inet loopback

iface  eth0 inet static
  address 169.254.0.193
  netmask 255.255.0.0
iface  eth1 inet static
  address 172.16.135.146
  netmask 255.255.254.0
iface  eth2 inet static
  address 172.16.135.11
  netmask 255.255.254.0

-

#SSVM health check


First DNS server is  172.16.238.6
PING 172.16.238.6 (172.16.238.6): 48 data bytes
--- 172.16.238.6 ping statistics ---
2 packets transmitted, 0 packets received, 100% packet loss
WARNING: cannot ping DNS server
route follows
Kernel IP routing table
Destination Gateway  Genmask  Flags   Metric Ref
Use Iface
0.0.0.0172.16.135.254   0.0.0.0   UG  0
00   eth2
169.254.0.0  0.0.0.0  255.255.0.0  U   0
00   eth0
172.16.134.00.0.0.0  255.255.254.0   U  0
00   eth1
172.16.134.00.0.0.0  255.255.254.0   U  0
00   eth2
172.16.238.6172.16.135.254  255.255.255.255  UGH   0   00
eth1

ERROR: DNS not resolving download.cloud.com resolv.conf follows nameserver 
172.16.238.6 nameserver 172.16.238.7


RE: Reusing ISO from Secondary Storage

2016-10-28 Thread Kirk Kosinski
Hi, as others mentioned you can search with find and it will be in a 
subdirectory like /template/tmpl/.  In the future if you rebuild an environment 
I would advise cleaning up the storage since CloudStack won't clean up files it 
doesn't know about, so any remaining files will waste space.

Best regards,
Kirk

kirk.kosin...@shapeblue.com 
www.shapeblue.com
53 Chandos Place, Covent Garden, London  WC2N 4HS
@shapeblue
  
 


-Original Message-
From: Asai [mailto:a...@globalchangemusic.org] 
Sent: Wednesday, October 26, 2016 11:59 AM
To: users@cloudstack.apache.org
Subject: Reusing ISO from Secondary Storage

Greetings,

Noob question.  I had an instance of Cloudstack up and running which I scrapped 
and started over.  In that instance I had downloaded and registered an ISO 
which is now in secondary storage.  In my new instance, I would like to reuse 
that ISO but CloudStack is not seeing it.  How do I retrieve an ISO from 
secondary storage for reuse?
Asai
Network and Systems Administrator
GLOBAL CHANGE MEDIA
office: 520.398.2542
http://globalchange.media
Tucson, AZ



RE: Reestablishing a VR when the VR was deleted

2016-09-19 Thread Kirk Kosinski
Hi, it's good to hear it's resolved.  The document you linked is correct in the 
context of an upgrade.  The upgrade process looks at the name and description 
of the templates to find the new system VM template, and will mark it as such 
in the database.  If, after an upgrade, the system VM template is somehow 
removed I'm not sure how to fix it besides a database hack.

Best regards,
Kirk

kirk.kosin...@shapeblue.com 
www.shapeblue.com
53 Chandos Place, Covent Garden, London  WC2N 4HS
@shapeblue
  
 


-Original Message-
From: Mason Donahue [mailto:mdona...@backstopsolutions.com] 
Sent: Monday, September 19, 2016 3:05 PM
To: users@cloudstack.apache.org
Subject: Re: Reestablishing a VR when the VR was deleted

Well, that was the bit of information that finally got us back up and running.

The original routerVM failed to start due to the template not being there, so I 
had redownloaded the template according to the directions at 
https://docs.cloudstack.apache.org/projects/cloudstack-release-notes/en/4.4.1/upgrade/upgrade-4.3.html
 and that seems to have been the source of the problem.

Within the errors that accompanied the failure to start of the random VM I 
picked there was an attempt to start a VR:

2016-09-19 15:29:48,962 DEBUG [c.c.n.r.VirtualNetworkApplianceManagerImpl] 
(Work-Job-Executor-4:ctx-21dac544 job-10167/job-10169 ctx-d441bcf6) Lock is 
acquired for network id 204 as a part of router startup in 
Dest[Zone(Id)-Pod(Id)-Cluster(Id)-Host(Id)-Storage(Volume(Id|Type-->Pool(Id))] 
: Dest[Zone(1)-Pod(1)-Cluster(7)-Host(25)-Storage()]
2016-09-19 15:29:48,972 DEBUG [c.c.n.r.VirtualNetworkApplianceManagerImpl] 
(Work-Job-Executor-4:ctx-21dac544 job-10167/job-10169 ctx-d441bcf6) Adding nic 
for Virtual Router in Guest network 
Ntwk[448deced-7223-4549-98bd-5acafc811f05|Guest|6]
2016-09-19 15:29:48,977 DEBUG [c.c.n.r.VirtualNetworkApplianceManagerImpl] 
(Work-Job-Executor-4:ctx-21dac544 job-10167/job-10169 ctx-d441bcf6) Adding nic 
for Virtual Router in Control network
2016-09-19 15:29:48,980 DEBUG [o.a.c.e.o.NetworkOrchestrator] 
(Work-Job-Executor-4:ctx-21dac544 job-10167/job-10169 ctx-d441bcf6) Found 
existing network configuration for offering [Network Offering 
[3-Control-System-Control-Network]: 
Ntwk[28d967d8-3b75-4362-9234-b0d029b0d21b|Control|3]
2016-09-19 15:29:48,980 DEBUG [o.a.c.e.o.NetworkOrchestrator] 
(Work-Job-Executor-4:ctx-21dac544 job-10167/job-10169 ctx-d441bcf6) Releasing 
lock for Acct[7500fc58-dcf6-11e2-b492-00219b9585d4-system]
2016-09-19 15:29:48,984 DEBUG [c.c.n.r.VirtualNetworkApplianceManagerImpl] 
(Work-Job-Executor-4:ctx-21dac544 job-10167/job-10169 ctx-d441bcf6) Allocating 
the VR i=1703 in datacenter 
com.cloud.dc.DataCenterVO$$EnhancerByCGLIB$$9732e921@1with the hypervisor type 
KVM
2016-09-19 15:29:48,988 DEBUG [c.c.n.r.VirtualNetworkApplianceManagerImpl] 
(Work-Job-Executor-4:ctx-21dac544 job-10167/job-10169 ctx-d441bcf6) KVM won't 
support system vm, skip it
2016-09-19 15:29:48,989 DEBUG [c.c.n.r.VirtualNetworkApplianceManagerImpl] 
(Work-Job-Executor-4:ctx-21dac544 job-10167/job-10169 ctx-d441bcf6) Lock is 
released for network id 204 as a part of router startup in 
Dest[Zone(Id)-Pod(Id)-Cluster(Id)-Host(Id)-Storage(Volume(Id|Type-->Pool(Id))] 
: Dest[Zone(1)-Pod(1)-Cluster(7)-Host(25)-Storage()]
2016-09-19 15:29:48,989 INFO  [c.c.v.VirtualMachineManagerImpl] 
(Work-Job-Executor-4:ctx-21dac544 job-10167/job-10169 ctx-d441bcf6) Unable to 
contact resource.
com.cloud.exception.ResourceUnavailableException: Resource [DataCenter:1] is 
unreachable: Can't find at least one running router!

The line ‘KVM won’t support system vm, skip it’ was the key, as googling it led 
to other cloudstack-users mailing list posts with other people who had failed 
to add systemvm templates back in. Shutting down the management server, 
updating the TYPE column in the database for the systemvm to ‘SYSTEM’ instead 
of ‘USER’, and starting a VM again fixed it, and everything came back up 
happily.

It seems like the documentation on importing systemVMs (for instance, 
https://docs.cloudstack.apache.org/projects/cloudstack-release-notes/en/4.9.0/upgrade/upgrade-4.4.html)
 is incorrect, as it says that the template should be imported as ‘Routing: 
no’. Or is there some other method in which a template is supposed to be set to 
SYSTEM instead of USER?

Thanks!

--Mason

On 9/19/16, 3:22 PM, "Kirk Kosinski" <kirk.kosin...@shapeblue.com> wrote:

Hi, if you start a VM in a network that has no VR, the VR will be 
recreated.  So you can stop/start an existing VM in the network, or deploy a 
new VM to the network.

Best regards,


kirk.kosin...@shapeblue.com 
www.shapeblue.com
53 Chandos Place, Covent Garden, London  WC2N 4HS
@shapeblue
  
 


-Original Message-
From: Mason Donahue [mailto:mdona...@backstopsolutions.com] 
Sent: Monday, September 19, 2016 9:56 AM
To: users@cloudstack.

RE: reseting password

2016-09-01 Thread Kirk Kosinski
The password reset function is handled by the Virtual Routers.  If the password 
reset does not work for VM instances on one host, but works fine on another 
host, it may be a network issue on the affected host preventing the VMs from 
reaching the VR.

Best regards,
Kirk

kirk.kosin...@shapeblue.com 
www.shapeblue.com
53 Chandos Place, Covent Garden, London  WC2N 4HS
@shapeblue
  
 


-Original Message-
From: uabstarn...@gmail.com [mailto:uabstarn...@gmail.com] On Behalf Of 
Mindaugas Milinavicius
Sent: Wednesday, August 31, 2016 10:31 PM
To: users@cloudstack.apache.org
Subject: Re: reseting password

No, if i reboot VM - all is ok, there is old password.

If host, there VM is started, crashed, after VM's started on other host, they 
have new password.




Pagarbiai
Mindaugas Milinavičius
UAB STARNITA
Direktorius
http://www.clustspace.com
LT: +37068882880
RU: +7913933

Tomorrow's possibilities today
<http://www.clustspace.com/>

   - 1 core CPU, 512MB RAM, 20GB (€ 5.00)
   - 1 core CPU, 1GB RAM, 30GB (€ 10.00)
   - 2 core CPU, 2GB RAM, 40GB (€ 20.00)
   - 2 core CPU, 4GB RAM, 60GB (€ 40.00)
   - 4 core CPU, 8GB RAM, 80GB (€ 80.00)


On Thu, Sep 1, 2016 at 3:37 AM, Kirk Kosinski <kirk.kosin...@shapeblue.com>
wrote:

> Hi, do you mean the VM Instance reboots when you change the password 
> through CloudStack?  That is expected.  The password is reset by a 
> script that run at boot time so the VM has to be rebooted for the new 
> password to take effect.
>
> Best regards,
>
>
> kirk.kosin...@shapeblue.com
> www.shapeblue.com
> 53 Chandos Place, Covent Garden, London  WC2N 4HS @shapeblue
>
>
>
>
> -Original Message-
> From: uabstarn...@gmail.com [mailto:uabstarn...@gmail.com] On Behalf Of
> Mindaugas Milinavicius
> Sent: Wednesday, August 31, 2016 12:31 PM
> To: users@cloudstack.apache.org
> Subject: reseting password
>
> Hello guys,
>
> then host server goes down, always after back changed VM's passwords. Does
> anyone know why it's doing it? I should everytime stop instance, change
> password, and after it back
>


RE: reseting password

2016-08-31 Thread Kirk Kosinski
Hi, do you mean the VM Instance reboots when you change the password through 
CloudStack?  That is expected.  The password is reset by a script that run at 
boot time so the VM has to be rebooted for the new password to take effect.

Best regards,


kirk.kosin...@shapeblue.com 
www.shapeblue.com
53 Chandos Place, Covent Garden, London  WC2N 4HS
@shapeblue
  
 


-Original Message-
From: uabstarn...@gmail.com [mailto:uabstarn...@gmail.com] On Behalf Of 
Mindaugas Milinavicius
Sent: Wednesday, August 31, 2016 12:31 PM
To: users@cloudstack.apache.org
Subject: reseting password

Hello guys,

then host server goes down, always after back changed VM's passwords. Does 
anyone know why it's doing it? I should everytime stop instance, change 
password, and after it back


RE: Debian 7 Template has ethernet card problem

2016-07-21 Thread Kirk Kosinski
Hi, you could add the iptables command in rc.local or other startup script.  
However, even though the workaround helps, that bug isn't completely correct.  
The VR uses dnsmasq for DHCP, not isc-dhcp, so updating isc-dhcp on the VR 
wouldn’t help.

This is more of an issue with the DHCP client.   Try updating the DHCP client 
in the instance, or try a different one.  I think dhcpcd works.  If that 
doesn't help, try installing one from RHEL as their DHCP clients have the 
necessary patches.

Best regards,

kirk.kosin...@shapeblue.com 
www.shapeblue.com
53 Chandos Place, Covent Garden, London  WC2N 4HS
@shapeblue
  
 


-Original Message-
From: Semih Tolga DEMİR [mailto:semihtolgade...@gmail.com] 
Sent: Tuesday, July 19, 2016 12:07 AM
To: users@cloudstack.apache.org
Subject: Re: Debian 7 Template has ethernet card problem

Hi,

VirtIO gets detected by Debian 7.

We noticed that our problem is directly related with the bug which is mentioned 
on ' https://issues.apache.org/jira/browse/CLOUDSTACK-8326 '

It looks like bug does not applied to the ACS code yet. What is the best way to 
insert a iptables rule when VR starts or restarts?

Thanks.

2016-07-18 21:02 GMT+03:00 Simon Weller :

> What ethernet card gets detected by Debian 7 when using the the Debian 
> 7 template?
>
> Can you provide some logs?
>
>
> - Si
>
>
> 
> From: Semih Tolga DEMIR 
> Sent: Monday, July 18, 2016 7:58 AM
> To: users@cloudstack.apache.org
> Subject: Debian 7 Template has ethernet card problem
>
> Hi,
>
> We are uing ACS 4.8 and we try to deploy Debian 7 and 8 vm's over it. 
> When we select Template OS Type as 'Debian GNU/Linux 7(64bit)' Debian 
> VMs does not use their ethernet card. To solve issue we selecet 
> 'Debian GNU/Linux 6(64bit)'. Then it works good.
>
> Are there any problems or bugs with 'Debian GNU/Linux 7(64bit)' 
> template OS type for ethernet usage?
>
> Thanks
>


RE: ACS 4.3 & VMware CPU Allocation

2016-06-14 Thread Kirk Kosinski
Hi, you can configure the cores per socket on the template.  I'm not sure if 
this works in CloudStack 4.3 but it should in 4.4 and newer. [1]  It is 
configured by adding a detail with cpu.corespersocket=# to the template.  I'm 
not sure if this is possible in the UI, so if not, try the updateTemplate API. 
[2]

Best regards,
Kirk

[1] https://issues.apache.org/jira/browse/CLOUDSTACK-5891
[2] http://cloudstack.apache.org/api/apidocs-4.8/root_admin/updateTemplate.html

kirk.kosin...@shapeblue.com 
www.shapeblue.com
53 Chandos Place, Covent Garden, London  WC2N 4HS
@shapeblue



-Original Message-
From: Timothy Lothering [mailto:tlother...@gmail.com] 
Sent: Tuesday, June 14, 2016 2:49 AM
To: users@cloudstack.apache.org
Subject: Re: ACS 4.3 & VMware CPU Allocation

Hello Community,

 

We have found a very interesting issue with CPU allocation in ACS 4.3 and 
VMware. When a Service Offering is configured, you can choose the number of 
Cores and clock speed, which is simple enough. The problem comes in on HOW the 
cores are assigned.

 

In VMware at least, each core is assigned as a vSocket, with 1 vCore. As an
example:

 

1. Service Offering defined is 8 Cores @ 2.5GHz,

2. Instance is provisioned as 8 vSockets with 1vCore per Socket

3. OS displays all 8 "CPUs"

4. Happiness!

 

But, when you are using Core based licensing with products such as Microsoft 
SQL 2014 Standard, there is a limit on the number of supported "physical"
sockets, in this case, 4.

 

So when you run a SQL query/command, only 4 of the 8 cores are used, the only 
way around this is to change the VMware settings to 4x vSockets with 2x vCores 
per socket. There is a performance hit as described here:
http://blogs.vmware.com/vsphere/2013/10/does-corespersocket-affect-performan
ce.html, but the main issue is that Customers are trying to use all available 
resources.

 

My questions from the info above:

 

1. Will there be future support to define vSockets and vCores per
vSocket in a future release of ACS?

2. What is the impact on ACS Usage and Management reporting if we change
the vSockets manually? (on VMware itself)

 

Your insights would be appreciated.

 

Regards

 

Tim

 



RE: PERSISTANT VLANID FOR VIRTUAL MACHINE

2016-06-14 Thread Kirk Kosinski
Hi, are you seeing this behavior with isolated or shared networks?  I believe 
that is the expected behavior for an isolated network, whereas for shared 
networks the VLAN should be persistent. 

Best regards,


kirk.kosin...@shapeblue.com 
www.shapeblue.com
53 Chandos Place, Covent Garden, London  WC2N 4HS
@shapeblue



-Original Message-
From: Venkat Boggarapu [mailto:venka...@axiomio.com] 
Sent: Tuesday, June 14, 2016 5:57 AM
To: users@cloudstack.apache.org
Subject: PERSISTANT VLANID FOR VIRTUAL MACHINE

Hi All,

Our present environment is CS4.3.1 and XENSERVER 6.2.

In Cloud Stack we will create a separate VLAN ID for each Virtual machine.

While doing maintenance or if we reboot the router for any reasons, the VLAN ID 
for the virtual machine changes.

My query is I want to keep the same VLAN ID if we reboot the router or do any 
maintenance.

I need PERSISTENT VLAN-ID for the Virtual Machine.

If any have faced this scenario please help me how to keep the VLAN-ID 
persistent for  virtual machine.


Thanks,
Venkat Boggarapu







RE: Redundant Router

2016-06-06 Thread Kirk Kosinski
Hi, it looks like RVR requires Source NAT according to the admin guide:

Redundant router capability: Available only when Virtual Router is selected as 
the Source NAT provider.

kirk.kosin...@shapeblue.com 
www.shapeblue.com
53 Chandos Place, Covent Garden, London  WC2N 4HS
@shapeblue



-Original Message-
From: Semih Tolga DEMİR [mailto:semihtolgade...@gmail.com] 
Sent: Monday, June 06, 2016 5:56 AM
To: users@cloudstack.apache.org
Subject: Redundant Router

Hi,

I use advanced networking and security groups. I want to test Redundant Router 
in my environment.

Redundant Router option only posible when creating new Network Offering and 
select Source NAT. I do not need Source NAT, so are there anyway to use 
redundant router in my project except using Source NAT.

Thanks,
Tolga


RE: Upgrading from ACS 4.2 to 4.8 - VR upgrade issue

2016-06-06 Thread Kirk Kosinski
Hi, what is the status of the CPVM and SSVM in the UI?  Were they really 
upgraded successfully?

Also, are there any errors in the management-server.log?

kirk.kosin...@shapeblue.com 
www.shapeblue.com
53 Chandos Place, Covent Garden, London  WC2N 4HS
@shapeblue



-Original Message-
From: Cloud List [mailto:cloud-l...@sg.or.id] 
Sent: Monday, June 06, 2016 9:51 AM
To: users@cloudstack.apache.org; d...@cloudstack.apache.org
Subject: Upgrading from ACS 4.2 to 4.8 - VR upgrade issue

Hi,

I tried upgrading our CloudStack 4.2.0 on our test environment to 4.8.0, and I 
am having issues on VR upgrade. I followed the upgrade instructions at below 
URL:

http://cloudstack-release-notes.readthedocs.io/ja/stable/upgrade/upgrade-4.2.html

On the last step to restart all the system VMs and VRs, it seems that the 
cloudstack-sysvmadm script managed to restart the system VMs (SSVM and
CPVM) but not the VR.

# nohup cloudstack-sysvmadm -d IPaddress -u cloud -p password -a > sysvm.log 
2>&1 &

Here's the output of the sysvm.log file:


nohup: ignoring input
/usr/bin/cloudstack-sysvmadm: line 21: /etc/rc.d/init.d/functions: No such file 
or directory

Stopping and starting 1 secondary storage vm(s)...
Done stopping and starting secondary storage vm(s)

Stopping and starting 1 console proxy vm(s)...
Done stopping and starting console proxy vm(s) .

Stopping and starting 1 running routing vm(s)...
*ERROR: Failed to restart domainRouter with id 5*

Done restarting router(s).


Output of the cloud.log file:


[2016.06.05-22.28.40] Stopping and starting 1 secondary storage vm(s)...
[2016.06.05-22.28.40] INFO: Stopping secondary storage vm with id 3 
[2016.06.05-22.28.46] INFO: Starting secondary storage vm with id 3 
[2016.06.05-23.29.00] ERROR: Failed to startSystemVm id=3; jobId is 
121c5d89-745a-4e8e-9f96-0b348ef42abf
[2016.06.05-23.29.00] ERROR: Failed to start secondary storage vm with id 3 
[2016.06.05-23.29.00] ERROR: Failed to start secondary storage vm with id 3 
[2016.06.05-23.29.00] Done stopping and starting secondary storage vm(s).
[2016.06.05-23.29.00] Stopping and starting 1 console proxy vm(s)...
[2016.06.05-23.29.00] INFO: Stopping console proxy with id 2 
[2016.06.05-23.29.06] INFO: Starting console proxy vm with id 2 
[2016.06.05-23.30.49] Done stopping and starting console proxy vm(s) .
[2016.06.05-23.30.49] Stopping and starting 1 running routing vm(s)...
[2016.06.05-23.30.49] INFO: Restarting router with id 5 [2016.06.06-00.30.59] 
ERROR: Failed to restart domainRouter with id 5; jobId 
4a3f681e-c4a6-4856-9d42-0d3b79bffdae
[2016.06.06-00.31.04] Done restarting router(s).


Initially I noted that the VR remains in 4.2.0 version (instead of the expected 
4.8.0 version), tried to destroy the router so it'll be recreated but it 
doesn't get created successfully.

Tried to run the cloudstack-sysvmadm manually with the -r option to restart 
only the VR, and the problem still persists.

At the moment, the version of the VR is "UNKNOWN" and the "Require Upgrade"
state is "Yes".

Any advice how to make the VR back up and running?

Looking forward to your reply, thank you.

Cheers.

-ip-


Re: VNC to VM

2016-05-27 Thread Kirk Kosinski
Hi, virsh console can be used for CLI access but you may have to enable it in 
the VM.  I wrote a blog article [1] about it with some examples, or you can 
check the OS documentation.

[1] 
https://kirkkosinski.com/2013/01/configuring-centos-6-and-windows-vms-for-virsh-console-on-kvm/

From: Mohd Zainal Abidin Rabani 
Sent: Thursday, May 26, 2016 6:34:01 PM
To: users@cloudstack.apache.org
Subject: RE: VNC to VM

Cannot use virsh console . I already try. But I have success to
access a vm using vnc from windows.

Step:

1. bash#>ps aux | grep 
2. Get process id from above command.
Bash#>lsof -I -P -n | grep 
3. Try find with end like x.x.x.x:590x
4. Get password to access vm as below:

virsh dumpxml --security-info   | grep  vnc

kirk.kosin...@shapeblue.com 
www.shapeblue.com
53 Chandos Place, Covent Garden, London  WC2N 4HS
@shapeblue



-Original Message-
From: Sanjeev Neelarapu [mailto:sanjeev.neelar...@accelerite.com]
Sent: Thursday, May 26, 2016 6:38 PM
To: users@cloudstack.apache.org
Subject: RE: VNC to VM

Try "virsh console " command on kvm host.

Best Regards,
Sanjeev N
Chief Product Engineer, Accelerite
Off: +91 40 6722 9368 | EMail: sanjeev.neelar...@accelerite.com



-Original Message-
From: Mohd Zainal Abidin Rabani [mailto:zai...@nocser.net]
Sent: Thursday, May 26, 2016 1:33 PM
To: users@cloudstack.apache.org
Subject: VNC to VM

Hi,



How to to vnc vm that in kvm cloudstack? I want reset passwd using single
mode. Anyone knows? Assist me pls.



Thanks.




DISCLAIMER
==
This e-mail may contain privileged and confidential information which is the
property of Accelerite, a Persistent Systems business. It is intended only
for the use of the individual or entity to which it is addressed. If you are
not the intended recipient, you are not authorized to read, retain, copy,
print, distribute or use this message. If you have received this
communication in error, please notify the sender and delete all copies of
this message. Accelerite, a Persistent Systems business does not accept any
liability for virus infected mails.



RE: Advanced Networking Model and ceph storage

2016-05-04 Thread Kirk Kosinski
Hi, I haven't heard of such a requirement.  Do you remember where you read 
this?  Also, which management network was it referring to exactly?


Regards,

Kirk Kosinski

kirk.kosin...@shapeblue.com 
www.shapeblue.com
53 Chandos Place, Covent Garden, London  WC2N 4HS
@shapeblue

-Original Message-
From: Brian Smith [mailto:bmsmit...@gmail.com] 
Sent: Saturday, April 30, 2016 11:10 PM
To: users@cloudstack.apache.org
Subject: Advanced Networking Model and ceph storage

I recall reading somewhere (not through the coudstack docs) that the management 
and primary storage (if using ceph) must be on a two different networks with 
two different CIDRs if using ceph as as primary storage, Is this true?


RE: Guid is not updated for cluster with specified cluster id

2016-04-19 Thread Kirk Kosinski
Hi, Mario.  What version of CloudStack is this?  Also, can you be more specific 
about what was done?  Did you reinstall the agent on the hosts, or change any 
of the agent configuration (e.g. agent.properties)?  

When you re-added artkvm2, did you add it to a new or existing cluster?  If it 
already existed, were there any other hosts in the cluster besides artkvm2?

Did you try any troubleshooting steps from the posts you found (if so, what did 
you try)?  

Lastly, please provide the entries for the affected cluster in the cluster and 
cluster_details tables.  Thanks!


Regards,

Kirk Kosinski

kirk.kosin...@shapeblue.com 
www.shapeblue.com
53 Chandos Place, Covent Garden, London  WC2N 4HS
@shapeblue

-Original Message-
From: Mario Giammarco [mailto:mgiamma...@gmail.com] 
Sent: Friday, April 15, 2016 3:09 AM
To: users@cloudstack.apache.org
Subject: Guid is not updated for cluster with specified cluster id

Hello,
I had to delete and insert again two servers in a zone.
Now I was able to insert again the server artkvm2 with ip 10.4.1.3 but when I 
try to add again artkvm1 with ip 10.4.1.2 I only get:

Guid is not updated for cluster with specified cluster id; need to wait for 
hosts in this cluster to come up

I have seen other post in the past about this error but they are not helpful 
for me.

Here is the log:

2016-04-15 12:05:11,671 DEBUG [c.c.a.m.AgentManagerImpl] (AgentManager-
Handler-3:null) (logid:) SeqA 22-1109: Processing Seq 22-1109:  { Cmd ,
MgmtId: -1, via: 22, Ver: v1, Flags: 11,
[{"com.cloud.agent.api.ConsoleProxyLoadReportCommand":
{"_proxyVmId":3773,"_loadInfo":"{\n  \"connections\": []\n}","wait":0}}] }
2016-04-15 12:05:11,679 DEBUG [c.c.a.m.AgentManagerImpl] (AgentManager-
Handler-3:null) (logid:) SeqA 22-1109: Sending Seq 22-1109:  { Ans: ,
MgmtId: 345041274374, via: 22, Ver: v1, Flags: 100010, 
[{"com.cloud.agent.api.AgentControlAnswer":{"result":true,"wait":0}}] }
2016-04-15 12:05:15,955 DEBUG [c.c.a.ApiServlet] (catalina-exec-7:ctx-
47e15670) (logid:4d7b1671) ===START===  10.1.0.38 -- POST 
command=addHost=json
2016-04-15 12:05:15,966 WARN  [c.c.a.d.ParamGenericValidationWorker]
(catalina-exec-7:ctx-47e15670 ctx-e6b00129) (logid:4d7b1671) Received unknown 
parameters for command addHost. Unknown parameters : clustertype
2016-04-15 12:05:15,970 ERROR [c.c.a.ApiServer] (catalina-exec-7:ctx-
47e15670 ctx-e6b00129) (logid:4d7b1671) unhandled exception executing api
command: [Ljava.lang.String;@59a74e3e
com.cloud.utils.exception.CloudRuntimeException: Guid is not updated for 
cluster with specified cluster id; need to wait for hosts in this cluster to 
come up
at
com.cloud.resource.ResourceManagerImpl.discoverHosts(ResourceManagerImpl.ja
va:588)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:5
7)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp
l.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at
org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(Aop
Utils.java:317)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoin
t(ReflectiveMethodInvocation.java:183)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(Reflec
tiveMethodInvocation.java:150)
at
org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(Expo
seInvocationInterceptor.java:91)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(Reflec
tiveMethodInvocation.java:172)
at
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopPr
oxy.java:204)
at com.sun.proxy.$Proxy157.discoverHosts(Unknown Source)
at
org.apache.cloudstack.api.command.admin.host.AddHostCmd.execute(AddHostCmd.
java:142)
at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:150)
at com.cloud.api.ApiServer.queueCommand(ApiServer.java:698)
at com.cloud.api.ApiServer.handleRequest(ApiServer.java:529)
at
com.cloud.api.ApiServlet.processRequestInContext(ApiServlet.java:297)
at com.cloud.api.ApiServlet$1.run(ApiServlet.java:127)
at
org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(Def
aultManagedContext.java:56)
at
org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithCo
ntext(DefaultManagedContext.java:103)
at
org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithCon
text(DefaultManagedContext.java:53)
at com.cloud.api.ApiServlet.processRequest(ApiServlet.java:124)
at com.cloud.api.ApiServlet.doPost(ApiServlet.java:91)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:643)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
at
org

RE: Best way to update Templates

2016-04-18 Thread Kirk Kosinski
Hi, yes that is a good way to do it.  Note that if you do delete a template 
that is in use, it won't actually be deleted on the back-end (i.e. the database 
entries will remain, as will the files on secondary storage), rather it is just 
hidden from the end-users in the UI and API.  Giving a new template the same 
name as a deleted one might be a bit confusing so you could consider adding a 
version number or date code.

Best regards,

Regards,

Kirk Kosinski

kirk.kosin...@shapeblue.com 
www.shapeblue.com
53 Chandos Place, Covent Garden, London  WC2N 4HS
@shapeblue

-Original Message-
From: Sean Lair [mailto:sl...@ippathways.com] 
Sent: Monday, April 18, 2016 3:09 PM
To: users@cloudstack.apache.org
Subject: Best way to update Templates

Hello,

We need to periodically update our templates, for example installing the latest 
Windows updates in our Windows Server templates  Is there a way to update 
existing templates or do we just need to delete the old template and create new 
one with the same name?

The only issue I see with that so far is that we lose the linkage between 
instaces (VMs) and templates.

Thanks
Sean



(Re-)introduction

2016-04-05 Thread Kirk Kosinski
Hi, Apache CloudStack users.  If you don't know me, I'm Kirk, an ACS committer 
and former employee of Cloud.com and Citrix.  I haven't been very active on the 
lists lately, but I recently joined ShapeBlue and I will be helping out more 
here and other areas in the community.  If you happen to be attending ApacheCon 
NA next month, I'll be presenting a CloudStack-related session, so please check 
it out and say hello.  Thanks!!

Kirk


Regards,

Kirk Kosinski

kirk.kosin...@shapeblue.com 
www.shapeblue.com
53 Chandos Place, Covent Garden, London  WC2N 4HS
@shapeblue


Re: failed to clean restart a network due to bad template url

2015-11-23 Thread Kirk Kosinski
Hi, is Hyper-V listed in the hypervisors parameter in Global Settings? If
so you could try removing it to see if CloudStack stops trying to get the
Hyper-V system VM template.

Best regards,
Kirk

On Thu, Nov 19, 2015 at 4:27 AM, Patrick W.  wrote:

> Hi all,
>
>
>
> Wondering if this is a bug or if it can be fixed quickly. I’m
> running 4.4.1 with xen. Original install was 4.3 and did upgrade to 4.4.1
> later.
>
>
>
> When I attempt to do a clean restart of a network, the existing
> VR is getting expunged correctly, but the new VR isn’t being created and I
> receive an error: Failed to Restart Network.
>
>
>
> To workaround this error, I simply need to start a VM part
> of this Network and it create the new VR correctly.
>
>
>
> Management logs show this particular error:
>
>
> 2015-11-19
> 12:50:09,050 WARN
> [o.a.c.e.o.NetworkOrchestrator] (API-Job-Executor-24:ctx-5625f3c1
> job-41558 ctx-c6332a2b) Failed to implement network
> Ntwk[35443c6e-f0d0-4dd2-9413-9a8b8112d20f|Guest|8] elements and resources
> as a part
> of network restart due to
>
> com.cloud.utils.exception.CloudRuntimeException:
> Template 9 has not been completely downloaded to zone 1
>
>
>
> Template 9 is the following:
>
>
> SystemVM Template
> (HyperV)
>
>
> http://cloudstack.apt-get.eu/systemvm/4.4/systemvm64template-4.4.0-6-hyperv.vhd.bz2
>
> DOWNLOAD_ERROR
>
> HTTP Server returned
> 404 (expected 200 OK)
>
>
>
> Indeed the url is wrong and it can’t grab it. But why is it
> attempting to download the hyperv one, if I’m not using hyper-v at all?
> Why is this ruining the clean restart of a network if I don't need that
> template at all?
>
>
>
> Any quick fix here? Can someone upload the correct file in
> .bz2 instead of .zip? Or can I edit the url in my DB to put the zip
> equivalent (can CS then
> correctly complete the download process?)
>
>
> Thanks in advance!


Re: Port Forwarding to reserved IP?

2014-12-05 Thread Kirk Kosinski
Hi, Martin.  CloudStack needs to know about the IP to be able to create
a PF rule for it.  One potential workaround I think might work would be
to acquire a secondary IP for one of the VMs, use that for the virtual
IP in your application, and configure the PF rule for it in CloudStack.

Best regards,
Kirk

On 12/05/2014 08:11 AM, Martin Emrich wrote:
 Hi!
 
 I want to configure a port forwarding rule to a reserved IP (Which is 
 assigned as a virtual IP across several VMs). Using the Cloudstack load 
 balancer is not what I want, as it appears as the source of every request in 
 the application log files.
 
 I have excluded a range of reserved IPs from the Network as described in 
 http://cloudstack.apache.org/docs/en-US/Apache_CloudStack/4.2.0/html/Admin_Guide/reserved-ip-addresses-non-csvms.html
 (I use Cloudstack 4.4.1, but the documentation appears to be still valid).
 
 This IP is not known to Cloudstack, as it is not assigned to any VM. So I 
 cannot choose a VM to forward to, but I need to enter the IP directly. Via 
 GUI this is not possible.
 I tried it via Cloud Monkey:
 
 create portforwardingrule ipaddressid=589d1160-5618-452f-a78c-dfd6dbec5fb9 
 networkid=1b3893a0-367b-4805-974b-72ae735680fa privateport=8088 
 privateendport=8088 publicport=18088 publicendport=18088 protocol=tcp 
 vmguestip=192.168.101.10
 Missing arguments: virtualmachineid
 
 Faking it by adding some innocent VM's UUID obviously does not work:
 
 create portforwardingrule ipaddressid=589d1160-5618-452f-a78c-dfd6dbec5fb9 
 networkid=1b3893a0-367b-4805-974b-72ae735680fa privateport=8088 
 privateendport=8088 publicport=18088 publicendport=18088 protocol=tcp 
 vmguestip=192.168.101.10 
 virtualmachineid=b50e75ed-92ea-44cd-b7c2-f5ede5aa4c94
 Error: IP Address is not in the VM nic's network
 
 So I am stuck here... Any hint on how to make the port forwarding happen?
 
 Thanks,
 
 Martin
 
 


Re: NFS overprovisioning of 0.5 ???

2014-12-02 Thread Kirk Kosinski
Hi, my instinct says it won't work, but there shouldn't be any harm in
trying.  IIRC some settings like this have to be = 1.  However, the
storage disable thresholds seem more appropriate for this scenario.  You
can set it at various levels (global, zone, cluster) depending on your
exact needs.

Best regards,
Kirk

On 12/02/2014 12:36 AM, Andrija Panic wrote:
 true... ZFS pool under NFS...will consider...but I;'m just wondering, since
 it is math of available space = overprovisioningFactor x realspace - I
 guess this is technicaly possible...
 
 On 2 December 2014 at 09:34, Nux! n...@li.nux.ro wrote:
 
 I think your approaching this from the wrong side.
 Why not just nfs export half of the space instead? (you could use lvm,
 thin-lvm etc)?

 Lucian

 --
 Sent from the Delta quadrant using Borg technology!

 Nux!
 www.nux.ro

 - Original Message -
 From: Andrija Panic andrija.pa...@gmail.com
 To: users@cloudstack.apache.org, d...@cloudstack.apache.org
 Sent: Tuesday, 2 December, 2014 07:53:37
 Subject: NFS overprovisioning of 0.5 ???

 Hi.

 wondering if it is possible to set overprovisioning factor to less than
 1 ?

 I have 1 NFS box, 2 x 10GB cards inside, don't want to do bonding, but
 efectively present this single box as 2 boxes via 2 IP adresses - so in
 this scenario I need to set overprovisioning factor to less than 1, to
 i.e.
 0.5 - because of disk space etc...

 This is for test purposes, but again...

 --

 Andrija Panić

 
 
 



Re: Converting VM guests

2014-12-02 Thread Kirk Kosinski
Hi, qemu-img can convert VHD and QCOW2 to VMDK.  It's a dumb
conversion only, though, and won't fix any driver or other things in the
guest that might be required for it to actually boot on ESXi.

Best regards,
Kirk

On 12/02/2014 02:16 AM, Vadim Kimlaychuk wrote:
 Hello all,
 
 Can anyone suggest tool to convert KVM and XenServer VM guest 
 images into VMDK in order to import them later into Cloudstack?  We are going 
 to build VmWare Zone and guests must migrate there.
 Thank you for tips,
 
 Vadim Kimlaychuk
 


Re: Reconfig of network after adding hosts to CS

2014-12-01 Thread Kirk Kosinski
Hi, CloudStack uses the network labels to determine VM network
configuration, so if you change the name of network labels in XenServer
you need to update the labels in CloudStack.  Luckily this can be
accomplished easily in the UI.  See the documentation for details.  You
may want to try it a test environment first to develop a procedure that
will work for your specific use case and environment.

Best regards,
Kirk

On 11/30/2014 06:25 AM, Tejas Sheth wrote:
 Hi Abhisek,
 
we want to remove existing virtual nics and start using FCoE traffic
 with 2 10G network. also we want to break existing bonding and we also want
 to change network label.
 
  Is there any way to reconfigure physical network without re-configuring
 cloudstack?
 Thanks and regards,
 Tejas
 
 On Sun, Nov 30, 2014 at 5:26 PM, abhisek basu abhisekb...@msn.com wrote:
 
 Can you please list the exact modifications you are want to perform? Also,
 a brief description of present scenario would help.

 Sent from my iPhone

 On 30 Nov 2014, at 1:40 pm, Tejas Sheth tshet...@gmail.com wrote:

 Hello guyz,

  Really appriciate any help or link for recommendateion about cloudstack
 maintainance for xenserver network modification(bonding or network
 labling).
 What are the setps we should follow in cloudstack before we modify the
 network in xenserver?

 Thanks and regards,
 Tejas.

 On Sat, Nov 29, 2014 at 7:31 PM, Tejas Sheth tshet...@gmail.com
 wrote:

 Hello,

 Is it possible to reconfigure  network configuration (eg. creation
 of
 bondeding, network port lable change etc.)in xenserver cluster which is
 being managed by cloudstack ?

 What is the procedure for the same?

 Thanks,
 Tejas


 


Re: Copie Template

2014-11-29 Thread Kirk Kosinski
It could be anything.  Did you check the logs?  What is the error message?

Best regards,
Kirk

On 11/27/2014 09:01 AM, Fedi Ben Ali wrote:
 Hello ,
 
 I'm trying to copy a template from one zone to one other but cloudstack
 keeps replaying by error message.
 did any one already faces this issue ?
 
 
 Best Regards.
 


Re: VMs not Expunging

2014-11-26 Thread Kirk Kosinski
Hi, if the disks and storage are gone you can hack the database to force
them out of the system.  Just set the volumes for the affected VMs as
state = Expunged and removed = now() and hopefully CloudStack will be
able to expunge the VMs fully (i.e. they'll disappear from the UI).  Of
course be careful when doing anything in the db (take a backup first, etc.).

Best regards,
Kirk

On 11/25/2014 08:51 AM, Brent Clark wrote:
 Thanks for all the responses everyone.
 
 Version of CS = 4.2.1
 Status of Primary storage = unused, all VMs on local storage
 
 The VMs that wont expunge were on a CS host that doesnt exist anymore. The
 VMs were stored on local storage on that CS host. The VMs files dont exist
 anymore.
 
 -- Forwarded message --
 From: Kirk Kosinski kirkkosin...@gmail.com
 To: users@cloudstack.apache.org
 Cc:
 Date: Mon, 24 Nov 2014 22:20:20 -0800
 Subject: Re: VMs not Expunging
 Hi, Brent.  What version of CS is this, and what is the status of the
 primary storage for the VMs?  Were they on local storage (i.e. are the
 VM disks all gone along with the dead host)?
 
 Best regards,
 Kirk
 


Re: The specified pod is in avoid set, returning

2014-11-26 Thread Kirk Kosinski
Hi, avoid set messages indicate some error occurred earlier in the
job, so to find the real error you need to continue looking (i.e. scroll
up in the log).  I did this and found:

2014-11-26 16:14:47,834 DEBUG [c.c.a.t.Request]
(AgentManager-Handler-11:null) Seq 33-995164179: Processing:  { Ans: ,
MgmtId: 90581290632, via: 33, Ver: v1, Flags: 110,
[{com.cloud.agent.api.Answer:{result:false,details:ssh: connect
to host 169.254.3.192 port 3922: No route to host,wait:0}}] }

The Virtual Router (r-167-VM) has some kind of problem that is
preventing the host from connecting to it over SSH.  You can log into
the VR console to see if you can find why the host cannot reach it on
the NIC with 169.254.3.192, but the fastest solution is probably to just
recreate the VR (assuming there are no other problems in the environment).

There are two ways to recreate a VR.

1) Destroy it in the CloudStack UI or API and start a VM in the network
(such as the affected VM, i-31-168-VM).
2) Restart the network with cleanup enabled, also via the UI or API.

The eventual capacity error is misleading, but it sort of makes sense
when you look at what happened.  After the VR problem blocked CloudStack
from starting the VM on the selected host, the pod was put into the
avoid set and CloudStack looked for somewhere else to put the VM.  It
could not find capacity elsewhere and thus reports insufficient capacity.

Best regards,
Kirk

On 11/26/2014 08:16 AM, veera wrote:
 Hi,
 
 I have working cloudstack setup with 1 zone - 1 pod - 2 clusters.
 Now I am getting the error Unable to start a VM due to insufficient
 capacity when i try to start a VM.
 
 the log says The specified pod is in avoid set, returning.
 Any hints?
 
 thanks.


Re: DNS search order

2014-11-26 Thread Kirk Kosinski
Hi, did you try updating a zone with the desired dnssearchorder to see
if it works?  If there is no such option in the UI, use the API with
cloudmonkey or a similar tool.  It might only get applied to new VRs so
try creating a new network or destroying and recreating a VR for an
existing network.

Best regards,
Kirk

On 11/26/2014 05:29 AM, STEENBLIK Jason wrote:
 Thought I'd give it one more attempt. Anybody know how to give additional DNS 
 search domains to guests?
 
 Thanks
 
 -Original Message-
 From: STEENBLIK Jason [mailto:jason.steenb...@leonteq.com]
 Sent: 21 November 2014 15:43
 To: users@cloudstack.apache.org
 Subject: DNS search order
 
 I have a couple of basic zones and I'd like to set the DNS search suffix. I 
 see that it appears there used to be a dnssearchorder property for a zone. 
 Does anyone know if this still works, or if there is another way to give 
 guests a list of DNS domains to search?
 
 Many Thanks,
 Jason
 
 
 
 === The Leonteq Mail Gateway made the following annotation ===
 
 This e-mail is confidential. If you are not the intended recipient, you should
 
 not copy it, re-transmit it, use it or disclose its contents, but should
 
 return it to the sender immediately and delete the copy from your system.
 
 Leonteq Securities is not responsible for, nor endorses, any opinion,
 
 recommendation, conclusion, solicitation, offer or agreement or any
 
 information contained in this communication.
 
 Leonteq Securities cannot accept any responsibility for the accuracy or
 
 completeness of this message as it has been transmitted over a public network.
 
 If you suspect that the message may have been intercepted or amended, please
 
 call the sender. Should you require any further information, please contact
 
 the Compliance Manager on 
 complia...@leonteq.commailto:complia...@leonteq.com.
 
 
 
 ==
 


Re: VmWare -- VLAN number limit

2014-11-19 Thread Kirk Kosinski
Hi, I'm not aware of any limits imposed by CloudStack.  However you
should be careful since at least one VLAN ID is reserved for special
purposes in vSphere.  Specifically VLAN 4095 enables VGT mode for the VM
NICs, which has serious security implications.  I haven't tried using
this in recent versions of CloudStack, but older versions do allow it.

Best regards,
Kirk

On 11/19/2014 12:09 AM, Vadim Kimlaychuk wrote:
 Hello all,
 
 I saw the table in CS docs with limits of VLANs number depending 
 on hypervisor. I can roughly remember that XenServer and KVM can use entire 
 range of 0-4096, but VmWare (or vCenter) can address less. Can’t find this 
 information anymore.
 
 People who use VmWare and vCenter – does this limit still exist? 
 Or this is not the case anymore?
 
 Thank you,
 
 Vadim
 



Re: Assign multiple users to a single virtual machine

2014-11-18 Thread Kirk Kosinski
Hi, projects are the likely solution, but keep in mind that VMs are
owned by accounts and not users, and that you can create multiple users
in one account.  Any user in an account can therefore access the VMs
created by any other user in the account.

Best regards,
Kirk

On 11/17/2014 11:38 PM, Tilak Raj Singh wrote:
 Thanks Geoff I will surely try this feature and get back incase I face any
 problems
 
 Regards
 
 On Tue, Nov 18, 2014 at 12:59 PM, Geoff Higginbottom 
 geoff.higginbot...@shapeblue.com wrote:
 
 Hi Tilak

 This is exactly the use case for the Projects feature.  As long as the
 accounts your two users belong to are in the same domain you can create a
 project and add them both to it.  Any VMS created belong to the project and
 you can add and remove users at will.

 Regards

 Geoff Higginbottom
 CTO / Cloud Architect

 D: +44 20 3603 0542tel:+442036030542 | S: +44 20 3603
 0540tel:+442036030540 | M: +447968161581tel:+447968161581

 geoff.higginbot...@shapeblue.commailto:geoff.higginbot...@shapeblue.com
 | www.shapeblue.comhtp://www.shapeblue.com/ | Twitter:@cloudstackguru
 https://twitter.com/#!/cloudstackguru

 ShapeBlue Ltd, 53 Chandos Place, Covent Garden, London, WC2N
 4HSx-apple-data-detectors://5


 On 17 Nov 2014, at 23:15, Tilak Raj Singh tila...@gmail.commailto:
 tila...@gmail.com wrote:

 Hi..
 I was wondering if I can assign same virtual machine to multiple users so
 that they can access it from there UI.

 For example:-
 I have a machine i-2-3-vm running centos and two users user1 and user2
 Now I want that when user1 or user2 logs into cloudstack they both can see
 this i-2-3-vm on there interface and they both can access the machine via
 browser on clicking the console button..

 Is such a thing possible with the current cloudstack architecture anyhow?
 If yes please let me know how to do it.

 Regards
 Find out more about ShapeBlue and our range of CloudStack related services

 IaaS Cloud Design  Build
 http://shapeblue.com/iaas-cloud-design-and-build//
 CSForge - rapid IaaS deployment frameworkhttp://shapeblue.com/csforge/
 CloudStack Consultinghttp://shapeblue.com/cloudstack-consultancy/
 CloudStack Software Engineering
 http://shapeblue.com/cloudstack-software-engineering/
 CloudStack Infrastructure Support
 http://shapeblue.com/cloudstack-infrastructure-support/
 CloudStack Bootcamp Training Courses
 http://shapeblue.com/cloudstack-training/

 This email and any attachments to it may be confidential and are intended
 solely for the use of the individual to whom it is addressed. Any views or
 opinions expressed are solely those of the author and do not necessarily
 represent those of Shape Blue Ltd or related companies. If you are not the
 intended recipient of this email, you must neither take any action based
 upon its contents, nor copy or show it to anyone. Please contact the sender
 if you believe you have received this email in error. Shape Blue Ltd is a
 company incorporated in England  Wales. ShapeBlue Services India LLP is a
 company incorporated in India and is operated under license from Shape Blue
 Ltd. Shape Blue Brasil Consultoria Ltda is a company incorporated in Brasil
 and is operated under license from Shape Blue Ltd. ShapeBlue SA Pty Ltd is
 a company registered by The Republic of South Africa and is traded under
 license from Shape Blue Ltd. ShapeBlue is a registered trademark.

 


Re: revert to snapshot doen't work

2014-11-07 Thread Kirk Kosinski
Hi, there is an error from the hypervisor (XenServer):

The uuid you supplied was invalid.

Unfortunately something must have gone wrong when creating the snapshot
as it is not being found.  Do you have the log from when the snapshot
was created?

Best regards,
Kirk

On 11/03/2014 04:42 AM, clement mutz wrote:
 
 
 hi community, 
 
 
 
 I have a bug with revert to snapshot for just ONE snaphost. 
 
 
 
 Steps to reproduce : 
 1° Create a snpahost. 
 2° Revert to snapshot. 
 3° Vm restart and after doesn't start. 
 In log file we can see, vm doesn't revert to snapshot. 
 I had to create severale Snapshot and that work with other snapshot. Doesn't 
 work just with this snapshot. 
 Thanks for your help, 
 Log file : http://pastebin.com/LLqSnrsa 
 
 
 



Re: adding first POD in test environment

2014-10-27 Thread Kirk Kosinski
Hi, Scot.  The add pod wizard needs the management network details for
the hypervisors in the pod.  This network is sometimes called the
private network in CloudStack (database, docs, etc.).  The reason is
that CloudStack needs some IPs in this network for its own use.

Basically, the gateway and netmask should be the same as the management
interface of the hosts in the pod, but the IP range should be some free,
unused IPs in the network.  Of course you haven't actually added hosts
yet, so you should not continue with creating a pod until you have
configured IP on the hosts or at least decided what the IP configuration
will be.

For more explanation check:

http://docs.cloudstack.apache.org/projects/cloudstack-installation/en/latest/configuration.html#adding-a-pod

And:

http://docs.cloudstack.apache.org/en/latest/concepts.html?highlight=about%20pods#system-reserved-ip-addresses

Best regards,
Kirk

On 10/27/2014 01:39 PM, scot gabriel wrote:
 I'm being prompted for initial setup info and I don't know if I'm supposed
 to define a new /24 range of IP's and gateway that will be setup later or
 somehow base it on existing management server IP address info?  server ip
 10.0.2.15
 
 it's asking:
 Add Pod
 name: podHQ01
 gateway:
 netmask:
 ip range:
 
 please advice.
 --
 Scot Gabriel
 IRC (devildog31415 on irc.freenode.net)
 
 pgp.mit.edu (0xcfe3d15c891fca57)
 


Re: Broken update from 4.4 to 4.4.1

2014-10-24 Thread Kirk Kosinski
Hi, the error below indicates a problem with the sudo config.  Make sure
/etc/sudoers has a line like:

cloud ALL =NOPASSWD : ALL

Best regards,
Kirk

On 10/23/2014 01:05 PM, Matthew Midgett wrote:
 2014-10-23 15:21:52,943 INFO  [c.c.s.ConfigurationServerImpl] (main:null) 
 Processing updateSSLKeyStore
 2014-10-23 15:21:52,948 INFO  [c.c.s.ConfigurationServerImpl] (main:null) SSL 
 keystore located at /etc/cloudstack/management/cloud.keystore
 2014-10-23 15:21:52,951 DEBUG [c.c.u.s.Script] (main:null) Executing: sudo 
 keytool -genkey -keystore /etc/cloudstack/management/cloud.keystore 
 -storepass vmops.com -keypass vmops.com -keyalg RSA -validity 3650 -dname 
 cn=Cloudstack 
 User,ou=chlt.charlottecolo.com,o=chlt.charlottecolo.com,c=Unknown 
 2014-10-23 15:21:52,988 DEBUG [c.c.u.s.Script] (main:null) Exit value is 1
 2014-10-23 15:21:52,989 DEBUG [c.c.u.s.Script] (main:null) sudo: no tty 
 present and no askpass program specified
 2014-10-23 15:21:52,991 WARN  [c.c.s.ConfigurationServerImpl] (main:null) 
 Would use fail-safe keystore to continue.
 java.io.IOException: Fail to generate certificate!: sudo: no tty present and 
 no askpass program specified
   at 
 com.cloud.server.ConfigurationServerImpl.generateDefaultKeystore(ConfigurationServerImpl.java:595)
   at 
 com.cloud.server.ConfigurationServerImpl.updateSSLKeystore(ConfigurationServerImpl.java:623)
   at 
 com.cloud.server.ConfigurationServerImpl.persistDefaultValues(ConfigurationServerImpl.java:299)
   at 
 com.cloud.server.ConfigurationServerImpl.configure(ConfigurationServerImpl.java:164)
   at 
 org.apache.cloudstack.spring.lifecycle.CloudStackExtendedLifeCycle$3.with(CloudStackExtendedLifeCycle.java:114)
   at 
 org.apache.cloudstack.spring.lifecycle.CloudStackExtendedLifeCycle.with(CloudStackExtendedLifeCycle.java:153)
   at 
 org.apache.cloudstack.spring.lifecycle.CloudStackExtendedLifeCycle.configure(CloudStackExtendedLifeCycle.java:110)
   at 
 org.apache.cloudstack.spring.lifecycle.CloudStackExtendedLifeCycle.start(CloudStackExtendedLifeCycle.java:56)
   at 
 org.springframework.context.support.DefaultLifecycleProcessor.doStart(DefaultLifecycleProcessor.java:167)
   at 
 org.springframework.context.support.DefaultLifecycleProcessor.access$200(DefaultLifecycleProcessor.java:51)
   at 
 org.springframework.context.support.DefaultLifecycleProcessor$LifecycleGroup.start(DefaultLifecycleProcessor.java:339)
   at 
 org.springframework.context.support.DefaultLifecycleProcessor.startBeans(DefaultLifecycleProcessor.java:143)
   at 
 org.springframework.context.support.DefaultLifecycleProcessor.onRefresh(DefaultLifecycleProcessor.java:108)
   at 
 org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:945)
   at 
 org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:482)
   at 
 org.apache.cloudstack.spring.module.model.impl.DefaultModuleDefinitionSet.loadContext(DefaultModuleDefinitionSet.java:145)
   at 
 org.apache.cloudstack.spring.module.model.impl.DefaultModuleDefinitionSet$2.with(DefaultModuleDefinitionSet.java:122)
   at 
 org.apache.cloudstack.spring.module.model.impl.DefaultModuleDefinitionSet.withModule(DefaultModuleDefinitionSet.java:245)
   at 
 org.apache.cloudstack.spring.module.model.impl.DefaultModuleDefinitionSet.withModule(DefaultModuleDefinitionSet.java:250)
   at 
 org.apache.cloudstack.spring.module.model.impl.DefaultModuleDefinitionSet.withModule(DefaultModuleDefinitionSet.java:250)
   at 
 org.apache.cloudstack.spring.module.model.impl.DefaultModuleDefinitionSet.withModule(DefaultModuleDefinitionSet.java:233)
   at 
 org.apache.cloudstack.spring.module.model.impl.DefaultModuleDefinitionSet.loadContexts(DefaultModuleDefinitionSet.java:117)
   at 
 org.apache.cloudstack.spring.module.model.impl.DefaultModuleDefinitionSet.load(DefaultModuleDefinitionSet.java:79)
   at 
 org.apache.cloudstack.spring.module.factory.ModuleBasedContextFactory.loadModules(ModuleBasedContextFactory.java:37)
   at 
 org.apache.cloudstack.spring.module.factory.CloudStackSpringContext.init(CloudStackSpringContext.java:70)
   at 
 org.apache.cloudstack.spring.module.factory.CloudStackSpringContext.init(CloudStackSpringContext.java:57)
   at 
 org.apache.cloudstack.spring.module.factory.CloudStackSpringContext.init(CloudStackSpringContext.java:61)
   at 
 org.apache.cloudstack.spring.module.web.CloudStackContextLoaderListener.contextInitialized(CloudStackContextLoaderListener.java:52)
   at 
 org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4210)
   at 
 org.apache.catalina.core.StandardContext.start(StandardContext.java:4709)
   at 
 org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
   at 
 org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
  

Re: Broken update from 4.4 to 4.4.1

2014-10-24 Thread Kirk Kosinski
Right, it is not ideal, though it was like that for a long time (since
at least CS 2.x).  I see that the sudo config was changed recently to be
more locked down, but it did not include keytool due to CLOUDSTACK-1389.
 I checked a 4.3 setup which was upgraded from 4.2 and it still has the
old unrestricted config so I guess CS never updates it, and anyone who
installed a version with a sudo config missing keytool will probably hit
this same problem eventually (whenever keytool is run).

Best regards,
Kirk


On 10/24/2014 03:06 PM, Ian Duffy wrote:
 cloud ALL =NOPASSWD : ALL
 
 This is dangerous advice. It grants the cloud user full sudo access without
 the requirement of a password.
 
 The following gives more limited access and should allow cloudstack to
 function accordingly:
 
 cloud ALL =NOPASSWD : /bin/chmod, /bin/cp, /bin/mkdir, /bin/mount,
 /bin/umount, /usr/bin/keytool
 
 On 24 October 2014 18:44, Andrija Panic andrija.pa...@gmail.com wrote:
 
 Just did quick management server ACS 4.4.1 installation on free server:
 cloud ALL =NOPASSWD : /bin/chmod, /bin/cp, /bin/mkdir, /bin/mount,
 /bin/umount, /usr/bin/keytool

 that is what it looks like in ACS 4.4.1
 clean install of ACS 4.4.1 works...

 On 24 October 2014 19:35, Andrija Panic andrija.pa...@gmail.com wrote:

 like this:

 Defaults:cloud !requiretty
 cloud ALL =NOPASSWD : ALL

 and let us know if the upgtade still fails - it does fail for me with no
 understandable error...
 thx

 On 24 October 2014 19:28, Matthew Midgett 
 clouds...@trick-solutions.com.invalid wrote:

 This is what is in my sudoers file

 cloud ALL =NOPASSWD : /bin/chmod, /bin/cp, /bin/mkdir, /bin/mount,
 /bin/umount

 Should I change it?

 -Original Message-
 From: Kirk Kosinski [mailto:kirkkosin...@gmail.com]
 Sent: Friday, October 24, 2014 5:23 AM
 To: users@cloudstack.apache.org
 Subject: Re: Broken update from 4.4 to 4.4.1

 Hi, the error below indicates a problem with the sudo config.  Make sure
 /etc/sudoers has a line like:

 cloud ALL =NOPASSWD : ALL

 Best regards,
 Kirk

 On 10/23/2014 01:05 PM, Matthew Midgett wrote:
 2014-10-23 15:21:52,943 INFO  [c.c.s.ConfigurationServerImpl]
 (main:null) Processing updateSSLKeyStore
 2014-10-23 15:21:52,948 INFO  [c.c.s.ConfigurationServerImpl]
 (main:null) SSL keystore located at
 /etc/cloudstack/management/cloud.keystore
 2014-10-23 15:21:52,951 DEBUG [c.c.u.s.Script] (main:null) Executing:
 sudo keytool -genkey -keystore /etc/cloudstack/management/cloud.keystore
 -storepass vmops.com -keypass vmops.com -keyalg RSA -validity 3650
 -dname cn=Cloudstack User,ou=chlt.charlottecolo.com,o=
 chlt.charlottecolo.com,c=Unknown
 2014-10-23 15:21:52,988 DEBUG [c.c.u.s.Script] (main:null) Exit value
 is 1
 2014-10-23 15:21:52,989 DEBUG [c.c.u.s.Script] (main:null) sudo: no
 tty present and no askpass program specified
 2014-10-23 15:21:52,991 WARN  [c.c.s.ConfigurationServerImpl]
 (main:null) Would use fail-safe keystore to continue.
 java.io.IOException: Fail to generate certificate!: sudo: no tty
 present and no askpass program specified
   at

 com.cloud.server.ConfigurationServerImpl.generateDefaultKeystore(ConfigurationServerImpl.java:595)
   at

 com.cloud.server.ConfigurationServerImpl.updateSSLKeystore(ConfigurationServerImpl.java:623)
   at

 com.cloud.server.ConfigurationServerImpl.persistDefaultValues(ConfigurationServerImpl.java:299)
   at

 com.cloud.server.ConfigurationServerImpl.configure(ConfigurationServerImpl.java:164)
   at

 org.apache.cloudstack.spring.lifecycle.CloudStackExtendedLifeCycle$3.with(CloudStackExtendedLifeCycle.java:114)
   at

 org.apache.cloudstack.spring.lifecycle.CloudStackExtendedLifeCycle.with(CloudStackExtendedLifeCycle.java:153)
   at

 org.apache.cloudstack.spring.lifecycle.CloudStackExtendedLifeCycle.configure(CloudStackExtendedLifeCycle.java:110)
   at

 org.apache.cloudstack.spring.lifecycle.CloudStackExtendedLifeCycle.start(CloudStackExtendedLifeCycle.java:56)
   at

 org.springframework.context.support.DefaultLifecycleProcessor.doStart(DefaultLifecycleProcessor.java:167)
   at

 org.springframework.context.support.DefaultLifecycleProcessor.access$200(DefaultLifecycleProcessor.java:51)
   at

 org.springframework.context.support.DefaultLifecycleProcessor$LifecycleGroup.start(DefaultLifecycleProcessor.java:339)
   at

 org.springframework.context.support.DefaultLifecycleProcessor.startBeans(DefaultLifecycleProcessor.java:143)
   at

 org.springframework.context.support.DefaultLifecycleProcessor.onRefresh(DefaultLifecycleProcessor.java:108)
   at

 org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:945)
   at

 org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:482)
   at

 org.apache.cloudstack.spring.module.model.impl.DefaultModuleDefinitionSet.loadContext(DefaultModuleDefinitionSet.java:145

Re: Can't delete a VM

2014-10-22 Thread Kirk Kosinski
Hi, I'm not sure about this one.  Often these problems are caused by a
snapshot in a bad state, but if none are left in the UI it doesn't seem
likely.  Are there any scheduled snapshots configured for any of the VM
volumes?  A TRACE-enabled log might provide more detail.

Best regards,
Kirk

On 10/18/2014 01:44 AM, sebgoa wrote:
 Kirk, any thoughts on this ?
 
 On Oct 3, 2014, at 3:48 PM, clement mutz c.m...@servitics.fr wrote:
 
 Hello community. 

 I have cloudstack 4.3 with xen 6.2. 

 I can't delete ONE VM and I don't know why  I deleted all snapshosts. 

 log : http://pastebin.com/Sugtykjn 

 Can you help me ? 

 Thank you for your help. 

 Clement 
 


Re: Fwd: Guest VM with Multiple Networks on single VR (Virtual Router)

2014-10-16 Thread Kirk Kosinski
Hi, Abdul.  In your previous message you wrote:

 I want to add additional
 physical NIC to VM without mention IPs and service offering from
 cloudstack

To me this sounds like you want to make changes directly to a VM at the
hypervisor level, so I was trying to explain that this won't work as
CloudStack can and will undo any such changes.  You will need to add
every network to CloudStack that you want CloudStack-managed VMs to use.
 As I explained earlier you may be required to input the IP addresses in
CloudStack, but that range will not be used if the network offering has
DHCP disabled; thus you can configure the NIC in the VM OS with any
static IP address you want.

Best regards,
Kirk

On 10/14/2014 05:04 AM, Abdul Rasool wrote:
 Hi Kirk,
 
 I think we both are not on the same page, could you please go through my
 below emails and let me know is my question is clear to you. if so please
 help to configure this scenario.
 
 Thanks in advance.
 AR
 
 On Tue, Oct 14, 2014 at 12:56 AM, Kirk Kosinski kirkkosin...@gmail.com
 wrote:
 
 Hi, all VM configuration needs to be done in CloudStack, otherwise it
 will be undone by CloudStack under various common circumstance (reboot,
 stop/start, etc.).

 Best regards,
 Kirk

 On 10/13/2014 04:03 AM, Abdul Rasool wrote:
 Hi Kirk

 Thanks for your reply,

 adding to some more points on the same case I want to add additional
 physical NIC to VM without mention IPs and service offering from
 cloudstack
 is that possible ?. in my case I have 1 VM which has public NIC and need
 one more additional physical NIC for internal use. on the WAN side every
 thing is working as expected in the same VM I would need to add one more
 physical NIC which I need to manually configure IPs in different range
 apart from the default CIDR.(Eg - connecting to different network over
 MPLS) meaning one guest VM will have two network one towards to public
 with
 default CIDR and other network towards to MPLS on different IP range, is
 that possible if so could you please assist me on this.

 Thanks
 AR

 On Sat, Oct 11, 2014 at 9:46 AM, Kirk Kosinski kirkkosin...@gmail.com
 wrote:

 Hi, as I said before you may still be required to input an IP range when
 creating the network, but it won't be used if DHCP is disabled for the
 network.  So just input any IP range when creating the network and then
 configure the desired IP address in the VM.

 Best regards,
 Kirk


 On 10/10/2014 11:41 AM, Abdul Rasool wrote:
 Hi Kirk

 Thanks for your response
 I have tried creating service offering  without dhcp but while creating
 guest network its forcing me to mention IP range. My requirement  is
 that i
 will get only 1 IP from each branch network that I have to configure in
 guest VM directly. In the branch network switch is created with
 multiple
 L2
 vlans. Please guide me how to setup this network.

 I hope you have seen my model network diagram which  i have uploaded in
 google drive.

 Thx in advance
 AR.
  On 10 Oct 2014 22:42, Kirk Kosinski kirkkosin...@gmail.com wrote:

 Hi, if you don't want DHCP for your branch office network you need to
 create a Network Offering without DHCP and select that offering when
 adding the network in CloudStack.  You may still be required to input
 an
 IP range when creating the network, but CloudStack won't be able to
 assign the IPs with DHCP disabled.

 Best regards,
 Kirk

 On 10/10/2014 05:06 AM, Abdul Rasool wrote:
 Hi All,



 I am new to Cloudstack I would required your help to achieve my
 advanced
 networking configuration. right now I am using CS-4.4.0 management
 server
 with Mysql DB on it. I have 2 computing server with multiple NICs to
 test
 my environment. As per the study guide I could able to test all the
 functionality except my topology point view. Basically I would need
 my
 guest VM to have 2 Physical NICs one towards to Internet (eth0)  VM
 to
 VM
 communication and other Physical NIC (eth1) for my branch office
 connectivity without configuring gateway on the interface. I will
 manually
 add route on the VM. I have tried all the possibility ways with my
 poor
 knowledge on the CS I could not able to add guest network without
 mentioning IP range on the UI also cloudmonkey.  I want to configure
 IPs
 on
 the eth1 nic (Branch network) manually without getting IPs from DHCP,
 could
 someone please guide me on this.  We are already running similar
 setup
 on
 VMware I hope this can be done on cloudstack as well.



 Configuration details.



 Management Server / computing server is running on Ubuntu detail are
 below.



 Distributor ID: Ubuntu

 Description: Ubuntu 12.04.5 LTS

 Release: 12.04

 Codename: precise

 Virtualization is on = KVM

 Guest VM OS = Windows -7, CentOS



 I have attached detailed diagram for your better understanding,
 please
 help
 me to configure my scenario.


 Please find this below link for network diagram.




 https://drive.google.com/file/d/0B_WdtmbCAFl4bW91d1VPajFzdkk/view?usp=sharing



 Thanks in Advance

Re: Fwd: Guest VM with Multiple Networks on single VR (Virtual Router)

2014-10-16 Thread Kirk Kosinski
Please provide the complete details of the Network Offering you are
trying to use.

Best regards,
Kirk

On 10/16/2014 05:36 AM, Abdul Rasool wrote:
 Hi Kirk,
 
 Thanks for your suggestion,
 
 I have tried doing the same mentioning some IPs with service offering which
 has not selected any of the cloudstack service in the list,  account
 specified.  I get this below error Network offering with specified id
 doesn't support adding multiple ip ranges
 
 
 This I have tried on Admin UI -- Infrastructure -- Zone-- POD--
 physical NIC -- Guest--- Network -- add guest Network.
 
 
 Please guide me why I am not able to add this new network on ACS.
 
 Regards,
 AR
 
 
 On Thu, Oct 16, 2014 at 2:12 PM, Kirk Kosinski kirkkosin...@gmail.com
 wrote:
 
 Hi, Abdul.  In your previous message you wrote:

 I want to add additional
 physical NIC to VM without mention IPs and service offering from
 cloudstack

 To me this sounds like you want to make changes directly to a VM at the
 hypervisor level, so I was trying to explain that this won't work as
 CloudStack can and will undo any such changes.  You will need to add
 every network to CloudStack that you want CloudStack-managed VMs to use.
  As I explained earlier you may be required to input the IP addresses in
 CloudStack, but that range will not be used if the network offering has
 DHCP disabled; thus you can configure the NIC in the VM OS with any
 static IP address you want.

 Best regards,
 Kirk

 On 10/14/2014 05:04 AM, Abdul Rasool wrote:
 Hi Kirk,

 I think we both are not on the same page, could you please go through my
 below emails and let me know is my question is clear to you. if so please
 help to configure this scenario.

 Thanks in advance.
 AR

 On Tue, Oct 14, 2014 at 12:56 AM, Kirk Kosinski kirkkosin...@gmail.com
 wrote:

 Hi, all VM configuration needs to be done in CloudStack, otherwise it
 will be undone by CloudStack under various common circumstance (reboot,
 stop/start, etc.).

 Best regards,
 Kirk

 On 10/13/2014 04:03 AM, Abdul Rasool wrote:
 Hi Kirk

 Thanks for your reply,

 adding to some more points on the same case I want to add additional
 physical NIC to VM without mention IPs and service offering from
 cloudstack
 is that possible ?. in my case I have 1 VM which has public NIC and
 need
 one more additional physical NIC for internal use. on the WAN side
 every
 thing is working as expected in the same VM I would need to add one
 more
 physical NIC which I need to manually configure IPs in different range
 apart from the default CIDR.(Eg - connecting to different network over
 MPLS) meaning one guest VM will have two network one towards to public
 with
 default CIDR and other network towards to MPLS on different IP range,
 is
 that possible if so could you please assist me on this.

 Thanks
 AR

 On Sat, Oct 11, 2014 at 9:46 AM, Kirk Kosinski kirkkosin...@gmail.com

 wrote:

 Hi, as I said before you may still be required to input an IP range
 when
 creating the network, but it won't be used if DHCP is disabled for the
 network.  So just input any IP range when creating the network and
 then
 configure the desired IP address in the VM.

 Best regards,
 Kirk


 On 10/10/2014 11:41 AM, Abdul Rasool wrote:
 Hi Kirk

 Thanks for your response
 I have tried creating service offering  without dhcp but while
 creating
 guest network its forcing me to mention IP range. My requirement  is
 that i
 will get only 1 IP from each branch network that I have to configure
 in
 guest VM directly. In the branch network switch is created with
 multiple
 L2
 vlans. Please guide me how to setup this network.

 I hope you have seen my model network diagram which  i have uploaded
 in
 google drive.

 Thx in advance
 AR.
  On 10 Oct 2014 22:42, Kirk Kosinski kirkkosin...@gmail.com
 wrote:

 Hi, if you don't want DHCP for your branch office network you need
 to
 create a Network Offering without DHCP and select that offering when
 adding the network in CloudStack.  You may still be required to
 input
 an
 IP range when creating the network, but CloudStack won't be able to
 assign the IPs with DHCP disabled.

 Best regards,
 Kirk

 On 10/10/2014 05:06 AM, Abdul Rasool wrote:
 Hi All,



 I am new to Cloudstack I would required your help to achieve my
 advanced
 networking configuration. right now I am using CS-4.4.0 management
 server
 with Mysql DB on it. I have 2 computing server with multiple NICs
 to
 test
 my environment. As per the study guide I could able to test all the
 functionality except my topology point view. Basically I would need
 my
 guest VM to have 2 Physical NICs one towards to Internet (eth0) 
 VM
 to
 VM
 communication and other Physical NIC (eth1) for my branch office
 connectivity without configuring gateway on the interface. I will
 manually
 add route on the VM. I have tried all the possibility ways with my
 poor
 knowledge on the CS I could not able to add guest network without
 mentioning IP range on the UI also cloudmonkey.  I want

Re: Fwd: Guest VM with Multiple Networks on single VR (Virtual Router)

2014-10-13 Thread Kirk Kosinski
Hi, all VM configuration needs to be done in CloudStack, otherwise it
will be undone by CloudStack under various common circumstance (reboot,
stop/start, etc.).

Best regards,
Kirk

On 10/13/2014 04:03 AM, Abdul Rasool wrote:
 Hi Kirk
 
 Thanks for your reply,
 
 adding to some more points on the same case I want to add additional
 physical NIC to VM without mention IPs and service offering from cloudstack
 is that possible ?. in my case I have 1 VM which has public NIC and need
 one more additional physical NIC for internal use. on the WAN side every
 thing is working as expected in the same VM I would need to add one more
 physical NIC which I need to manually configure IPs in different range
 apart from the default CIDR.(Eg - connecting to different network over
 MPLS) meaning one guest VM will have two network one towards to public with
 default CIDR and other network towards to MPLS on different IP range, is
 that possible if so could you please assist me on this.
 
 Thanks
 AR
 
 On Sat, Oct 11, 2014 at 9:46 AM, Kirk Kosinski kirkkosin...@gmail.com
 wrote:
 
 Hi, as I said before you may still be required to input an IP range when
 creating the network, but it won't be used if DHCP is disabled for the
 network.  So just input any IP range when creating the network and then
 configure the desired IP address in the VM.

 Best regards,
 Kirk


 On 10/10/2014 11:41 AM, Abdul Rasool wrote:
 Hi Kirk

 Thanks for your response
 I have tried creating service offering  without dhcp but while creating
 guest network its forcing me to mention IP range. My requirement  is
 that i
 will get only 1 IP from each branch network that I have to configure in
 guest VM directly. In the branch network switch is created with multiple
 L2
 vlans. Please guide me how to setup this network.

 I hope you have seen my model network diagram which  i have uploaded in
 google drive.

 Thx in advance
 AR.
  On 10 Oct 2014 22:42, Kirk Kosinski kirkkosin...@gmail.com wrote:

 Hi, if you don't want DHCP for your branch office network you need to
 create a Network Offering without DHCP and select that offering when
 adding the network in CloudStack.  You may still be required to input an
 IP range when creating the network, but CloudStack won't be able to
 assign the IPs with DHCP disabled.

 Best regards,
 Kirk

 On 10/10/2014 05:06 AM, Abdul Rasool wrote:
 Hi All,



 I am new to Cloudstack I would required your help to achieve my
 advanced
 networking configuration. right now I am using CS-4.4.0 management
 server
 with Mysql DB on it. I have 2 computing server with multiple NICs to
 test
 my environment. As per the study guide I could able to test all the
 functionality except my topology point view. Basically I would need my
 guest VM to have 2 Physical NICs one towards to Internet (eth0)  VM to
 VM
 communication and other Physical NIC (eth1) for my branch office
 connectivity without configuring gateway on the interface. I will
 manually
 add route on the VM. I have tried all the possibility ways with my poor
 knowledge on the CS I could not able to add guest network without
 mentioning IP range on the UI also cloudmonkey.  I want to configure
 IPs
 on
 the eth1 nic (Branch network) manually without getting IPs from DHCP,
 could
 someone please guide me on this.  We are already running similar setup
 on
 VMware I hope this can be done on cloudstack as well.



 Configuration details.



 Management Server / computing server is running on Ubuntu detail are
 below.



 Distributor ID: Ubuntu

 Description: Ubuntu 12.04.5 LTS

 Release: 12.04

 Codename: precise

 Virtualization is on = KVM

 Guest VM OS = Windows -7, CentOS



 I have attached detailed diagram for your better understanding, please
 help
 me to configure my scenario.


 Please find this below link for network diagram.



 https://drive.google.com/file/d/0B_WdtmbCAFl4bW91d1VPajFzdkk/view?usp=sharing



 Thanks in Advance.



 Abdul Rasool.

 +91 98865 18767




 


Re: ACS 4.2.1 - realhostip.com unable to access console Pleas click here for an importan msg

2014-10-13 Thread Kirk Kosinski
Hi, your hosts file entries are invalid.  The dots in the IPs in the
hostname need to be changed to hyphens.  e.g.

209.16.49.5 209-16-49-5.realhostip.com

Best regards,
Kirk

On 10/13/2014 01:47 PM, motty cruz wrote:
 Thanks Amogh,
 I still can't get it to work. I am using Ubuntu, my desktop that is. my
 co-worker is using windows and is working for him, he can access Instances.
 
 Thank you very much!
 Motty
 
 On Mon, Oct 13, 2014 at 1:27 PM, Amogh Vasekar amogh.vase...@citrix.com
 wrote:
 
 For 4.2 set-ups :
 You do not need the asterisk at the start of the config. Only 4.3.1+ need
 the asterisk. Please reset to realhostip.com and restart management
 server.

 Thanks
 Amogh

 On 10/13/14 12:58 PM, motty cruz motty.c...@gmail.com wrote:

 Thanks Nitin,

 this is how my /etc/hosts looks like:
 209.16.49.5 209.16.49.5.realhostip.com
 209.16.49.106 209.16.49.106.realhostip.com
 209.16.48.194 209.16.48.194.realhostip.com
 209.16.48.195 209.16.48.195.realhostip.com

 but I still can't get to the systems VMs (list is a lot longer)
 consoleproxy.url.domain
 *.realhostip.com

 secstorage.ssl.cert.domain
 *.realhostip.com

 secstorage.encrypt.copy
 false

 Do I need to change anything else?

 Thanks,
 Motty


 On Mon, Oct 13, 2014 at 11:38 AM, Nitin Mehta nitin.me...@citrix.com
 wrote:

 For every public ip(say xxx.xxx.xxx.xxx) of CPVM/SSMV in your system you
 need to add the entry in /etc/hosts in the following way.
 xxx.xxx.xxx.xxx xxx-xxx-xxx-xxx.realhostip.com

 This should be done by every user (who accesses consoles of vms or uses
 copy/download template functionalities) on their respective machines.

 Thanks,
 -Nitin

 On 13/10/14 10:41 AM, motty cruz motty.c...@gmail.com wrote:

 Hi Chiradeep, would you know how to get those DNS entries? I am a bit
 confuse but your solution seems simple and clean, I would like to
 implement
 until I upgrade that cluster to latest release.

 Thanks,
 Motty

 On Fri, Oct 10, 2014 at 7:08 PM, Chiradeep Vittal 
 chiradeep.vit...@citrix.com wrote:

 As I understand you need 4.3 at least for plain HTTP. I wonder if you
 can
 install the realhostip DNS entries on your local laptop and it would
 work
 for you (every user would have to do this)

 --
 Chiradeep

 On Oct 10, 2014, at 3:38 PM, motty cruz motty.c...@gmail.com
 wrote:

 Thanks Ian,
 I tried to use HTTP, so I turn off secstorage.encrypt.copy set to
 false
 but no luck, is there a work around in ACS 4.2.1 without setting up
 DNS?

 Thanks,
 Motty

 On Fri, Oct 10, 2014 at 3:26 PM, Ian Duffy i...@ianduffy.ie
 wrote:

 The realhostip service was retired.

 Please see:







 https://blogs.apache.org/cloudstack/entry/realhostip_service_is_being_ret
 ired






 http://shapeblue.com/cloudstack/retirement-of-the-realhostip-com-service/

 On 10 October 2014 23:12, motty cruz motty.c...@gmail.com
 wrote:

 Hello,
 I have Cloudstack 4.2.1 installed on production cluster and today
 when
 I
 tried to access console of instance I was not able to, I get the
 following
 Please click here for an important message

 Redirect me to The Apache Cloudstack Blog

 I change realhostip.com to *.realhostip.com but am still unable
 to
 access
 console.

 I have not done any changes to this cluster in a long time.

 any ideas?

 --
 Thanks for your support,
 Motty





 --
 Thanks for your support,
 Motty




 --
 Thanks for your support,
 Motty




 --
 Thanks for your support,
 Motty


 
 


Re: KVM console login

2014-10-12 Thread Kirk Kosinski
Hi, Ivan.  The VNC passwords are random and stored in encrypted form in
the CloudStack cloud database.  Get the ciphertext in the vnc_password
field for the VM in vm_instance, e.g.:

SELECT vnc_password FROM vm_instance WHERE uuid = 'ID from UI'

Decrypt it:

java -classpath /usr/share/cloudstack-common/lib/jasypt-1.9.0.jar
org.jasypt.intf.cli.JasyptPBEStringDecryptionCLI decrypt.sh
input=ciphertext password=database key verbose=false

And use it to connect via VNC.

Best regards,
Kirk

On 10/12/2014 04:36 PM, Ivan Rodriguez wrote:
 No no the system vm, any vm on 4.3.3 can't be accessed through KVM
 virt-manager console
 
 They all ask you for a password when you try to access the console
 
 
 On Mon, Oct 13, 2014 at 10:04 AM, Rafael Weingartner 
 rafaelweingart...@gmail.com wrote:
 
 you mean system vm ?

 On Sun, Oct 12, 2014 at 7:58 PM, Ivan Rodriguez ivan...@gmail.com wrote:

 Hi cloudstack fellows,

 I have some problem with one vm not coming online after an outage,
 so I'm trying to open the console from virt-manager host
 after clicking in the console icon the virt-manager console ask for a
 password
 I've tried all the possible passwords do you guys know what is the
 password
 to access the console directly through virt-manager ?


 Cheers




 --
 Rafael Weingärtner

 



Re: Using console VM's without realhostip.com domain name

2014-10-10 Thread Kirk Kosinski
Hi, in Global Settings set secstorage.ssl.cert.domain and
consoleproxy.url.domain to blank and secstorage.encrypt.copy to false
and restart the CloudStack service on all management servers.

Best regards,
Kirk


On 10/09/2014 08:22 PM, Amin wrote:
 Hello,
 
  
 
 Can anyone please advise how to use cloudstack 4.3.1 (upgraded version from
 2.2.14), how to use the console VM after deprecation of realhostip.com, we
 are not using SSL certificates. And we don't have domain name.
 
  
 
 Thanks in advance 
 
  
 
 


Re: Fwd: Guest VM with Multiple Networks on single VR (Virtual Router)

2014-10-10 Thread Kirk Kosinski
Hi, if you don't want DHCP for your branch office network you need to
create a Network Offering without DHCP and select that offering when
adding the network in CloudStack.  You may still be required to input an
IP range when creating the network, but CloudStack won't be able to
assign the IPs with DHCP disabled.

Best regards,
Kirk

On 10/10/2014 05:06 AM, Abdul Rasool wrote:
 Hi All,
 
 
 
 I am new to Cloudstack I would required your help to achieve my advanced
 networking configuration. right now I am using CS-4.4.0 management server
 with Mysql DB on it. I have 2 computing server with multiple NICs to test
 my environment. As per the study guide I could able to test all the
 functionality except my topology point view. Basically I would need my
 guest VM to have 2 Physical NICs one towards to Internet (eth0)  VM to VM
 communication and other Physical NIC (eth1) for my branch office
 connectivity without configuring gateway on the interface. I will manually
 add route on the VM. I have tried all the possibility ways with my poor
 knowledge on the CS I could not able to add guest network without
 mentioning IP range on the UI also cloudmonkey.  I want to configure IPs on
 the eth1 nic (Branch network) manually without getting IPs from DHCP, could
 someone please guide me on this.  We are already running similar setup on
 VMware I hope this can be done on cloudstack as well.
 
 
 
 Configuration details.
 
 
 
 Management Server / computing server is running on Ubuntu detail are below.
 
 
 
 Distributor ID: Ubuntu
 
 Description: Ubuntu 12.04.5 LTS
 
 Release: 12.04
 
 Codename: precise
 
 Virtualization is on = KVM
 
 Guest VM OS = Windows -7, CentOS
 
 
 
 I have attached detailed diagram for your better understanding, please help
 me to configure my scenario.
 
 
 Please find this below link for network diagram.
 
 https://drive.google.com/file/d/0B_WdtmbCAFl4bW91d1VPajFzdkk/view?usp=sharing
 
 
 
 Thanks in Advance.
 
 
 
 Abdul Rasool.
 
 +91 98865 18767
 


Re: Grub@boot on Xenserver - CS

2014-10-09 Thread Kirk Kosinski
Hi, the VM bootloader is bypassed for PV-enabled VMs on XenServer.  The
hypervisor reads the grub configuration file and loads the configured
kernel.  If you want to see a grub menu when booting a CloudStack VM you
have to configure it with an HVM OS Type (e.g. Other).

Best regards,
Kirk

On 10/09/2014 02:41 PM, Erdősi Péter wrote:
 Hello,
 
 I want to see the grub, when VM starting.
 I know, it's mainly depends on Xen, but maybe somebody know the solution
 :-)
 
 Thanks,
  Peter
 



Re: Does management server have to be able mount NSF Share on a storage network?

2014-09-26 Thread Kirk Kosinski
Hi, Sam.  Besides during (default) installation, the management server
only needs to access the secondary storage NFS share if you are using
vSphere since the management server propagates the systemvm.iso for
VMware hosts.  If you're using vSphere, just make sure the management
server can reach the NFS server and mount the share.  It doesn't need to
be on the same network as the NFS server.  Template uploading and
downloading is handled by the SSVM and not the management server.

Best regards,
Kirk

On 09/25/2014 10:32 AM, Sam Ceylani wrote:
 There is no documentation on requirements for separate storage network and 
 management server setup of
 this network (for secondary storage). Normally management network is used for 
 secondary storage but if we 
 create a separate storage network for secondary, do we have to add this new 
 network to management server also?
 make it accessible from it?
 
 There is some information on the internet about the requirement of not being 
 able to ping this storage
 network from management network and can somebody can explain this little 
 further?
 
 If we have a separate storage network, does it have to be accessible from 
 management server, since
 It does uploading and downloading templates through the web interface, Ty Sam 
 


Re: Does management server have to be able mount NSF Share on a storage network?

2014-09-26 Thread Kirk Kosinski
Hi, I'm not aware of a requirement for the management server to access
the secondary storage share when using XenServer.  However, the
XenServer hosts (and also VMware and KVM) definitely do need to mount
the secondary storage share.  You may need to add static routes in your
network or otherwise make sure the XenServer hosts can reach the NFS
server and mount the share.

Best regards,
Kirk

On 09/26/2014 06:21 AM, Sam Ceylani wrote:
 Hi Kirk,
 
 Thank you for your answer.We are using Citrix Xenserver 6.2 and for storage 
 server Freenas 9 with ZFS. I have been reading past emails on the list about 
 setting up storage network and they are talking about creating a static route 
 on their switches between management and storage networks and this seems to 
 be a requirement. So I guess this is for management server to access to 
 secondary storage, I personally tested twice (without this static route on 
 the switch, I didn't know this info back then) and CS 4.3 (I am using CS 4.4 
 now) was not able to start SSVM or Console Proxy servers and I decided to 
 just use management network to access secondary storage and it works out of 
 the box. So question is beside this requirement of initial install of system 
 VM from management server via systemvm download script (I mounted secondary 
 on management server and run this script, some people suggests using it from 
 the nfs nas server with -t template option to not to mount nfs on on 
 management serve
 r
), do we have to use a static route on our switches between management and 
storage network for secondary shares? this information is not in documentation 
and documentation has very conflicting information about pinging networks and 
some requirement of pings needs to fail etc. If you can explain this I would 
really appreciate it...Thanks again, Sam
 
 
 Thanks,
 
 Sam Ceylani, MBA
 Computer Engineer
 MisterCertified Inc.
 
 301 W. Platt St. Suite 447, Tampa, FL 33606x-apple-data-detectors://0/0
 P 813tel:813.264.6460.264.6460tel:813.264.6460 M 
 813tel:813.416.7867.416.7867tel:813.416.7867
 F 800tel:800.553.9520.553.9520tel:800.553.9520 E 
 sam.ceyl...@mistercertified.commailto:sam.ceyl...@mistercertified.com
 
 On Sep 26, 2014, at 6:18 AM, Kirk Kosinski 
 kirkkosin...@gmail.commailto:kirkkosin...@gmail.com wrote:
 
 Hi, Sam.  Besides during (default) installation, the management server
 only needs to access the secondary storage NFS share if you are using
 vSphere since the management server propagates the systemvm.iso for
 VMware hosts.  If you're using vSphere, just make sure the management
 server can reach the NFS server and mount the share.  It doesn't need to
 be on the same network as the NFS server.  Template uploading and
 downloading is handled by the SSVM and not the management server.
 
 Best regards,
 Kirk
 
 On 09/25/2014 10:32 AM, Sam Ceylani wrote:
 There is no documentation on requirements for separate storage network and 
 management server setup of
 this network (for secondary storage). Normally management network is used for 
 secondary storage but if we
 create a separate storage network for secondary, do we have to add this new 
 network to management server also?
 make it accessible from it?
 
 There is some information on the internet about the requirement of not being 
 able to ping this storage
 network from management network and can somebody can explain this little 
 further?
 
 If we have a separate storage network, does it have to be accessible from 
 management server, since
 It does uploading and downloading templates through the web interface, Ty Sam
 
 


Re: Does management server have to be able mount NSF Share on a storage network?

2014-09-26 Thread Kirk Kosinski
Hi, that procedure appears correct, but double-check the docs since they
might have some details about this.

Best regards,
Kirk

On 09/26/2014 10:42 AM, Sam Ceylani wrote:
 Hi Kirk,
 
 Thank you for your answer, I asked this question about creating static route 
 beween management and storage network requirement on citrix discussion forums 
 and it seems to be, (a citrix employee said) in the past this was a 
 requirement but recent versions of cloudstack (he didnt mention version 
 levels) it is no longer required and from cs coding point of view it is fixed 
 and no longer required.
 
 Yes we will dedicate a bond from xenserver to secondary storage device so 
 hypervisor will be able mount secondary storage.
 
 In our previous attempts we have seen cloudstack creating vlan network 
 automatically on hypervisor for its ssvm to use and access to secondary 
 storage. Now we need hypervisor to also be able to access to this secondary 
 storage. So I believe we should assign an ip address on xenserver using this 
 bonded storage interface with the same vlan tag. So we create a bond, create 
 a vlan network out of this bond, and assign ip on Xenserver using our new 
 vlan interface and that should take care of hypervisor connectivity and also 
 SSVM will use cloudstack's automatically created vlan tagged network out of 
 this same bind and cloudstack assigns an ip from storage pool ip to this SSVM 
 virtual interface, is that correct?
 
 Thanks again,
 
 sam
 
 Sent from my iPhone
 
 On Sep 26, 2014, at 1:17 PM, Kirk Kosinski kirkkosin...@gmail.com wrote:

 Hi, I'm not aware of a requirement for the management server to access
 the secondary storage share when using XenServer.  However, the
 XenServer hosts (and also VMware and KVM) definitely do need to mount
 the secondary storage share.  You may need to add static routes in your
 network or otherwise make sure the XenServer hosts can reach the NFS
 server and mount the share.

 Best regards,
 Kirk

 On 09/26/2014 06:21 AM, Sam Ceylani wrote:
 Hi Kirk,

 Thank you for your answer.We are using Citrix Xenserver 6.2 and for storage 
 server Freenas 9 with ZFS. I have been reading past emails on the list 
 about setting up storage network and they are talking about creating a 
 static route on their switches between management and storage networks and 
 this seems to be a requirement. So I guess this is for management server to 
 access to secondary storage, I personally tested twice (without this static 
 route on the switch, I didn't know this info back then) and CS 4.3 (I am 
 using CS 4.4 now) was not able to start SSVM or Console Proxy servers and I 
 decided to just use management network to access secondary storage and it 
 works out of the box. So question is beside this requirement of initial 
 install of system VM from management server via systemvm download script (I 
 mounted secondary on management server and run this script, some people 
 suggests using it from the nfs nas server with -t template option to not to 
 mount nfs on on management ser
 v
e
 r
 ), do we have to use a static route on our switches between management and 
 storage network for secondary shares? this information is not in 
 documentation and documentation has very conflicting information about 
 pinging networks and some requirement of pings needs to fail etc. If you can 
 explain this I would really appreciate it...Thanks again, Sam


 Thanks,

 Sam Ceylani, MBA
 Computer Engineer
 MisterCertified Inc.

 301 W. Platt St. Suite 447, Tampa, FL 33606x-apple-data-detectors://0/0
 P 813tel:813.264.6460.264.6460tel:813.264.6460 M 
 813tel:813.416.7867.416.7867tel:813.416.7867
 F 800tel:800.553.9520.553.9520tel:800.553.9520 E 
 sam.ceyl...@mistercertified.commailto:sam.ceyl...@mistercertified.com

 On Sep 26, 2014, at 6:18 AM, Kirk Kosinski 
 kirkkosin...@gmail.commailto:kirkkosin...@gmail.com wrote:

 Hi, Sam.  Besides during (default) installation, the management server
 only needs to access the secondary storage NFS share if you are using
 vSphere since the management server propagates the systemvm.iso for
 VMware hosts.  If you're using vSphere, just make sure the management
 server can reach the NFS server and mount the share.  It doesn't need to
 be on the same network as the NFS server.  Template uploading and
 downloading is handled by the SSVM and not the management server.

 Best regards,
 Kirk

 On 09/25/2014 10:32 AM, Sam Ceylani wrote:
 There is no documentation on requirements for separate storage network and 
 management server setup of
 this network (for secondary storage). Normally management network is used 
 for secondary storage but if we
 create a separate storage network for secondary, do we have to add this new 
 network to management server also?
 make it accessible from it?

 There is some information on the internet about the requirement of not 
 being able to ping this storage
 network from management network and can somebody can explain this little

Re: Adding OVA or OVF VMs to CS 4.3.1

2014-09-26 Thread Kirk Kosinski
Hi, as the others mentioned only OVA is supported.  To use it in
CloudStack you first need to upload the OVA file to a web server that
CloudStack (specifically the SSVM) can reach.  Next, in the CloudStack
UI go to Templates  Register template and fill in the details
(including the URL to the OVA).  You can also use the registerTemplate
API command [1] with a tool like cloudmonkey [2] for this step.
Finally, when the template has been downloaded by the SSVM and shows as
Ready in CloudStack, you can deploy instances using that template.

Best regards,
Kirk

[1]
http://cloudstack.apache.org/docs/api/apidocs-4.3/root_admin/registerTemplate.html
[2]
https://cwiki.apache.org/confluence/display/CLOUDSTACK/CloudStack+CloudMonkey+CLI

On 09/24/2014 10:09 AM, José Egas López wrote:
 Hi, I have exported an OVA and also an OVF template from an existing VM
 from vSphere.
 The templates have the following types of file:
 OVA -- templateName.ova
 OVF--  templateName.mf; templateName.ovf; templateName.vmdk
 
 I want to deploy a VM in CS from one of those templates.
 I'm not sure about how CS 4.3.1 is supporting this file formats.
 So the question is, how can I add my template into CS templates?
 
 
 



Re: ACS 4.3 VM virtual NIC type

2014-09-23 Thread Kirk Kosinski
Hi, the NIC type can be configured for a new template when registering
it in the UI, or for existing templates/VMs via API with
addResourceDetail [1].  Example cloudmonkey commands:

 list resourcedetails resourceid=vm_id resourcetype=UserVm key=nicAdapter
 add resourcedetail resourcetype=UserVm resourceid=vm_id
details[0].key=nicAdapter details[0].value=Vmxnet3

Best regards,
Kirk

[1]
http://cloudstack.apache.org/docs/api/apidocs-4.3/root_admin/addResourceDetail.html

On 09/22/2014 08:57 AM, Xerex Bueno wrote:
 Quick question to the group today.  When I create a VM in ACS using VMware as 
 the hypervisor it creates machines with the e1000 adapter.  Where can I 
 change this setting to use the vmxnet3 as the default NIC type.
 
 
 
 
 
 
 
 
 
 This document is PROPRIETARY and CONFIDENTIAL and may not be duplicated, 
 redistributed, or displayed to any other party without the expressed written 
 permission of LPS Integration, Inc. If you are not the intended recipient and 
 have received this email in error, please destroy the email and contact the 
 LPS Integration Security Officer at 866-577-2902 (Phone), 615-349-9009 (Fax) 
 or 230 Great Circle Rd. Suite 218 Nashville, TN 37228 (US Mail)
 
 


Re: Can't operate on VM

2014-09-23 Thread Kirk Kosinski
Hi, this is a known limitation.  You can only use the keyboard during
such an installation.  It is inconvenient but should still be possible
to complete the installation using keyboard shortcuts.

Best regards,
Kirk

On 09/23/2014 09:17 AM, José Egas López wrote:
 Ok thanks, but what if I install windows directly from an ISO? while I
 can't do any operation via view console, I won't be able to install
 VMware Tools.
 
 *
 Regards,
 José
 
 *
 
 El 23/09/2014 10:37, Giles Sirett escribió:
  From memory, you need the VMware tools installed on the instance
 (template)

 Kind Regards
 Giles

 D: +44 20 3603 0541 | M: +44 796 111 2055
 giles.sir...@shapeblue.com




 -Original Message-
 From: José Egas López [mailto:josee...@farmaenlace.com]
 Sent: 23 September 2014 16:00
 To: users@cloudstack.apache.org
 Subject: Can't operate on VM

 Hi all, I just created a VM with Windows Server 2008 with an ISO on CS
 4.4.0; the installation was succesful, but I can't move the mouse or
 type any command with the keyboard when I'm on the view console screen.
 Only clics works..
When I go to vSphere client I can operate this VM normally, but in
 the CS view console I can't do nothing with the VM.
 Is this a bug of CS 4.4.0? Or is there a kind of plug-in missing or
 something?
 Thanks for the help!
 -- 

 *
 Saludos cordiales,
 José Vicente Egas López
 Administración de Servicios, Redes y Telecomunicaciones /FARMAENLACE
 CIA. LTDA./

 Teléf. (593-2)2993100 ext. 1630/39
 Teléf. (593-99)8-824047
 *

 Find out more about ShapeBlue and our range of CloudStack related
 services

 IaaS Cloud Design 
 Buildhttp://shapeblue.com/iaas-cloud-design-and-build//
 CSForge – rapid IaaS deployment frameworkhttp://shapeblue.com/csforge/
 CloudStack Consultinghttp://shapeblue.com/cloudstack-consultancy/
 CloudStack Infrastructure
 Supporthttp://shapeblue.com/cloudstack-infrastructure-support/
 CloudStack Bootcamp Training
 Courseshttp://shapeblue.com/cloudstack-training/

 This email and any attachments to it may be confidential and are
 intended solely for the use of the individual to whom it is addressed.
 Any views or opinions expressed are solely those of the author and do
 not necessarily represent those of Shape Blue Ltd or related
 companies. If you are not the intended recipient of this email, you
 must neither take any action based upon its contents, nor copy or show
 it to anyone. Please contact the sender if you believe you have
 received this email in error. Shape Blue Ltd is a company incorporated
 in England  Wales. ShapeBlue Services India LLP is a company
 incorporated in India and is operated under license from Shape Blue
 Ltd. Shape Blue Brasil Consultoria Ltda is a company incorporated in
 Brasil and is operated under license from Shape Blue Ltd. ShapeBlue SA
 Pty Ltd is a company registered by The Republic of South Africa and is
 traded under license from Shape Blue Ltd. ShapeBlue is a registered
 trademark.
 
 



Re: Guest OS CPU Clock

2014-09-17 Thread Kirk Kosinski
Hi, I believe this is normal.  The cpuinfo in a VM will have the
physical CPU speed and not the capped speed.  Did you try running a
benchmark to see if the CPU usage is capped?

Best regards,
Kirk

On 09/16/2014 07:47 PM, Vibranze Teh wrote:
 Hi Lists,
 
 I found out that the guest OS CPU clock is not conforming to the one
 defined in compute offering.
 
 In Compute Offerings, I defined 1GHz, 2 Cores and the CPU Cap is ticked,
 but when I did a 'cat /proc/cpuinfo' from guest OS, it shown my hypervisor
 physical CPU clock.
 
 Is this behavior by design? How to really limit the guest OS to the one set
 in Compute Offering?
 
 Thanks.
 


Re: Virtual Machine Instance suddenly not starting

2014-09-15 Thread Kirk Kosinski
I would also recommend 4.3, especially for a new installation.  In any
case I checked the log and found this:

2014-09-12 14:53:23,750 WARN
[network.router.VirtualNetworkApplianceManagerImpl]
(Job-Executor-1:job-3) Unable to ssh to the VM: Can not ping System vm
r-2-VMdue to:Unable to connect

There is something wrong with the virtual router.  You can try
destroying it and retrying the VM start.  CloudStack will try to create
a new virtual router and if successful (and barring any other problems)
your VM should then start.

Best regards,
Kirk

On 09/15/2014 12:52 AM, Daan Hoogland wrote:
 Giri,
 
 Best you try 4.3.1. It is way more stable then 4.1
 
 On Fri, Sep 12, 2014 at 1:27 PM, Giri Prasad g_p...@yahoo.com.invalid
 wrote:
 
 Hello,

  I created a fresh install of Ubuntu 14.04 LTS and cloudstack 4.1 on
 4-Sep-2014. Uploaded a couple of ISO's into the cs environment. Then
 created some instances based on these ISO. Booted the vm (instance),
 installed the os (centos 6.5). Everything was working fine.

  Today, I started the same Ubuntu server, the cs management server and
 agent. The gui console opens up, and I see two system vm's in 'Running'
 state.

  I selected the (user) instance, clicked on the start instance button. The
 system runs forever, with the state of the user instance(vm), being shown
 as 'Starting'.

 The last few lines of the management server log are in :
 http://pastebin.com/tp7SmpPh

 It is the same the system setup, and I have changed nothing. Any ideas on,
 why is the user instance not starting?

 Thanks  Regards,
 Giri

 
 
 


Re: UI HTTP Status 404 / Tomcat - Address already in use [UNFIXED]

2014-09-12 Thread Kirk Kosinski
The IP that agents connect to is configured in CloudStack itself,
specifically the host parameter in Global Settings.  Try setting that
to the IP that the management server is listening on 8250/tcp, and
restart CloudStack.

Best regards,
Kirk

On 09/11/2014 06:31 PM, Piers wrote:
 On 12/09/14 11:13, Rohit Yadav wrote:

 To start again, you don’t have to remove the package or conf again and
 again. Just shutdown all java services (management and agent, tomcat
 etc.) and deploy the database, and finally start the management server.
 
 Good to know - thank you
 
 # configure with IP thanks to Rohit
 cloudstack-setup-databases cloud:@localhost
 --deploy-as=root:xx -i 192.168.5.1
 After you setup databases, just run cloudstack-agent (if KVM) and
 start the cloudstack-management. And you should be good. Make sure
 you’ve openjdk 1.7 installed and if you run “java -version” it should
 say 1.7 version etc. Else google on how to install/setup openjdk 1.7
 as your default java version/tool.

 
 java version 1.7.0_65
 OpenJDK Runtime Environment (rhel-2.5.1.2.el6_5-x86_64 u65-b17)
 OpenJDK 64-Bit Server VM (build 24.65-b04, mixed mode)
 
 
 
 Look in the logs for possible errors
 /var/log/cloudstack/management/management-server.log

 Looks like you’re playing with KVM, you may try to set up CloudStack
 cloud all in one box: http://bhaisaab.org/logs/cloudstack-kvm/


 
 Getting closer:
 
 [root@ade1]# tail /var/log/cloudstack/agent/agent.log
 
 WARN  [utils.nio.NioConnection] (Agent-Selector:null) Unable to connect
 to remote: is there a server running on port 8250
 
 
 
 
 [root@ade1]# /etc/init.d/cloudstack-management start
 Starting cloudstack-management:[  OK  ]
 [root@ade1]# netstat -nap | grep 8250
 [root@ade1]#
 
 I noticed that the IP the agent was looking on was different to the one
 in db.properties
 
 I am going to wipe the database again and watch the a agent log as well
 as management to see where it is going wrong.
 
 Thanks
 
 Piers
 



Re: Problems with firewall

2014-09-11 Thread Kirk Kosinski
I (vaguely) recall seeing something like this.  I think you aren't
supposed to install the CSP on hosts in a basic zone without SG.  Some
but not all iptables get programmed for some reason, and it doesn't
work.  I would check if it works on a host without CSP.  It definitely
isn't needed in such a configuration anyway.

Best regards,
Kirk

On 09/10/2014 10:26 PM, Jayapal Reddy Uradi wrote:
 Hi,
 
 iptables rules are configured on the host that means CSP is there.
 
 The setup is basic shared network with out security groups but there are
 SG rules configured for the VM in the host and there is no ingress/egress 
 rules config option.
 Not sure about with out SG configuring rules for VM is a bug.
 
 Thanks,
 Jayapal
 
 
 On 11-Sep-2014, at 10:27 AM, Kirk Kosinski kirkkosin...@gmail.com
  wrote:
 
 Hi, Carlos.  Did you install the CSP on your XS hosts?  Also is Open
 vSwitch enabled or disabled?

 Best regards,
 Kirk

 On 09/10/2014 02:55 PM, Carlos Reategui wrote:
 Hi All,
 This is a problem I have had for a while and worked around but would like
 to get a proper solution for.   I have configured a basic shared network
 without security groups.  The hosts are Xen 6.0.2.  I am currently on 4.3
 but had this problem previously on 4.1.x and 4.2.x also.

 The problem is that the iptables firewall is not getting configured
 properly on the hosts and therefore I am unable to connect to any of the
 VM's on that particular host.  My current solution is to have a crontab
 every 5 minutes issue an /etc/init.d/iptables stop.  The reason I have to
 have it on a cron is that every time I create a new instance, the
 cloudstack management server also sends a command to configure the firewall
 which also turns it back on  (I guess I could also put an exit near the top
 of the iptables script but that is still a workaround).  My network
 offering does not have security groups so, as expected, I don't have a
 means to edit ingress/egress rules.

 Has anyone else run into this?  Is this a bug or something that I have not
 properly configured?

 Here is the output of the firewall on one of the hosts after creating a new
 instance:
 # iptables -L -n
 Chain INPUT (policy ACCEPT)
 target prot opt source   destination

 Chain FORWARD (policy ACCEPT)
 target prot opt source   destination
 BRIDGE-FIREWALL  all  --  0.0.0.0/00.0.0.0/0   PHYSDEV
 match --physdev-is-bridged
 ACCEPT all  --  0.0.0.0/00.0.0.0/0   PHYSDEV match
 --physdev-out eth2+ --physdev-is-bridged
 ACCEPT all  --  0.0.0.0/00.0.0.0/0   PHYSDEV match
 --physdev-out eth6+ --physdev-is-bridged
 ACCEPT all  --  0.0.0.0/00.0.0.0/0   PHYSDEV match
 --physdev-out eth5+ --physdev-is-bridged
 ACCEPT all  --  0.0.0.0/00.0.0.0/0   PHYSDEV match
 --physdev-out eth7+ --physdev-is-bridged
 ACCEPT all  --  0.0.0.0/00.0.0.0/0   PHYSDEV match
 --physdev-out eth3+ --physdev-is-bridged
 ACCEPT all  --  0.0.0.0/00.0.0.0/0   PHYSDEV match
 --physdev-out eth1+ --physdev-is-bridged
 ACCEPT all  --  0.0.0.0/00.0.0.0/0   PHYSDEV match
 --physdev-out eth4+ --physdev-is-bridged
 ACCEPT all  --  0.0.0.0/00.0.0.0/0   PHYSDEV match
 --physdev-out bond0+ --physdev-is-bridged
 ACCEPT all  --  0.0.0.0/00.0.0.0/0   PHYSDEV match
 --physdev-out eth0+ --physdev-is-bridged
 ACCEPT all  --  0.0.0.0/00.0.0.0/0   PHYSDEV match
 --physdev-out bond1+ --physdev-is-bridged
 DROP   all  --  0.0.0.0/00.0.0.0/0

 Chain OUTPUT (policy ACCEPT)
 target prot opt source   destination

 Chain BRIDGE-DEFAULT-FIREWALL (1 references)
 target prot opt source   destination
 ACCEPT all  --  0.0.0.0/00.0.0.0/0   state
 RELATED,ESTABLISHED
 ACCEPT udp  --  0.0.0.0/00.0.0.0/0   PHYSDEV match
 --physdev-is-bridged udp spt:68 dpt:67
 ACCEPT udp  --  0.0.0.0/00.0.0.0/0   PHYSDEV match
 --physdev-is-bridged udp spt:67 dpt:68

 Chain BRIDGE-FIREWALL (1 references)
 target prot opt source   destination
 BRIDGE-DEFAULT-FIREWALL  all  --  0.0.0.0/00.0.0.0/0
 i-3-93-def  all  --  0.0.0.0/00.0.0.0/0   PHYSDEV match
 --physdev-in vif20.0 --physdev-is-bridged
 i-3-93-def  all  --  0.0.0.0/00.0.0.0/0   PHYSDEV match
 --physdev-out vif20.0 --physdev-is-bridged

 Chain i-3-93-VM (1 references)
 target prot opt source   destination

 Chain i-3-93-VM-eg (1 references)
 target prot opt source   destination

 Chain i-3-93-def (2 references)
 target prot opt source   destination
 RETURN udp  --  0.0.0.0/00.0.0.0/0   PHYSDEV match
 --physdev-in vif20.0 --physdev-is-bridged set i-3-93-VM src udp dpt:53

Re: Problems with firewall

2014-09-11 Thread Kirk Kosinski
Unfortunately there's no supported way to remove it.  Reinstalling XS is
required. :-(

Best regards,
Kirk

On 09/10/2014 11:10 PM, Carlos Reátegui wrote:
 Is there a way to uninstall the CSP?
 
 Although, I do remember encountering a problem adding hosts without the CSP 
 on a different setup.
 
 
 On Sep 10, 2014, at 11:02 PM, Kirk Kosinski kirkkosin...@gmail.com wrote:
 
 I (vaguely) recall seeing something like this.  I think you aren't
 supposed to install the CSP on hosts in a basic zone without SG.  Some
 but not all iptables get programmed for some reason, and it doesn't
 work.  I would check if it works on a host without CSP.  It definitely
 isn't needed in such a configuration anyway.

 Best regards,
 Kirk

 On 09/10/2014 10:26 PM, Jayapal Reddy Uradi wrote:
 Hi,

 iptables rules are configured on the host that means CSP is there.

 The setup is basic shared network with out security groups but there are
 SG rules configured for the VM in the host and there is no ingress/egress 
 rules config option.
 Not sure about with out SG configuring rules for VM is a bug.

 Thanks,
 Jayapal


 On 11-Sep-2014, at 10:27 AM, Kirk Kosinski kirkkosin...@gmail.com
 wrote:

 Hi, Carlos.  Did you install the CSP on your XS hosts?  Also is Open
 vSwitch enabled or disabled?

 Best regards,
 Kirk

 On 09/10/2014 02:55 PM, Carlos Reategui wrote:
 Hi All,
 This is a problem I have had for a while and worked around but would like
 to get a proper solution for.   I have configured a basic shared network
 without security groups.  The hosts are Xen 6.0.2.  I am currently on 4.3
 but had this problem previously on 4.1.x and 4.2.x also.

 The problem is that the iptables firewall is not getting configured
 properly on the hosts and therefore I am unable to connect to any of the
 VM's on that particular host.  My current solution is to have a crontab
 every 5 minutes issue an /etc/init.d/iptables stop.  The reason I have 
 to
 have it on a cron is that every time I create a new instance, the
 cloudstack management server also sends a command to configure the 
 firewall
 which also turns it back on  (I guess I could also put an exit near the 
 top
 of the iptables script but that is still a workaround).  My network
 offering does not have security groups so, as expected, I don't have a
 means to edit ingress/egress rules.

 Has anyone else run into this?  Is this a bug or something that I have not
 properly configured?

 Here is the output of the firewall on one of the hosts after creating a 
 new
 instance:
 # iptables -L -n
 Chain INPUT (policy ACCEPT)
 target prot opt source   destination

 Chain FORWARD (policy ACCEPT)
 target prot opt source   destination
 BRIDGE-FIREWALL  all  --  0.0.0.0/00.0.0.0/0   PHYSDEV
 match --physdev-is-bridged
 ACCEPT all  --  0.0.0.0/00.0.0.0/0   PHYSDEV match
 --physdev-out eth2+ --physdev-is-bridged
 ACCEPT all  --  0.0.0.0/00.0.0.0/0   PHYSDEV match
 --physdev-out eth6+ --physdev-is-bridged
 ACCEPT all  --  0.0.0.0/00.0.0.0/0   PHYSDEV match
 --physdev-out eth5+ --physdev-is-bridged
 ACCEPT all  --  0.0.0.0/00.0.0.0/0   PHYSDEV match
 --physdev-out eth7+ --physdev-is-bridged
 ACCEPT all  --  0.0.0.0/00.0.0.0/0   PHYSDEV match
 --physdev-out eth3+ --physdev-is-bridged
 ACCEPT all  --  0.0.0.0/00.0.0.0/0   PHYSDEV match
 --physdev-out eth1+ --physdev-is-bridged
 ACCEPT all  --  0.0.0.0/00.0.0.0/0   PHYSDEV match
 --physdev-out eth4+ --physdev-is-bridged
 ACCEPT all  --  0.0.0.0/00.0.0.0/0   PHYSDEV match
 --physdev-out bond0+ --physdev-is-bridged
 ACCEPT all  --  0.0.0.0/00.0.0.0/0   PHYSDEV match
 --physdev-out eth0+ --physdev-is-bridged
 ACCEPT all  --  0.0.0.0/00.0.0.0/0   PHYSDEV match
 --physdev-out bond1+ --physdev-is-bridged
 DROP   all  --  0.0.0.0/00.0.0.0/0

 Chain OUTPUT (policy ACCEPT)
 target prot opt source   destination

 Chain BRIDGE-DEFAULT-FIREWALL (1 references)
 target prot opt source   destination
 ACCEPT all  --  0.0.0.0/00.0.0.0/0   state
 RELATED,ESTABLISHED
 ACCEPT udp  --  0.0.0.0/00.0.0.0/0   PHYSDEV match
 --physdev-is-bridged udp spt:68 dpt:67
 ACCEPT udp  --  0.0.0.0/00.0.0.0/0   PHYSDEV match
 --physdev-is-bridged udp spt:67 dpt:68

 Chain BRIDGE-FIREWALL (1 references)
 target prot opt source   destination
 BRIDGE-DEFAULT-FIREWALL  all  --  0.0.0.0/00.0.0.0/0
 i-3-93-def  all  --  0.0.0.0/00.0.0.0/0   PHYSDEV 
 match
 --physdev-in vif20.0 --physdev-is-bridged
 i-3-93-def  all  --  0.0.0.0/00.0.0.0/0   PHYSDEV 
 match
 --physdev-out vif20.0 --physdev-is-bridged

 Chain i-3-93-VM (1

Re: UI HTTP Status 404 / Tomcat - Address already in use

2014-09-11 Thread Kirk Kosinski
Hi, Piers.  The cloudstack-management init script starts Tomcat for you.
 You shouldn't use the tomcat6 init script to start Tomcat.

Best regards,
Kirk

On 09/10/2014 11:17 PM, Piers wrote:
 Can I get some advice on the Tomcat 404 error.
 
 tail /var/log/tomcat6/catalina.out
 
 Sep 11, 2014 3:23:30 PM org.apache.catalina.startup.Catalina start
 INFO: Server startup in 56 ms
 Sep 11, 2014 3:23:30 PM org.apache.catalina.core.StandardServer await
 SEVERE: StandardServer.await: create[8005]:
 java.net.BindException: Address already in use
 at java.net.PlainSocketImpl.socketBind(Native Method)
 at
 java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:376)
 at java.net.ServerSocket.bind(ServerSocket.java:376)
 at java.net.ServerSocket.init(ServerSocket.java:237)
 at
 org.apache.catalina.core.StandardServer.await(StandardServer.java:373)
 at org.apache.catalina.startup.Catalina.await(Catalina.java:657)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:617)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
 
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 
 at java.lang.reflect.Method.invoke(Method.java:606)
 at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
 
 java.util.logging.ErrorManager: 1: FileHandler is closed or not yet
 initialized, unable to log [Sep 11, 2014 3:23:30 PM
 org.apache.coyote.http11.Http11Protocol pause
 INFO: Pausing Coyote HTTP/1.1 on http-8080
 ]
 Sep 11, 2014 3:23:30 PM org.apache.coyote.http11.Http11Protocol pause
 INFO: Pausing Coyote HTTP/1.1 on http-8080
 
 From what I can find out the Address already in use means that there
 is something on the port 8080 already or process using it from another
 time.
 
 [root@ade1 ~]# /etc/init.d/cloudstack-management stop
 Stopping cloudstack-management:[  OK  ]
 
 [root@ade1 ~]# /etc/init.d/cloudstack-agent stop
 Stopping Cloud Agent:
 [root@ade1 ~]# /etc/init.d/tomcat6 stop
 Stopping tomcat6:  [  OK  ]
 
 [root@ade1 ~]# netstat -ln | grep 8080
 
 -- nothing --
 
 [root@ade1 ~]# lsof | grep tomcat
 
 -- nothing --
 
 [root@ade1 ~]# /etc/init.d/cloudstack-management start
 Starting cloudstack-management:[  OK  ]
 
 
 - 404 -
 
 [root@ade1 ~]# /etc/init.d/cloudstack-agent start
 Starting Cloud Agent:
 
 
 - 404 -
 
 This is a fresh install from scratch.
 
 Thanks
 
 Piers
 
 /var/log/cloudstack/management/management-server.log
 
 ...does not show any errors that I can see.
 


Re: UI HTTP Status 404 / Tomcat - Address already in use

2014-09-11 Thread Kirk Kosinski
I see, thanks for clarifying.  Which encryption type did you specify
during installation: file (the default) or web?  If the latter, are
you providing the password with EncryptionSecretKeySender after starting
each CloudStack service?

On 09/11/2014 12:17 AM, Piers wrote:
 On 11/09/14 16:29, Kirk Kosinski wrote:
 Hi, Piers.  The cloudstack-management init script starts Tomcat for you.
   You shouldn't use the tomcat6 init script to start Tomcat.


 
 I realise that - I was trying to show how I manually stooped the tomcat
 server and searched for things using the 8080 port and made sure nothing
 was.
 
 The error I see is a tomcat log showing Address in use but I cannot
 see why since nothing else uses that port.
 
 Could it be that its trying to run on a bridged eth0 which means that
 one IP address has two interfaces? I am clutching at straws here.
 
 That is the only reason I mention tomcat explicitly.
 
 Thanks
 
 Piers
 
 


Re: Not seeing parallel power on events in vCenter

2014-09-10 Thread Kirk Kosinski
Hi, Ian.  Did you figure this out?  Template deployment in VMware is
done through the SSVM instead of hosts so the behavior may be different
than other commands, like start VM which goes to hypervisor hosts.  How
many VMware hosts do you have?  If you have few or just one VMware host,
the commands are probably queuing up (check the logs for Waiting for
Seq).

Best regards,
Kirk


On 09/05/2014 03:28 AM, Ian Duffy wrote:
 Hi All,
 
 I'm using Cloudstack 4.1.1 against vCenter 5.
 
 If I create 5 instances on cloudstack. I see the 5 disks get created in
 parallel but the power up and power down events do not.
 
 Is this expected functionality? Or should power up and power down events
 occur at the same time? If so is there some configuration around this?
 
 If I go into vCenter I can manually power up and power down machines in
 parallel without issue.
 
 Thanks,
 
 Ian
 


Re: Not seeing parallel power on events in vCenter

2014-09-10 Thread Kirk Kosinski
 start VM which goes to hypervisor hosts

 Not directly to the hypervisors right? They go through vCenter if I
 understand correctly.

Right, the commands go through vCenter, similar to commands to XS hosts
going through the pool master.  But the command sequences will be
host-specific, which you can see in the the logs, the commands can get
stuck waiting for previous ones sent to the same host.

Does your 4.1 environment have the following Global Settings, and if so,
what are the values?

execute.in.sequence.hypervisor.commands
execute.in.sequence.network.element.commands

If they are set to false, try setting them to true to see if the
behavior improves.

Best regards,
Kirk


On 09/10/2014 03:27 AM, Ian Duffy wrote:
 Hi Kirk,
 
 Did you figure this out?
 No, we didn't look into it much more. Its not causing issues just yet and
 is just a curiosity thing.
 
 start VM which goes to hypervisor hosts
 
 Not directly to the hypervisors right? They go through vCenter if I
 understand correctly.
 
 How many VMware hosts do you have?
 
 We have 2 ESXi hosts.
 
 Thanks,
 
 Ian
 
 
 On 10 September 2014 11:19, Kirk Kosinski kirkkosin...@gmail.com wrote:
 
 Hi, Ian.  Did you figure this out?  Template deployment in VMware is
 done through the SSVM instead of hosts so the behavior may be different
 than other commands, like start VM which goes to hypervisor hosts.  How
 many VMware hosts do you have?  If you have few or just one VMware host,
 the commands are probably queuing up (check the logs for Waiting for
 Seq).

 Best regards,
 Kirk


 On 09/05/2014 03:28 AM, Ian Duffy wrote:
 Hi All,

 I'm using Cloudstack 4.1.1 against vCenter 5.

 If I create 5 instances on cloudstack. I see the 5 disks get created in
 parallel but the power up and power down events do not.

 Is this expected functionality? Or should power up and power down events
 occur at the same time? If so is there some configuration around this?

 If I go into vCenter I can manually power up and power down machines in
 parallel without issue.

 Thanks,

 Ian


 


Re: Problems with firewall

2014-09-10 Thread Kirk Kosinski
Hi, Carlos.  Did you install the CSP on your XS hosts?  Also is Open
vSwitch enabled or disabled?

Best regards,
Kirk

On 09/10/2014 02:55 PM, Carlos Reategui wrote:
 Hi All,
 This is a problem I have had for a while and worked around but would like
 to get a proper solution for.   I have configured a basic shared network
 without security groups.  The hosts are Xen 6.0.2.  I am currently on 4.3
 but had this problem previously on 4.1.x and 4.2.x also.
 
 The problem is that the iptables firewall is not getting configured
 properly on the hosts and therefore I am unable to connect to any of the
 VM's on that particular host.  My current solution is to have a crontab
 every 5 minutes issue an /etc/init.d/iptables stop.  The reason I have to
 have it on a cron is that every time I create a new instance, the
 cloudstack management server also sends a command to configure the firewall
 which also turns it back on  (I guess I could also put an exit near the top
 of the iptables script but that is still a workaround).  My network
 offering does not have security groups so, as expected, I don't have a
 means to edit ingress/egress rules.
 
 Has anyone else run into this?  Is this a bug or something that I have not
 properly configured?
 
 Here is the output of the firewall on one of the hosts after creating a new
 instance:
 # iptables -L -n
 Chain INPUT (policy ACCEPT)
 target prot opt source   destination
 
 Chain FORWARD (policy ACCEPT)
 target prot opt source   destination
 BRIDGE-FIREWALL  all  --  0.0.0.0/00.0.0.0/0   PHYSDEV
 match --physdev-is-bridged
 ACCEPT all  --  0.0.0.0/00.0.0.0/0   PHYSDEV match
 --physdev-out eth2+ --physdev-is-bridged
 ACCEPT all  --  0.0.0.0/00.0.0.0/0   PHYSDEV match
 --physdev-out eth6+ --physdev-is-bridged
 ACCEPT all  --  0.0.0.0/00.0.0.0/0   PHYSDEV match
 --physdev-out eth5+ --physdev-is-bridged
 ACCEPT all  --  0.0.0.0/00.0.0.0/0   PHYSDEV match
 --physdev-out eth7+ --physdev-is-bridged
 ACCEPT all  --  0.0.0.0/00.0.0.0/0   PHYSDEV match
 --physdev-out eth3+ --physdev-is-bridged
 ACCEPT all  --  0.0.0.0/00.0.0.0/0   PHYSDEV match
 --physdev-out eth1+ --physdev-is-bridged
 ACCEPT all  --  0.0.0.0/00.0.0.0/0   PHYSDEV match
 --physdev-out eth4+ --physdev-is-bridged
 ACCEPT all  --  0.0.0.0/00.0.0.0/0   PHYSDEV match
 --physdev-out bond0+ --physdev-is-bridged
 ACCEPT all  --  0.0.0.0/00.0.0.0/0   PHYSDEV match
 --physdev-out eth0+ --physdev-is-bridged
 ACCEPT all  --  0.0.0.0/00.0.0.0/0   PHYSDEV match
 --physdev-out bond1+ --physdev-is-bridged
 DROP   all  --  0.0.0.0/00.0.0.0/0
 
 Chain OUTPUT (policy ACCEPT)
 target prot opt source   destination
 
 Chain BRIDGE-DEFAULT-FIREWALL (1 references)
 target prot opt source   destination
 ACCEPT all  --  0.0.0.0/00.0.0.0/0   state
 RELATED,ESTABLISHED
 ACCEPT udp  --  0.0.0.0/00.0.0.0/0   PHYSDEV match
 --physdev-is-bridged udp spt:68 dpt:67
 ACCEPT udp  --  0.0.0.0/00.0.0.0/0   PHYSDEV match
 --physdev-is-bridged udp spt:67 dpt:68
 
 Chain BRIDGE-FIREWALL (1 references)
 target prot opt source   destination
 BRIDGE-DEFAULT-FIREWALL  all  --  0.0.0.0/00.0.0.0/0
 i-3-93-def  all  --  0.0.0.0/00.0.0.0/0   PHYSDEV match
 --physdev-in vif20.0 --physdev-is-bridged
 i-3-93-def  all  --  0.0.0.0/00.0.0.0/0   PHYSDEV match
 --physdev-out vif20.0 --physdev-is-bridged
 
 Chain i-3-93-VM (1 references)
 target prot opt source   destination
 
 Chain i-3-93-VM-eg (1 references)
 target prot opt source   destination
 
 Chain i-3-93-def (2 references)
 target prot opt source   destination
 RETURN udp  --  0.0.0.0/00.0.0.0/0   PHYSDEV match
 --physdev-in vif20.0 --physdev-is-bridged set i-3-93-VM src udp dpt:53
 DROP   all  --  0.0.0.0/00.0.0.0/0   PHYSDEV match
 --physdev-in vif20.0 --physdev-is-bridged !set i-3-93-VM src
 DROP   all  --  0.0.0.0/00.0.0.0/0   PHYSDEV match
 --physdev-out vif20.0 --physdev-is-bridged !set i-3-93-VM dst
 i-3-93-VM-eg  all  --  0.0.0.0/00.0.0.0/0   PHYSDEV
 match --physdev-in vif20.0 --physdev-is-bridged set i-3-93-VM src
 i-3-93-VM  all  --  0.0.0.0/00.0.0.0/0   PHYSDEV match
 --physdev-out vif20.0 --physdev-is-bridged
 
 Thanks,
 Carlos
 


Re: Can use subdomain for realhostip replacement?

2014-09-03 Thread Kirk Kosinski
Hi, Indra.  I think I've seen someone do this.  It should be fine as
long as you can create the required DNS records in the subdomain and
have a wildcard cert for the subdomain to upload to CloudStack.

Best regards,
Kirk

On 09/02/2014 09:02 PM, Indra Pramana wrote:
 Dear all,
 
 Would like to check if we can use a subdomain instead of a domain for
 realhostip.com replacement for console proxy? E.g. instead of using
 cloud-console-company.com, we use cloud-console.company.com (a subdomain of
 company.com).
 
 Looking forward to your reply, thank you.
 
 Cheers.
 


Re: Unable to start a VM due to insufficient capacity

2014-09-02 Thread Kirk Kosinski
Hi, Giri.  There was a problem configuring the network fro the VM (see
below log entries).  I'm not sure why, but if the network already exists
it may be out of IPs, or if it doesn't exist there may be no free VLANs
available for a new network.

Best regards,
Kirk


On 09/02/2014 09:34 PM, Giri Prasad wrote:
 2014-09-01 17:21:24,063 INFO  [c.c.u.e.CSExceptionErrorCode] 
 (Job-Executor-6:ctx-d1e72afb ctx-21bde336) Could not find exception: 
 com.cloud.exception.InsufficientVirtualNetworkCapcityException in error code 
 list for exceptions
 2014-09-01 17:21:24,063 DEBUG [o.a.c.e.o.NetworkOrchestrator] 
 (Job-Executor-6:ctx-d1e72afb ctx-21bde336) Cleaning up because we're unable 
 to implement the network Ntwk[204|Guest|8]


Re: About sharepoint mode in CloudStack

2014-08-28 Thread Kirk Kosinski
Hi, Robin.  The NFS option should be used for NFS shares that are not
already mounted on the hosts.  CloudStack will tell the hosts to mount
the NFS share you specify.

The Shared Mount Point option would be for a primary storage that is
already mounted on the hosts by the system administrator.  Here is what
the docs [1] say about it:

 KVM supports Shared Mountpoint storage. A shared
 mountpoint is a file system path local to each server
 in a given cluster. The path must be the same across
 all Hosts in the cluster, for example /mnt/primary1.
 This shared mountpoint is assumed to be a clustered
 filesystem such as OCFS2. In this case the CloudStack
 does not attempt to mount or unmount the storage as
 is done with NFS. The CloudStack requires that the
 administrator insure that the storage is available.

Best regards,
Kirk

[1]
http://cloudstack.apache.org/docs/en-US/Apache_CloudStack/4.2.0/html/Admin_Guide/primary-storage.html#hypervisor-support-for-primarystorage

On 08/27/2014 11:33 PM, ro...@cywee.com wrote:
 Hi,
 Can anyone help explain the difference of primary storage modes-- sharepoint 
 and NFS?
 thanks, 
 
 
 
 
 ro...@cywee.com
 


Re: VNC via public IP

2014-08-28 Thread Kirk Kosinski
Hi, Merill.  Did you set up port forwarding rules on your firewall for
the VNC ports on the VM IPs?  You'll need such a rule for every VM.

Best regards,
Kirk

On 08/27/2014 10:48 AM, Merill Ronquillo wrote:
 I've followed the Quick Installation Guide for CentOS and have a single 
 server 
 installation. I have a single public IP, and all the cloudstack components 
 are 
 using NAT'd IPs. I'm able to access the VNC consoles from internally, but 
 cannot 
 via the public IP. My firewall is forwarding 8080 correctly, since I can 
 access 
 the management console via the public IP.
 
 How do I access the VNC consoles via the public IP? My browser just responds 
 with The operation timed out. I'm using Cloudstack 4.4 on CentOS 6.5 with 
 KVM. 
 


Re: Automatic Updates

2014-08-28 Thread Kirk Kosinski
Hi, Mo.  Is this only for a management server or are you also running
Ubuntu for KVM hosts managed by CloudStack?  For KVM hosts you should be
careful about upgrading packages related to libvirt and qemu.

Best regards,
Kirk

On 08/27/2014 08:21 AM, mo wrote:
 Hello
 
 Can you tell me a list of programs that I should add to the hold list in 
 Ubuntu for Cloudstack. One I know for certain is TomCat 6. 
 
 Anything else?
 
 - Mo
 
 


Re: Stale datastores in database?

2014-08-28 Thread Kirk Kosinski
Hi, what CS version is this, and can you upload more of the log?  It
seems likely to be a bug since the storage with removed != NULL in the
database should be ignored.

Best regards,
Kirk

On 08/28/2014 09:19 AM, Martin Emrich wrote:
 Hi!
 
 I had to remove a XenServer host (the only one) from Cloudstack, removed it 
 via GUI, worked well.
 
 Now I added the replacement machine, and tried to fire up an instance. But I 
 got the message Unable to locate datastore with id 1.
 In the database, the storage_pool table contained two entries, the old id 1 
 and the current id 2.
 I removed the host (and then replaced the EXT storage with a LVM storage 
 because I misconfigured it), and added it again. Now I have three entries in 
 the database, and creating an instance still fails.
 
 The database now looks like this:
 
 mysql select * from storage_pool;
 ++-+--+---+--++++++--+---+--+-+-+-+-+---+---++-+---+
 | id | name| uuid | 
 pool_type | port | data_center_id | pod_id | cluster_id | used_bytes | 
 capacity_bytes | host_address | user_info | path | created | 
 removed | update_time | status  | storage_provider_name | 
 scope | hypervisor | managed | capacity_iops |
 ++-+--+---+--++++++--+---+--+-+-+-+-+---+---++-+---+
 |  1 | esc-compute01 Local Storage | NULL | 
 LVM   |0 |  1 |  1 |   NULL |4194304 |  
 1190452527104 | 10.8.0.65| NULL  | lvm  | 2014-08-08 14:37:25 | 
 2014-08-18 08:33:43 | NULL| Maintenance | DefaultPrimary| 
 HOST  | NULL   |   0 |  NULL |
 |  2 | esc-compute01 Local Storage | NULL | 
 EXT   |0 |  1 |  1 |   NULL | 6161043456 |  
 1171772600320 | 10.8.0.66| NULL  | ext  | 2014-08-27 15:53:58 | 
 2014-08-28 15:50:41 | NULL| Maintenance | DefaultPrimary| 
 HOST  | NULL   |   0 |  NULL |
 |  3 | esc-compute01 Local Storage | c38b4fa3-4bd4-05a3-4a11-e5e0f15fb9f5 | 
 LVM   |0 |  1 |  1 |  1 |4194304 |  
 1190452527104 | 10.8.0.66| NULL  | lvm  | 2014-08-28 15:52:14 | NULL  
   | NULL| Up  | DefaultPrimary| HOST  | 
 NULL   |   0 |  NULL |
 ++-+--+---+--++++++--+---+--+-+-+-+-+---+---++-+---+
 3 rows in set (0.00 sec)
 
 In the GUI, I can only see one Primary Storage (the current real one, 
 obviously ID 3).
 
 How can I fix my Cloudstack? As there are no instances yet, I could 
 reinstall, but I'd like to understand what's going on...
 
 Thanks
 
 Martin Emrich
 


Re: Downloading new templates blocked?

2014-08-28 Thread Kirk Kosinski
Hi, Martin.  Is your web server on an internal (RFC 1918) network?  If
so you need to add the CIDR to secstorage.allowed.internal.sites in
Global Settings.

Best regards,
Kirk

On 08/28/2014 09:10 AM, Martin Emrich wrote:
 Hi!
 
 I just tried to import a template VHD on a CloudStack 4.4.0 installation.
 After I got the status Connection refused, I first poked my firewall for 
 half an hour.
 Then I took a look at the SSVM, and I discovered two firewall rules, 
 explicitly blocking outgoing HTTP and HTTPS.
 So I configured my web server to Port 81, only to get a message Only Ports 
 80, 8080 and 443 are allowed.
 
 This effectively leaves only port 8080 for a template-serving web server. 
 After setting my server to port 8080, downloading the template worked fine.
 
 Can I disable this firewall rule? Or do I miss some deeper purpose?
 
 Thanks,
 
 Martin Emrich
 
 


Re: Volume snapshots in same time

2014-08-28 Thread Kirk Kosinski
Hi, Mārtiņš.  Unfortunately CloudStack doesn't support this yet.

Best regards,
Kirk

On 08/26/2014 03:17 AM, Mārtiņš Jakubovičs wrote:
 Hello,
 
 I test schaduled volume snapshots and when I create in same time rules
 for few machines (in my case I got 5 VM's) they all fails except one.
 
 http://pastebin.com/E60emjuJ
 
 How I can solve this?
 
 INFO  [c.c.h.HighAvailabilityManagerImpl] (HA-4:ctx-125a21bc) checking
 health of usage server
 INFO  [o.a.c.f.j.i.AsyncJobMonitor] (API-Job-Executor-49:ctx-1bf25e45
 job-9783) Add job-9783 into job monitoring
 INFO  [o.a.c.a.c.u.s.CreateSnapshotCmd]
 (API-Job-Executor-49:ctx-1bf25e45 job-9783 ctx-9d7e935b) VOLSS:
 createSnapshotCmd starts:1409047550501
 WARN  [c.c.u.d.Merovingian2] (API-Job-Executor-49:ctx-1bf25e45 job-9783
 ctx-9d7e935b) Was unable to find lock for the key vm_instance1173 and
 thread id 158740505
 INFO  [o.a.c.f.j.i.AsyncJobMonitor] (API-Job-Executor-50:ctx-bb4641db
 job-9785) Add job-9785 into job monitoring
 INFO  [o.a.c.a.c.u.s.CreateSnapshotCmd]
 (API-Job-Executor-50:ctx-bb4641db job-9785 ctx-26da1a0f) VOLSS:
 createSnapshotCmd starts:1409047550587
 WARN  [c.c.u.d.Merovingian2] (API-Job-Executor-50:ctx-bb4641db job-9785
 ctx-26da1a0f) Was unable to find lock for the key vm_instance1172 and
 thread id 736777923
 INFO  [o.a.c.f.j.i.AsyncJobMonitor] (API-Job-Executor-51:ctx-1f378859
 job-9787) Add job-9787 into job monitoring
 INFO  [o.a.c.a.c.u.s.CreateSnapshotCmd]
 (API-Job-Executor-51:ctx-1f378859 job-9787 ctx-ae2be6e3) VOLSS:
 createSnapshotCmd starts:1409047550660
 WARN  [c.c.u.d.Merovingian2] (API-Job-Executor-51:ctx-1f378859 job-9787
 ctx-ae2be6e3) Was unable to find lock for the key vm_instance1171 and
 thread id 142175984
 INFO  [o.a.c.f.j.i.AsyncJobMonitor] (API-Job-Executor-52:ctx-197114de
 job-9788) Add job-9788 into job monitoring
 INFO  [o.a.c.a.c.u.s.CreateSnapshotCmd]
 (API-Job-Executor-52:ctx-197114de job-9788 ctx-f29734ce) VOLSS:
 createSnapshotCmd starts:1409047550750
 INFO  [o.a.c.f.j.i.AsyncJobMonitor] (API-Job-Executor-53:ctx-1e698b15
 job-9790) Add job-9790 into job monitoring
 WARN  [c.c.u.d.Merovingian2] (API-Job-Executor-52:ctx-197114de job-9788
 ctx-f29734ce) Was unable to find lock for the key vm_instance1170 and
 thread id 1643232589
 INFO  [o.a.c.a.c.u.s.CreateSnapshotCmd]
 (API-Job-Executor-53:ctx-1e698b15 job-9790 ctx-97cf6519) VOLSS:
 createSnapshotCmd starts:1409047550795
 WARN  [c.c.u.d.Merovingian2] (API-Job-Executor-53:ctx-1e698b15 job-9790
 ctx-97cf6519) Was unable to find lock for the key vm_instance1168 and
 thread id 1037433024
 INFO  [o.a.c.f.j.i.AsyncJobMonitor] (Work-Job-Executor-68:ctx-6e51f025
 job-9783/job-9784) Add job-9784 into job monitoring
 INFO  [o.a.c.f.j.i.AsyncJobMonitor] (Work-Job-Executor-69:ctx-cd90b5b2
 job-9785/job-9786) Add job-9786 into job monitoring
 INFO  [o.a.c.f.j.i.AsyncJobMonitor] (Work-Job-Executor-70:ctx-d44cfd70
 job-9787/job-9789) Add job-9789 into job monitoring
 INFO  [o.a.c.f.j.i.AsyncJobMonitor] (Work-Job-Executor-71:ctx-cf2e5ec2
 job-9788/job-9791) Add job-9791 into job monitoring
 INFO  [o.a.c.f.j.i.AsyncJobMonitor] (Work-Job-Executor-72:ctx-48cef8a6
 job-9790/job-9792) Add job-9792 into job monitoring
 WARN  [o.a.c.h.x.XenServerResourceNewBase]
 (DirectAgent-303:ctx-c4ae6319) No event for task
 OpaqueRef:d7e9133b-f9bb-59e6-720c-ab4e79e0feff
 WARN  [o.a.c.h.x.XenServerResourceNewBase]
 (DirectAgent-119:ctx-cac68540) No event for task
 OpaqueRef:04cc04cf-f676-d187-25f7-801572973d7a
 WARN  [c.c.h.x.r.CitrixResourceBase] (DirectAgent-119:ctx-cac68540) Host
 10.10.10.66 OpaqueRef:18b050f6-a1db-1ba5-f290-bcd58811caad: Unable to
 remove SR
 WARN  [c.c.h.x.r.XenServerStorageProcessor]
 (DirectAgent-119:ctx-cac68540) BackupSnapshot Failed due to No event for
 task OpaqueRef:04cc04cf-f676-d187-25f7-801572973d7a
 java.util.concurrent.TimeoutException: No event for task
 OpaqueRef:04cc04cf-f676-d187-25f7-801572973d7a
   at
 org.apache.cloudstack.hypervisor.xenserver.XenServerResourceNewBase.waitForTask(XenServerResourceNewBase.java:124)
   at
 com.cloud.hypervisor.xen.resource.Xenserver625StorageProcessor.backupSnapshot(Xenserver625StorageProcessor.java:430)
   at
 com.cloud.storage.resource.StorageSubsystemCommandHandlerBase.execute(StorageSubsystemCommandHandlerBase.java:94)
   at
 com.cloud.storage.resource.StorageSubsystemCommandHandlerBase.handleStorageCommands(StorageSubsystemCommandHandlerBase.java:52)
   at
 com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(CitrixResourceBase.java:546)
   at
 com.cloud.hypervisor.xen.resource.XenServer56Resource.executeRequest(XenServer56Resource.java:61)
   at
 com.cloud.hypervisor.xen.resource.XenServer610Resource.executeRequest(XenServer610Resource.java:102)
   at
 com.cloud.hypervisor.xen.resource.XenServer620SP1Resource.executeRequest(XenServer620SP1Resource.java:65)
   at
 com.cloud.agent.manager.DirectAgentAttache$Task.runInContext(DirectAgentAttache.java:216)
   at
 

Re: Management Server install on CentOS7?

2014-07-16 Thread Kirk Kosinski
Hi, I think he means installing a CS management server and/or KVM
hypervisor on CentOS 7.  Is anyone actively working on making it work?
I've seen many failures from minor changes (e.g. CentOS 6.2 versus 6.3,
or even just minor changes in simple utilities used by scripts) to
expect it will work on CentOS 7 if the developers aren't already working
on it.  I do recall someone trying to package it for an older Fedora but
they didn't get far.

A lot of packages have been updated to be much, much newer.  Off the top
of my head I would worry about Tomcat 7, Java 1.7, MariaDB 5.5, qemu,
and libvirt.  Then there are all the smaller utilities that are used for
the many scripts.  Besides that there is firewalld which will conflict
with anything CS does with iptables.  systemd is supposed to be
backwards compatible so maybe the init scripts would work.

Best regards,
Kirk

On 07/15/2014 11:53 PM, Sebastien Goasguen wrote:
 haven't tried yet but I don't foresee any issues.
 
 On Jul 15, 2014, at 10:21 PM, Eric Tykwinski eric-l...@truenet.com wrote:
 
 Just wondering if anyone has attempted CS4.4 on CentOS7 yet...
 I know it rather new so before I dig in, I'm wondering if anyone else has 
 tried?

 Sincerely,

 Eric Tykwinski
 TrueNet, Inc.
 P: 610-429-8300
 F: 610-429-3222


 


Re: Management Server install on CentOS7?

2014-07-16 Thread Kirk Kosinski
Cool, thanks for the info.  I'm glad someone is looking at it.  It is
nice to run the latest and greatest OS.  Hopefully there won't be too
many roadblocks to getting it running and supported.

Best regards,
Kirk

On 07/16/2014 02:50 AM, Erik Weber wrote:
 https://issues.apache.org/jira/browse/CLOUDSTACK-7106 has been created for
 the task. I believe Hugo is working on some of this, but am unsure about
 the status.
 
 Erik
 16. juli 2014 11:29 skrev Kirk Kosinski kirkkosin...@gmail.com følgende:
 
 Hi, I think he means installing a CS management server and/or KVM
 hypervisor on CentOS 7.  Is anyone actively working on making it work?
 I've seen many failures from minor changes (e.g. CentOS 6.2 versus 6.3,
 or even just minor changes in simple utilities used by scripts) to
 expect it will work on CentOS 7 if the developers aren't already working
 on it.  I do recall someone trying to package it for an older Fedora but
 they didn't get far.

 A lot of packages have been updated to be much, much newer.  Off the top
 of my head I would worry about Tomcat 7, Java 1.7, MariaDB 5.5, qemu,
 and libvirt.  Then there are all the smaller utilities that are used for
 the many scripts.  Besides that there is firewalld which will conflict
 with anything CS does with iptables.  systemd is supposed to be
 backwards compatible so maybe the init scripts would work.

 Best regards,
 Kirk

 On 07/15/2014 11:53 PM, Sebastien Goasguen wrote:
 haven't tried yet but I don't foresee any issues.

 On Jul 15, 2014, at 10:21 PM, Eric Tykwinski eric-l...@truenet.com
 wrote:

 Just wondering if anyone has attempted CS4.4 on CentOS7 yet...
 I know it rather new so before I dig in, I'm wondering if anyone else
 has tried?

 Sincerely,

 Eric Tykwinski
 TrueNet, Inc.
 P: 610-429-8300
 F: 610-429-3222




 



Re: VMware Datastore Question

2014-07-10 Thread Kirk Kosinski
Hi, yes, all you need to do is add each datastore as a primary storage
in CloudStack.

Best regards,
Kirk

On 07/10/2014 08:35 PM, Jeff Barnett wrote:
 I am planning on adding a zone that is supported by VMware, I was wondering 
 if I should stick with what I normally do in my VMware clusters that is to 
 have datastores that are no larger than 2 TB, but the question I had with 
 that is how does Cloudstack tell the VMware cluster to create the instance on 
 different datastores, is it as simple as adding a primary storage for each of 
 the datastores?






Re: Windows Template Question

2014-07-10 Thread Kirk Kosinski
Hi, John.  The delay is probably due to the devices being re-detected.
This step is likely unnecessary so try enabling PersistAllDeviceInstalls
[1] in your XML to skip it.  Let us know how it goes.

Best regards,
Kirk

[1] http://technet.microsoft.com/en-us/library/cc722095%28WS.10%29.aspx

On 07/10/2014 08:38 AM, John Muckley wrote:
 I did indeed Sysprep it, yes.
 I sysprep with /oobe /generalize /shutdown and /unattend
 
 
 
 
 -Original Message-
 From: Timothy Lothering [mailto:tlother...@datacentrix.co.za]
 Sent: 10 July 2014 12:57
 To: users@cloudstack.apache.org
 Subject: RE: Windows Template Question
 
 Hi John,
 
 Did you sysprep the VM template?
 
 Kind Regards,
 
 Timothy Lothering
 
 -Original Message-
 From: John Muckley [mailto:j.muck...@databax.com]
 Sent: 10 July 2014 01:31 PM
 To: users@cloudstack.apache.org
 Subject: Windows Template Question
 
 Hello Chaps,
 
 I have a question that nobody seems to be able to answer for me, so I thought 
 I’d try my luck with you guys.
 
 When I first deployed our CloudStack and captured a windows template, the 
 resulting windows VMs would take about 2 minutes from being requested to 
 being deployed and up. The problem here was that windows prompted for a 
 product key prior to displaying the logon screen and wouldn’t allow logon 
 (either local or remote) until that was entered.
 
 Naturally I applied an unattend.xml (pasted Below) to put the product key in 
 automatically which solved the problem and made everything work perfectly, 
 however my Windows VMs don’t deploy in 2 minutes anymore, they take 12 
 minutes… most of which is a black screen with ‘Preparing your computer for 
 first use’ on it.
 
 I realise that 12 minutes isn’t a bad time from request to being online and 
 ready, however It would be brilliant if I could get this back down to the 
 couple of minutes it was originally.
 
 Any thoughts?
 
 Thanks guys!!
 
 
 UNATTEND.XML:
 
 ?xml version=1.0 encoding=utf-8?
 unattend xmlns=urn:schemas-microsoft-com:unattend
 settings pass=windowsPE
 component name=Microsoft-Windows-Setup publicKeyToken=31bf3856ad364e35 
 language=neutral versionScope=nonSxS processorArchitecture=amd64 
 UserData AcceptEulatrue/AcceptEula FullNameDBXCloud/FullName 
 OrganizationDBX/Organization 
 ProductKeyX-X-X-X-X/ProductKey
 /UserData
 /component
 /settings
 settings pass=oobeSystem
 component name=Microsoft-Windows-International-Core 
 processorArchitecture=amd64 publicKeyToken=31bf3856ad364e35 
 language=neutral versionScope=nonSxS 
 xmlns:wcm=http://schemas.microsoft.com/WMIConfig/2002/State; 
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
 InputLocaleen-UK/InputLocale
 SystemLocaleen-UK/SystemLocale
 UILanguageen-UK/UILanguage
 UserLocaleen-UK/UserLocale
 /component
 component name=Microsoft-Windows-Shell-Setup processorArchitecture=amd64 
 publicKeyToken=31bf3856ad364e35 language=neutral versionScope=nonSxS 
 xmlns:wcm=http://schemas.microsoft.com/WMIConfig/2002/State; 
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
 OOBE
 SkipMachineOOBEtrue/SkipMachineOOBE
 SkipUserOOBEtrue/SkipUserOOBE
 NetworkLocationWork/NetworkLocation
 /OOBE
 /component
 /settings
 /unattend
 
 
 
 
 
 This is an e-mail from Databax Ltd (Company No.04085248). The contents of 
 this e-mail are confidential. Databax Ltd does not accept responsibility for 
 the accuracy or completeness of the contents of this e-mail as it has been 
 transmitted over a public network.  If you receive this e-mail in error 
 please accept our apology. If this is the case we would be obliged if you 
 would contact the sender and then delete this e-mail. This e-mail and/or any 
 replies to it, and any attachments may be intercepted, copied or monitored by 
 Databax Ltd for the purpose of monitoring or keeping record of its business 
 and for the purposes set out in the Telecommunications (Lawful Business 
 Practices) (Interception of Communications) Regulations 2000. All statements 
 made in this e-mail are subject to contract. The contents are not to be 
 regarded as a contractual offer or acceptance. The sender is not authorised 
 to bind Databax Ltd. The views expressed in this e-mail are those of the 
 sender and not necessari
ly those of  Databax Ltd.
 Feel free to visit the Databax web site at 
 www.databax.comhttp://www.databax.com/  to find out about our range of 
 products and services, and for the latest Databax news and information.
 
 
 
 Please consider the environment before printing this email.
 Timothy Lothering
 Solutions Architect
 Managed Services
 
 T: +27877415535
 F: +27877415100
 C: +27824904099
 E: tlother...@datacentrix.co.za
 
 
 DISCLAIMER NOTICE:
 
 Everything in this e-mail and any attachments relating to the official 
 business of Datacentrix Holdings Ltd. and its subsidiaries
 ('Datacentrix') is proprietary to Datacentrix. It is confidential, legally 
 privileged and protected by law. Datacentrix 

Re: Datadisk Limit per VM

2014-06-26 Thread Kirk Kosinski
Hi, the limit is supposed to be based on what the hypervisor supports.
CloudStack cannot support more disks than what the hypervisor supports.
 In some cases the hypervisor might allow adding more disks than the
officially supported number, but this is not a good idea so by default
CloudStack follows the official limits.

Best regards,
Kirk

On 06/25/2014 10:08 PM, Antonio Packery wrote:
 Thanks Koushik, I was just wondering if there was a technology reason for 
 this limit?
 
   Original Message
 From: Koushik Das
 Sent: Thursday 26 June 2014 06:20
 To: users@cloudstack.apache.org
 Reply To: users@cloudstack.apache.org
 Subject: RE: Datadisk Limit per VM
 
 
 These values are meant to be set based on the specifications for a hypervisor 
 version and type. These are stored in the hypervisor_capabilities table in 
 the db. If you think that for some specific hypervisor version the values are 
 not correct, feel free to change it.
 
 -Original Message-
 From: Antonio Packery [mailto:antonio.pack...@t-systems.co.za]
 Sent: Wednesday, 25 June 2014 5:54 PM
 To: users@cloudstack.apache.org
 Subject: Datadisk Limit per VM
 
 Hi,
 
 I noticed there is a limit for 6 datadisks that can be attached to a VM for 
 all hypervisors other than XenServer 6 and above which supports 13.
 
 I am interested to know why this limitation exists?
 
 Regards
 Antonio
 
 
 
 Disclaimer: This message and/or attachment(s) may contain privileged, 
 confidential and/or personal information. If you are not the intended 
 recipient you may not disclose or distribute any of the information contained 
 within this message. In such case you must destroy this message and inform 
 the sender of the error. T-Systems does not accept liability for any errors, 
 omissions, information and viruses contained in the transmission of this 
 message. Any opinions, conclusions and other information contained within 
 this message not related to T-Systems' official business is deemed to be that 
 of the individual only and is not endorsed by T-Systems.
 
 This message and/or attachment(s) may contain privileged or confidential
 information. If you are not the intended recipient you may not disclose or
 distribute any of the information contained within this message. In such case 
 you must destroy this message and inform the sender of the error.
 T-Systems does not accept liability for any errors, omissions, information 
 and viruses contained in the transmission of this message. Any opinions, 
 conclusions and other information contained within this message not related 
 to T-Systems' official business is deemed to be that of the individual only
 and is not endorsed by T-Systems.
 
 T-Systems - Business Flexibility
 
 
 
 Disclaimer: This message and/or attachment(s) may contain privileged, 
 confidential and/or personal information. If you are not the intended 
 recipient you may not disclose or distribute any of the information contained 
 within this message. In such case you must destroy this message and inform 
 the sender of the error. T-Systems does not accept liability for any errors, 
 omissions, information and viruses contained in the transmission of this 
 message. Any opinions, conclusions and other information contained within 
 this message not related to T-Systems' official business is deemed to be that 
 of the individual only and is not endorsed by T-Systems.
 
 This message and/or attachment(s) may contain privileged or confidential  

 information. If you are not the intended recipient you may not disclose or
 
 distribute any of the information contained within this message. In such
 case you must destroy this message and inform the sender of the error.
 T-Systems does not accept liability for any errors, omissions, information
 and viruses contained in the transmission of this message. Any opinions, 
 conclusions and other information contained within this message not related 
 to T-Systems' official business is deemed to be that of the individual only 
 and is not endorsed by T-Systems.
   
 
 T-Systems - Business Flexibility
 


Re: Datadisk Limit per VM

2014-06-26 Thread Kirk Kosinski
If that is the case please file a bug and (importantly) include the
supporting documentation, unless you can find an existing bug for this.
 As mentioned earlier the distinction between allowed and supported is
important.  With old XenServer versions, for example, you can add more
disks than what is supported with xe commands, but if too many VMs in a
pool have too many disks there can be problems.

Best regards,
Kirk

On 06/26/2014 02:57 AM, Antonio Packery wrote:
 Hi Kirk,
 
 For KVM, 20 data block devices is supported if using virtio 
 paravirtualization drivers but CloudStack is set to allow only 10.
 
 Regards
 Antonio
 
 On 06/26/2014 11:43 AM, Kirk Kosinski wrote:
 
 Hi, the limit is supposed to be based on what the hypervisor supports.
 CloudStack cannot support more disks than what the hypervisor supports.
  In some cases the hypervisor might allow adding more disks than the
 officially supported number, but this is not a good idea so by default
 CloudStack follows the official limits.
 
 Best regards,
 Kirk
 
 On 06/25/2014 10:08 PM, Antonio Packery wrote:
 Thanks Koushik, I was just wondering if there was a technology reason for 
 this limit?

   Original Message
 From: Koushik Das
 Sent: Thursday 26 June 2014 06:20
 To: users@cloudstack.apache.orgmailto:users@cloudstack.apache.org
 Reply To: users@cloudstack.apache.orgmailto:users@cloudstack.apache.org
 Subject: RE: Datadisk Limit per VM


 These values are meant to be set based on the specifications for a 
 hypervisor version and type. These are stored in the hypervisor_capabilities 
 table in the db. If you think that for some specific hypervisor version the 
 values are not correct, feel free to change it.

 -Original Message-
 From: Antonio Packery [mailto:antonio.pack...@t-systems.co.za]
 Sent: Wednesday, 25 June 2014 5:54 PM
 To: users@cloudstack.apache.orgmailto:users@cloudstack.apache.org
 Subject: Datadisk Limit per VM

 Hi,

 I noticed there is a limit for 6 datadisks that can be attached to a VM for 
 all hypervisors other than XenServer 6 and above which supports 13.

 I am interested to know why this limitation exists?

 Regards
 Antonio



 Disclaimer: This message and/or attachment(s) may contain privileged, 
 confidential and/or personal information. If you are not the intended 
 recipient you may not disclose or distribute any of the information 
 contained within this message. In such case you must destroy this message 
 and inform the sender of the error. T-Systems does not accept liability for 
 any errors, omissions, information and viruses contained in the transmission 
 of this message. Any opinions, conclusions and other information contained 
 within this message not related to T-Systems' official business is deemed to 
 be that of the individual only and is not endorsed by T-Systems.

 This message and/or attachment(s) may contain privileged or confidential
 information. If you are not the intended recipient you may not disclose or
 distribute any of the information contained within this message. In such 
 case you must destroy this message and inform the sender of the error.
 T-Systems does not accept liability for any errors, omissions, information 
 and viruses contained in the transmission of this message. Any opinions, 
 conclusions and other information contained within this message not related 
 to T-Systems' official business is deemed to be that of the individual only
 and is not endorsed by T-Systems.

 T-Systems - Business Flexibility



 Disclaimer: This message and/or attachment(s) may contain privileged, 
 confidential and/or personal information. If you are not the intended 
 recipient you may not disclose or distribute any of the information 
 contained within this message. In such case you must destroy this message 
 and inform the sender of the error. T-Systems does not accept liability for 
 any errors, omissions, information and viruses contained in the transmission 
 of this message. Any opinions, conclusions and other information contained 
 within this message not related to T-Systems' official business is deemed to 
 be that of the individual only and is not endorsed by T-Systems.

 This message and/or attachment(s) may contain privileged or confidential
 information. If you are not the intended recipient you may not disclose or
 distribute any of the information contained within this message. In such
 case you must destroy this message and inform the sender of the error.
 T-Systems does not accept liability for any errors, omissions, information
 and viruses contained in the transmission of this message. Any opinions,
 conclusions and other information contained within this message not related
 to T-Systems' official business is deemed to be that of the individual only
 and is not endorsed by T-Systems.

 T-Systems - Business Flexibility

 
 
 
 Disclaimer: This message and/or attachment(s) may contain privileged, 
 confidential and/or personal information. If you are not the intended

Re: X on CentOS instance

2014-05-28 Thread Kirk Kosinski
Using the Other OS Type is a solution since it will install the VM in
HVM mode rather than PV mode.  A VM in HVM mode has more emulated
hardware, including a virtual video card so X can work, but with Linux
VMs there will be other limitations (mainly related to performance).

This exact same problem happens on XenServer with Linux VMs when using
the correct template, but XenCenter tries to hide it.  VNC will be
installed and configured in the VM and XenCenter will connect to it
instead of the serial console for the VM at the hypervisor level.

Best regards,
Kirk

On 05/28/2014 07:48 AM, Hollman Enciso R. wrote:
 On Tue, May 27, 2014 at 8:25 PM, Kirk Kosinski kirkkosin...@gmail.comwrote:
 
 Hi, this is due to PV mode VMs on XenServer not having a virtual
 graphics card.  The console for such VMs is a serial console so X cannot
 run.  If you need a GUI, try configuring VNC in the VM and connect
 directly using a VNC client.

 Best regards,
 Kirk

 
 hello.I kept doing tests and this was the result:
 
 1. y change the iso OS type to Other (64 bits) and made an installation of
 CentOS 6.5 with the default option of installation on the grub (Install or
 upgrade an existing system) and the result it's the same. the X not work.
 
 2. The same iso with the same OS type (other (64 bits)) but in the
 installation menu i chose install system with basic video driver and work
 Ok. the X starts without problem.
 
 That's the only way to X starts ??? why this problem doesn't occur on
 XenServer directly?
 
 thanks to all
 
 


Re: X on CentOS instance

2014-05-27 Thread Kirk Kosinski
Hi, this is due to PV mode VMs on XenServer not having a virtual
graphics card.  The console for such VMs is a serial console so X cannot
run.  If you need a GUI, try configuring VNC in the VM and connect
directly using a VNC client.

Best regards,
Kirk

On 05/27/2014 11:52 AM, Hollman Enciso R. wrote:
 On Tue, May 27, 2014 at 12:47 PM, Ahmad Emneina aemne...@gmail.com wrote:
 
 looks like this is your issue:

 (EE) open /dev/fb0: No such device

 The guest cant find the frame buffer device. You should be able to google
 that up and hopefully find some solutions.

 
 I'm looking for a solution to CloudStack level but not at the level of OS.
 
 This happens to me whenever I do an installation of centos or redhat with
 CloudStack.
 I use the same iso on another hypervisor not managed by CloudStack and works
 ok
 
 I tested another iso and install new instances (RedHat and CentOS / with
 graphicall enviorement) and the result it's the same :(
 
 


Re: CloudStack 4.1 Advance networking KVM

2014-03-31 Thread Kirk Kosinski
Hi, it looks like the vconfig command is not installed.  Run yum
install vconfig and try again.

Best regards,
Kirk

On 03/31/2014 12:08 PM, motty cruz wrote:
 Hello, I'm unable to create Instances on Cloudstack CentOS KVM.
 
 /var/log/cloudstack/
 2014-03-31 10:43:02,534 WARN  [kvm.resource.LibvirtComputingResource]
 (agentRequest-Handler-3:null) Exception
 com.cloud.exception.InternalErrorException: Failed to create vnet 602:
 /usr/share/cloudstack-common/scripts/vm
 /network/vnet/modifyvlan.sh: line 34: vconfig: command not
 found/usr/share/cloudstack-common/scripts/vm/networ
 k/vnet/modifyvlan.sh: line 38: vconfig: command not foundFailed to create
 vlan 602 on pif: eth1
 
 [root@kvmt agent]# cat /etc/cloudstack/agent/agent.properties
 #Storage
 #Mon Mar 31 10:33:44 PDT 2014
 guest.network.device=cloudbr1
 workers=5
 private.network.device=cloudbr0
 port=8250
 resource=com.cloud.hypervisor.kvm.resource.LibvirtComputingResource
 pod=2
 zone=2
 guid=14529930-6d76-3b00-afa3-a5001bfd7a9d
 public.network.device=cloudbr1
 cluster=2
 local.storage.uuid=486c81b4-d362-4bdd-ad71-4b402a5605ec
 domr.scripts.dir=scripts/network/domr/kvm
 LibvirtComputingResource.id=7
 host=10.107.0.5
 [root@kvmt agent]#
 
 [root@kvmt network-scripts]# cat ifcfg-eth1
 DEVICE=eth1
 TYPE=Ethernet
 ONBOOT=yes
 BRIDGE=cloudbr1
 
 [root@kvmt network-scripts]# cat ifcfg-cloudbr1
 DEVICE=cloudbr1
 ONBOOT=yes
 TYPE=Bridge
 
 
 any idea? looks like it fail to create a VLAN, but I don't understand why?
 


Re: Is installing xstools.iso drivers enough for Windows VMs?

2014-03-21 Thread Kirk Kosinski
Hi, no, you should continue to use the applicable Windows OS Types for
Windows VMs.  The PV drivers will work correctly with the correct
Windows OS Type.  Furthermore, on XenServer hosts a Windows VM won't
work at all with a PV mode OS Type such as Other PV.  Those OS Types
are only for OSs with PV support in the kernel (i.e. Linux).

Best regards,
Kirk

On 03/20/2014 08:24 AM, Junaid Shahid wrote:
 Hi,
 If a Windows VM is spun from a template that is not marked as Other PV,
 rather it is marked as Windows R2 Std. etc, and we install Xen PV drivers
 in that VM by attaching xstools.iso, and reboot it, would the VM start
 using new PV drivers or do we have to mark it as Other PV?
 
 In our exp. Windows VMs don't need to be marked as Other PV, and they
 still start using PV drivers when and if they are installed.
 
 In KVM for example, the windows VM has to be marked as Other PV (in
 addition to other necessary steps of course) before the VM starts using PV
 drivers (for KVM of course the drivers are different).
 


Re: Seeking Clarification for XenServer FC Primary Storage

2014-03-20 Thread Kirk Kosinski
Hi, it doesn't matter where you run the uuidgen command.  The point is
only to generate a random UUID.  In the next step you use the randomly
generated UUID to create the SR in the XenServer pool.

Best regards,
Kirk

On 03/19/2014 06:27 AM, Osay Osman Yuuni wrote:
 Hi,
 I want to use my FC LUN for primary storage.  I have followed the
 instructions but I'm confused by the statement On the storage server, run
 this command to get a unique ID for the new SR.  What is the storage
 server?  Is this the pool master?  Or the managment server or what?
 
 Thanks in advance for your help.
 
 Osay
 


Re: unable to deploy ubuntu as guest vm

2014-02-26 Thread Kirk Kosinski
Hi, installing Ubuntu from ISO is not supported on XenServer [1].
Instead, perform a network installation of Ubuntu on a standalone
XenServer, copy the VHD to a web server, and import it as a template to
CloudStack.

Kirk

[1]
http://docs.vmd.citrix.com/XenServer/6.2.0/1.0/en_gb/guest.html#install_linux

On 02/24/2014 05:27 AM, Tejas Gadaria wrote:
 Hi,
 
 I am using CS 4.0.2 with basic zone, xenserver (6.0.2) as hypervisor.
 I am able to deploy Windows 7 vm from ISO but not ubuntu.
 Also I tried to deploy centOS 5 from ISO, where graphics doesn't supports.
 
 Any help would be appreciated.
 
 
 
 2014-02-24 17:33:17,601 DEBUG [xen.resource.CitrixResourceBase]
 (DirectAgent-26:null) Creating VIF for i-2-3-VM on nic
 [Nic:Guest-10.129.151.107-vlan://untagged]
 2014-02-24 17:33:17,653 DEBUG [xen.resource.CitrixResourceBase]
 (DirectAgent-26:null) Created a vif a77b6f5e-c663-f0a4-29fb-4be2511479b8 on
 0
 2014-02-24 17:33:17,936 DEBUG [agent.manager.DirectAgentAttache]
 (DirectAgent-13:null) Ping from 1
 2014-02-24 17:33:18,320 DEBUG [agent.manager.DirectAgentAttache]
 (DirectAgent-148:null) Seq 1-410714114: Executing request
 2014-02-24 17:33:18,549 WARN  [xen.resource.CitrixResourceBase]
 (DirectAgent-148:null) Ignoring VM i-2-3-VM in transition state starting.
 2014-02-24 17:33:18,549 DEBUG [agent.manager.DirectAgentAttache]
 (DirectAgent-148:null) Seq 1-410714114: Response Received:
 2014-02-24 17:33:18,550 DEBUG [agent.transport.Request]
 (DirectAgent-148:null) Seq 1-410714114: Processing:  { Ans: , MgmtId:
 345049281638, via: 1, Ver: v1, Flags: 10,
 [{ClusterSyncAnswer:{_clusterId:1,_newStates:{},_isExecuted:false,result:true,wait:0}}]
 }
 2014-02-24 17:33:18,639 DEBUG [cloud.server.StatsCollector]
 (StatsCollector-3:null) StorageCollector is running...
 2014-02-24 17:33:18,695 DEBUG [agent.transport.Request]
 (StatsCollector-3:null) Seq 4-356385005: Received:  { Ans: , MgmtId:
 345049281638, via: 4, Ver: v1, Flags: 10, { GetStorageStatsAnswer } }
 2014-02-24 17:33:18,699 DEBUG [agent.manager.DirectAgentAttache]
 (DirectAgent-130:null) Seq 1-410714197: Executing request
 2014-02-24 17:33:19,192 DEBUG [agent.manager.DirectAgentAttache]
 (DirectAgent-130:null) Seq 1-410714197: Response Received:
 2014-02-24 17:33:19,193 DEBUG [agent.transport.Request]
 (StatsCollector-3:null) Seq 1-410714197: Received:  { Ans: , MgmtId:
 345049281638, via: 1, Ver: v1, Flags: 10, { GetStorageStatsAnswer } }
 2014-02-24 17:33:20,792 DEBUG [cloud.server.StatsCollector]
 (StatsCollector-3:null) HostStatsCollector is running...
 2014-02-24 17:33:20,800 DEBUG [agent.manager.DirectAgentAttache]
 (DirectAgent-129:null) Seq 1-410714198: Executing request
 2014-02-24 17:33:20,976 DEBUG [agent.manager.DirectAgentAttache]
 (DirectAgent-129:null) Seq 1-410714198: Response Received:
 2014-02-24 17:33:20,977 DEBUG [agent.transport.Request]
 (StatsCollector-3:null) Seq 1-410714198: Received:  { Ans: , MgmtId:
 345049281638, via: 1, Ver: v1, Flags: 10, { GetHostStatsAnswer } }
 2014-02-24 17:33:21,712 WARN  [xen.resource.CitrixResourceBase]
 (DirectAgent-26:null) Task failed! Task record: uuid:
 8f05db8d-5b3e-2fc9-0a35-919336415ca1
nameLabel: Async.VM.start_on
  nameDescription:
allowedOperations: []
currentOperations: {}
  created: Mon Feb 24 17:33:17 IST 2014
 finished: Mon Feb 24 17:33:20 IST 2014
   status: FAILURE
   residentOn: com.xensource.xenapi.Host@dadd4d39
 progress: 1.0
 type: none/
   result:
errorInfo: [INVALID_SOURCE, Unable to access a required file in
 the specified repository:
 file:///tmp/cdrom-repo-5hkOHp/install.amd/xen/vmlinuz., ]
  otherConfig: {}
subtaskOf: com.xensource.xenapi.Task@aaf13f6f
 subtasks: []
 
 2014-02-24 17:33:21,719 WARN  [xen.resource.CitrixResourceBase]
 (DirectAgent-26:null) Unable to start VM(i-2-3-VM) on
 host(f8701eb8-3edb-4b58-94e4-1889da729595) due to Task failed! Task
 record: uuid: 8f05db8d-5b3e-2fc9-0a35-919336415ca1
nameLabel: Async.VM.start_on
  nameDescription:
allowedOperations: []
currentOperations: {}
  created: Mon Feb 24 17:33:17 IST 2014
 finished: Mon Feb 24 17:33:20 IST 2014
   status: FAILURE
   residentOn: com.xensource.xenapi.Host@dadd4d39
 progress: 1.0
 type: none/
   result:
errorInfo: [INVALID_SOURCE, Unable to access a required file in
 the specified repository:
 file:///tmp/cdrom-repo-5hkOHp/install.amd/xen/vmlinuz., ]
  otherConfig: {}
subtaskOf: com.xensource.xenapi.Task@aaf13f6f
 subtasks: []
 
 Task failed! Task record: uuid:
 8f05db8d-5b3e-2fc9-0a35-919336415ca1
nameLabel: Async.VM.start_on
  nameDescription:
allowedOperations: []
currentOperations: {}
  created: Mon Feb 24 17:33:17 

Re: Windows 2008 and virtio network

2014-01-16 Thread Kirk Kosinski
Hi, try the Windows PV OS Type.  However, this probably also enables the
virtio disk controller for the root disk, which would cause the VM to
not boot if the driver is not installed.

Best regards,
Kirk

On 01/16/2014 06:20 PM, Bjoern Teipel wrote:
 Hi,
 
 I just noticed that Windows guests, even with 2012 profile will be
 provisioned with e1000 network driver opposed to virtio
 
  interface type='bridge'
   mac address='x'/
   source bridge='brbond0-1000'/
   target dev='vnet5'/
   model type='e1000'/
   bandwidth
 inbound average='44800' peak='44800'/
 outbound average='44800' peak='44800'/
   /bandwidth
   alias name='net0'/
   address type='pci' domain='0x' bus='0x00' slot='0x03'
 function='0x0'/
 /interface
 
 Is it in some way possible to prevent and use virtio for all windows 2008
 and higher guests ?
 
 Thanks,
 Bjoern
 


Re: Urgent: Revert disk from expunging state

2014-01-16 Thread Kirk Kosinski
Yeah, if the state is Expunging and removed is some date (and not NULL)
the virtual disk file is probably gone.  The relevant table is volumes.

Best regards,
Kirk

On 01/16/2014 12:37 PM, Chandan Purushothama wrote:
 Hello,
 
 Expunging is the last state of a Volume in its life cycle. Even if the 
 database record is updated from Expunging to Ready, the physical disk volume 
 present on the primary storage might have already got purged,
 
 Thank you,
 Chandan.
 
 -Original Message-
 From: Nux! [mailto:n...@li.nux.ro] 
 Sent: Thursday, January 16, 2014 11:19 AM
 To: users@cloudstack.apache.org
 Subject: Re: Urgent: Revert disk from expunging state
 
 On 16.01.2014 17:43, Paolo De Marco wrote:
 Hello,
 i have a disk in State: Expunging. Is there a way to revert it to 
 Ready?
 Thanks
 
 Hi,
 
 You can do so directly in the database. Phpmyadmin should be handy.
 
 --
 Sent from the Delta quadrant using Borg technology!
 
 Nux!
 www.nux.ro
 


Re: Where can I find the latest Cloudstack XenServer 6.2.0 supplemental package ? (need OVS tunnel functionality)

2014-01-15 Thread Kirk Kosinski
Hi, there is no CSP for XS 6.1 and above.  The missing functionality
provided by the CSP was incorporated into XS as of version 6.1.  The CSP
is mainly some RPMs including a different kernel and likely wouldn't
include those scripts anyway.

The CloudStack management server copies updated scripts to the hosts
when the hosts are added to CloudStack.  If you're not seeing the
updated scripts on your hosts, you are likely using a version of
CloudStack that does not include those updated scripts.  You can confirm
by checking the XenServer scripts on your management server.  They are
in the cloudstack-common RPM and stored in
/usr/share/cloudstack-common/scripts/vm/hypervisor/xenserver/.

Best regards,
Kirk

On 01/14/2014 08:13 AM, Florin Dumitrascu wrote:
 Hi everyone,
 
 I am currently building a test environment comprised of:
 
 - Cloudstack version 4.2.0
 - Citrix XenServer 6.2.0 (free trial version from store.citrix.com)
 
 The final purpose is to create an advanced zone with GRE isolation.
 
 I have been running into a number of problems and finally narrowed it down to 
 these 2 issues:
 
 https://issues.apache.org/jira/browse/CLOUDSTACK-4599
 
 https://issues.apache.org/jira/browse/CLOUDSTACK-3174
 
 CLOUDSTACK-3174 seems to be the actual problem and I can see there is a fix 
 provided:
 https://reviews.apache.org/r/12445/diff/#1
 
 
 If I check '/etc/xapi.d/plugins/ovstunnel'  plugin on my XenServer,  I can 
 see that I am missing the fix mentioned in CLOUDSTACK-3174.
 During XenServer installation, a CloudStack XenServer support package was 
 installed as mentioned in the install guide section 8.2.7,
 from the following link:
 
 http://download.cloud.com/releases/3.0.1/XS-6.0.2/xenserver-cloud-supp.tgz
 
 Is there an updated version of this support package ? How can I browse a list 
 of these packages ?
 Or to put it simply in other words, how can I make XenServer 6.2.0 and 
 Cloudstack 4.2.0 work with the following fetaures:
 
 https://cwiki.apache.org/confluence/display/CLOUDSTACK/OVS+Tunnel+Manager+for+CloudStack
 https://cwiki.apache.org/confluence/display/CLOUDSTACK/Add+Xen+and+XCP+support+for+GRE+SDN+controller
 
 (I think it is worth mentioning that in my setup, advanced zone with VLAN 
 isolation is also not working due to the same OVS tunnel issues)
 
 Thank you in advance,
 Florin
 
 -
 Florin Dumitrascu
 Senior Software Engineer
 Intune Networks Ltd
 Park West Business Park
 Dublin 12, Ireland
 -
 
 
 IMPORTANT NOTE: The information in this e-mail (and any attachments) is 
 confidential. The contents may not be disclosed or used by anyone other than 
 the addressee. If you are not the intended recipient, please notify the 
 sender immediately or telephone: +353 (0)1 6204700. We cannot accept any 
 responsibility for the accuracy or completeness of this message as it has 
 been transmitted over a public network. If you suspect that the message may 
 have been intercepted or amended, please call the sender.
 


Re: Issue in accessing Windows and Linux VM

2013-12-25 Thread Kirk Kosinski
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

2013-12-25 Thread Kirk Kosinski
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: Fwd: Cloud Stack dhcp issue

2013-12-11 Thread Kirk Kosinski
Hi, if you configure a CloudStack network without DHCP or completely
without a virtual router, CloudStack cannot configure networking for the
VM.  You will need to configure networking in the VM.  If you have your
own (non-CloudStack) DHCP server for the network, you should configure
it to assign the desired IP settings to the VM.  Or you can manually
configure a static IP in the VM.

Best regards,
Kirk

On 12/11/2013 08:21 PM, Tejas Gadaria wrote:
 Hi all,
 
 I have cloud stack configured and working fine with default virtual router.
 
 In my case i have a VLAN where physical DHCP and DNS server are running.
  If i will create virtual router with dhcp ans dns service enabled dhcp may
 conflict, So I have created NETWORK OFFERING with only connectivity and a
 guest network with some specified ip range, so it won't create virtual
 router and guest VM will be assigned IP from physical DHCP server. but what
 I observed is guest VM has received one IP which is not the same IP which
 is shown in INSTANCE DETAIL.
 Even I confirm in mysql database in nics table, guest VM ip which
 assigned from physical DHCP server is not updated.
 
 Please guide me what I am missing here.
 
 Thanks.
 Tejas
 


Re: SSVM showing alert status

2013-12-03 Thread Kirk Kosinski
Hi, Jake.  Is the SSVM really in Alert state, or is it actually the
Secondary Storage share?  If the latter is in Alert state it can be
ignored.  The state of the share is not used or updated and will likely
be in Alert state unless you manually update it in the database.

Best regards,
Kirk

On 12/02/2013 01:33 AM, Jake G. wrote:
 Hi all,
 
 My SSVM is showing ALERT as its status. How can I troubleshoot this? Also, 
 Any tips on how to log into the SSVM and CPVM? 
 
 Thanks,
 Jake
 


Re: Instance create with ISO always fails. Templates create fine.

2013-10-13 Thread Kirk Kosinski
Hi, Bryan.  The Test1 VM failed because FreeBSD is not supported on
XenServer 6.2.

2013-10-12 09:59:43,198 WARN  [xen.resource.CitrixHelper]
(DirectAgent-136:null) XenServer 6.2.0 DOES NOT support Guest OS type
FreeBSD (32-bit)

Check the XS documentation about what OSs can be installed from ISO or
at all on XenServer:

http://docs.vmd.citrix.com/XenServer/6.2.0/1.0/en_gb/guest.html#install_linux

If the OS you need to install from ISO is not listed, you can try the
Other (32/64-bit) OS Types.  This will boot the VM in HVM mode and it
should probably be possible to install, though there are some downsides
to HVM mode.

The tricky part is that even if the OS is listed, it still may not work
since XS is kind of picky when it comes to the actual ISO.  So while
Ubuntu 12.04 is listed, it could be that the 12.04 ISO works, but
12.04.2 doesn't.  So I'd try an actual 12.04 ISO and not something
newer to see if it makes a difference.

Best regards,
Kirk

On 10/12/2013 09:25 AM, Bryan Manske wrote:
 
 Travis,
 
 I've tried FreeBSD 8.3, 8.4, CentOS 6.3, 6.4, 32- and 64-bit on each, plus
 Windows XP 32-bit, each with the OS Type set correctly and each one failed.
 
 I just tried an instance build with FreeBSD8.3-i386 set to Other 32-bit
 and the instance built and launched.  So now I suppose its time to play with
 THAT and figure out why the ISO OS Type for those images is so screwed up.
 
 Many thanks for the gentle push forward.  I'm sure that I'll be replying to
 this thread once I have more to report after fooling around with it a lot 
 more.
 
 Regards and bonus kharma points for you.  (I've been stuck on this for quite
 a while.)
 
 Bryan Manske
 
 
 Quoting Travis Graham tgra...@tgraham.us:
 
 Have you tried to setting the OS Type for the ISO to something more generic
 like Other Linux (64-bit)?

 I had the same problem trying to get Ubuntu 12.04 working from an ISO and
 once I changed the OS Type to be more generic it worked.

 The OS Type field is what determines things like NIC drivers and things that
 get applied to the VM at the hypervisor level. It's possible something about
 the correct OS Type that matched the ISO is causing things to fail.

 Travis

 On Oct 12, 2013, at 11:17 AM, Bryan Manske br...@manske.org wrote:

 All,

 I have been playing with this for some time now and have rebuilt
 CS 4.2.0 yet again and wind up with the same issue.  Using an ISO
 to create an instance always fails while creating an instance using
 a template succeeds.

 http://mail.manske.org/management-server.log.gz
 (Test1 is the name of the instance that just failed to build.)

 What am I doing wrong?  Should I be using GRE network isolation or SST?
 Do I need to use security groups regardless of my intended application?
 I've even spent a lot of time building service offerings and registering
 ISOs trying to tease out the problem.

 I've been documenting as I go, trying to put together a simplified install
 document but I keep getting hung up at this same exact spot.  The latest
 rebuild was to make sure that my system vm templates were up to date but
 I've never had an issue with systems VMs or virtual routers coming up
 and working correctly.  So what am I missing?  Management-server.log is
 so very verbose that I have a hard time picking out the relevant pieces
 to investigate.

 Any guidance would be appreciated.

 Many thanks.

 Bryan Manske


 Quoting Bryan Manske br...@manske.org:

 Nitin,

 Management Server log is available at:
 http://mail.manske.org/management-server.log.gz

 I spent some time updating the System VM Templates but symptomatically
 I'm still dealing with the same malfunction; Creating an instance with
 an ISO fails every time, creating an instance with the template provided
 (for CentOS 5.6 64-bit) succeeds with no problems.

 I've tried CentOS 6.3, 6.4, FreeBSD 8.3 and 8.4, both 32- and 64-bit,
 and Windows XP SP3 32-bit, all of which have functioned fine for me
 on Xen Server 6.2 and are in the list of supported OSes when registering
 an ISO.

 Thanks in advance for taking a look.  I'm stumped and
 management-server.log
 is very verbose.  The instance name in the log to look for would be
 Test22
 and would be the only instance created today (so far).

 Regards,

 Bryan Manske


 Quoting Nitin Mehta nitin.me...@citrix.com:

 Check the hypervisor version allows the OS version of the ISO in
 hypervisor supported guest OS documentation.
 Try and paste the logs and give us the link in community.

 On 08/10/13 8:30 AM, Bryan Manske br...@manske.org wrote:

 Greetings,

 Using CloudStack 4.2.0 on CentOS 6.4 x86_64 with XenServer 6.2 and
 advanced
 zones I'm having problems provisioning an instance to be installed with
 an ISO.  Instances using templates build fine.  My primary and secondary
 storage look fine, the two hosts in the cluster look fine and my IP plan
 seems reasonable, but I get Failed to deploy Vm with Id: 33, on Host
 with
 Id: null.  I've worked through expunging the error-ed VMs and 

Re: Instance create with ISO always fails. Templates create fine.

2013-10-13 Thread Kirk Kosinski
Hi, what I meant was that FreeBSD is not officially supported by Citrix
on XenServer.  The result is that CloudStack cannot map the FreeBSD OS
Type to any template on XenServer (since none exist), hence the failure
and error to that effect.  Other failures may have a different cause,
but I only have the logs for the Test1 VM.  If you upload more logs I
can take a look, or you can search the logs for DOES NOT support Guest
OS to check if it is the OS Type causing the problem.

If FreeBSD supports running on XenServer, or is at least known to work,
the main thing to determine is if it needs PV or HVM mode.  With this
info you can choose an appropriate OS Type in XenServer.  The Other
(32/64-bit) OS Types will force VMs to boot in HVM mode, while Other
PV (32/64-bit) will force PV mode.

Best regards,
Kirk

On 10/13/2013 09:41 AM, Bryan Manske wrote:
 Shanker,
 
 That's fantastic.  Thanks for the heads up.  I've never really had many
 problems with the 8.x tree either as native i386 or XENHVM but then again
 its good to see The FreeBSD Foundation taking virtualization seriously.
 
 Many thanks.
 
 Bryan
 
 
 Quoting Shanker Balan shanker.ba...@shapeblue.com:
 
 On 13-Oct-2013, at 2:13 PM, Kirk Kosinski kirkkosin...@gmail.com wrote:

 Hi, Bryan.  The Test1 VM failed because FreeBSD is not supported on
 XenServer 6.2.

 2013-10-12 09:59:43,198 WARN  [xen.resource.CitrixHelper]
 (DirectAgent-136:null) XenServer 6.2.0 DOES NOT support Guest OS type
 FreeBSD (32-bit)

 Check the XS documentation about what OSs can be installed from ISO or
 at all on XenServer:


 http://docs.vmd.citrix.com/XenServer/6.2.0/1.0/en_gb/guest.html#install_linux

 If the OS you need to install from ISO is not listed, you can try the
 Other (32/64-bit) OS Types.  This will boot the VM in HVM mode and it
 should probably be possible to install, though there are some downsides
 to HVM mode.


 Might be of interest to other FreeBSD users on the list, FreeBSD 10 is
 expected
 to work out of the box on XenServer 6.2 with today's commit. The Beta ISO
 snapshot
 should be out in the next couple of days.

 http://svnweb.freebsd.org/base?view=revisionrevision=256423

 On XenServer versions up to an including 6.2, paravirtualized
 CDROM support is broken.  When running in an HVM domain,
 ignore paravirtualized instances of CDROM media, and instead
 rely on native drivers attaching to emulated hardware.  This
 functions correctly on all currently known Xen based
 platforms.


 Many thanks to Roger Pau Monné from Citrix for all the work.


 --
 @shankerbalan

 M: +91 98860 60539 | O: +91 (80) 67935867
 shanker.ba...@shapeblue.com | www.shapeblue.com | Twitter:@shapeblue
 ShapeBlue Services India LLP, 22nd floor, Unit 2201A, World Trade Centre,
 Bangalore - 560 055

 CloudStack Bootcamp Training on 27/28 November, Bangalore
 http://www.shapeblue.com/cloudstack-training/




 This email and any attachments to it may be confidential and are intended
 solely for the use of the individual to whom it is addressed. Any views or
 opinions expressed are solely those of the author and do not necessarily
 represent those of Shape Blue Ltd or related companies. If you are not the
 intended recipient of this email, you must neither take any action based upon
 its contents, nor copy or show it to anyone. Please contact the sender if you
 believe you have received this email in error. Shape Blue Ltd is a company
 incorporated in England  Wales. ShapeBlue Services India LLP is a company
 incorporated in India and is operated under license from Shape Blue Ltd.
 Shape Blue Brasil Consultoria Ltda is a company incorporated in Brasil and is
 operated under license from Shape Blue Ltd. ShapeBlue is a registered
 trademark.

 
 
 ---
 Earnest falsehoods left unchallenged risk being accepted as fact.
  -- Monty xiphmont Montgomery - Xiph Foundation, on the Ogg format
 ---
 



Re: Fail to create additional guest network

2013-10-12 Thread Kirk Kosinski
Hi, Lucian.  Unless something has changed in 4.2, basic zones can only
have one guest network.  If it is really supposed to be possible, I
guess it might be a UI bug, so try using the API directly.  If you are
just trying to add more IPs to the existing guest network, go to:

Infra  Zones (select zone)  Physical Network (select it)  Guest  IP
Ranges.

Best regards,
Kirk

On 10/12/2013 03:25 PM, Nux! wrote:
 Hi,
 
 I've just setup 4.2.0+KVM and with Basic Zone and I'm getting this when
 trying to add another guest network:
 Unable to execute API command listnetworkofferings due to invalid
 value. Invalid parameter zoneid value=null due to incorrect long value
 format, or entity does not exist or due to incorrect parameter
 annotation for the field in api cmd class.
 
 Screenshot: http://img.nux.ro/h3PM-Selection_005.png
 
 How do I proceed? I'd love to have another guest network! :)
 
 Lucian
 


Re: Running more than 16 KVM hosts in the same Cloudstack Cluster

2013-10-09 Thread Kirk Kosinski
I think the issues I've seen with large KVM clusters have been solved by
now, and even in older versions there were workarounds.  People have
been using larger KVM clusters going back to the 2.2.x releases.

I don't know the current reasoning behind this requirement.  It may be
that only up to a 16 host configuration is tested.

Best regards,
Kirk

On 10/08/2013 09:56 AM, hyguinho wrote:
 Hi guys,
 
I read a 'Configuration Requirement' in the Cloudstack 4.1.1 Admin Guide
 stating that we are not suppose to have more than 16 KVM hosts in the same
 Cloudstack Cluster. However, I know that's possible to have more than that.
 I have two questions:
 
 1 - Can I have a real problem for running more than 16 KVM hosts in the
 same  Cloudstack Cluster?
 
 2- Someone is doing that ? :)
 
 Thanks very much.
 
 Regards,
 
 
 Hygo.
 


Re: Enable virtio for Ubuntu 13.04 template?

2013-10-09 Thread Kirk Kosinski
The OS Type determines the disk controller, so use the Ubuntu 12.04
(64-bit) OS Type instead.

Best regards,
Kirk

On 10/09/2013 01:19 AM, Indra Pramana wrote:
 Dear all,
 
 I setup Ubuntu VMs using virtio driver for network and disk for faster
 performance, and saved them as templates.
 
 For Ubuntu 12.04, I saved the template using Ubuntu 12.04 (64-bit) OS
 type and any new VMs being created based on that template will retain the
 virtio driver settings, no issue.
 
 However, for Ubuntu 13.04, I saved the template using Other Ubuntu
 (64-bit) OS type because there's no specific OS type for Ubuntu 13.04, and
 when I test creating new VMs using that template, the virtio driver
 settings wasn't retained. E.g. it will still use /dev/sda instead of
 /dev/vda for the disk.
 
 Anyone can advise how can I enable virtio on my Ubuntu 13.04 template?
 
 Looking forward to your reply, thank you.
 
 Cheers.
 


Re: Enable virtio for Ubuntu 13.04 template?

2013-10-09 Thread Kirk Kosinski
Hi, yes, the OS Type also determines the network controller configured
for VMs.  The quote from the docs is a general recommendation.  For
Ubuntu VMs on KVM hypervisors it should usually be fine to use an OS
Type for a previous version.

Best regards,
Kirk


On 10/09/2013 02:03 AM, Indra Pramana wrote:
 Hi Kirk,
 
 Good day to you, and thank you for your e-mail reply.
 
 Can I confirm that the OS type determines the network controller as well?
 
 I read from CloudStack documentation that it's not advisable to use a lower
 version of the OS if the actual version is not available?
 
 http://cloudstack.apache.org/docs/en-US/Apache_CloudStack/4.2.0/html/Admin_Guide/create-template-from-existing-vm.html
 
 ===
 Note: Generally you should not choose an older version of the OS than the
 version in the image. For example, choosing CentOS 5.4 to support a CentOS
 6.2 image will in general not work. In those cases you should choose Other.
 ===
 
 Looking forward to your reply, thank you.
 
 Cheers.
 
 
 
 On Wed, Oct 9, 2013 at 4:35 PM, Kirk Kosinski kirkkosin...@gmail.comwrote:
 
 The OS Type determines the disk controller, so use the Ubuntu 12.04
 (64-bit) OS Type instead.

 Best regards,
 Kirk

 On 10/09/2013 01:19 AM, Indra Pramana wrote:
 Dear all,

 I setup Ubuntu VMs using virtio driver for network and disk for faster
 performance, and saved them as templates.

 For Ubuntu 12.04, I saved the template using Ubuntu 12.04 (64-bit) OS
 type and any new VMs being created based on that template will retain the
 virtio driver settings, no issue.

 However, for Ubuntu 13.04, I saved the template using Other Ubuntu
 (64-bit) OS type because there's no specific OS type for Ubuntu 13.04,
 and
 when I test creating new VMs using that template, the virtio driver
 settings wasn't retained. E.g. it will still use /dev/sda instead of
 /dev/vda for the disk.

 Anyone can advise how can I enable virtio on my Ubuntu 13.04 template?

 Looking forward to your reply, thank you.

 Cheers.


 


Re: After upgrade to CS 4.2 not able to create the Vm instance | Resource [Pod:1] is unreachable: Unable to apply userdata and password entry on router

2013-10-09 Thread Kirk Kosinski
Alena, are you sure installing a new system VM template is required for
going from 4.1.1 to 4.2.0?  I was just looking into doing this exact
upgrade and the 4.2.0 release notes have no mention of this in the
Upgrade from 4.1.x to 4.2.0 section.

Best regards,
Kirk

On 10/09/2013 08:08 PM, Alena Prokharchyk wrote:
 On 10/9/13 7:42 PM, Punit Dambiwal hypu...@gmail.com wrote:
 
 Hi,

 Can anyone help me in this ??


 On Wed, Oct 9, 2013 at 3:25 PM, Punit Dambiwal hypu...@gmail.com wrote:

 Hi,

 Recently i have upgraded CS 4.1.1 to CS 4.2,everything working fine
 except
 VM instance provisioningevery time it failed and throw the following
 error :-

 ---
 Unable to create a deployment for VM[User|test2]
 ---

 In the log file this is what i found abnormal :-

 Resource [Pod:1] is unreachable: Unable to apply userdata and password
 entry on router

 Thanks,
 Punit


 
 Punit, as a part of the upgrade, did you restart your routers so they
 could re-create from the new VR template?
 
 -Alena.
 


Re: Resize data-disk doesn't work after upgrade

2013-10-07 Thread Kirk Kosinski
Hi, I don't know how RBD works.  If there are qcow2 files that you can
see, you can check them with qemu-img.  If there are no files I think
resizing on RBD probably doesn't work since the script that does the
resize only supports resizing qcow2 files and CLVM volumes.

Best regards,
Kirk

On 10/06/2013 06:42 PM, Indra Pramana wrote:
 Dear Marcus, Kirk and all,
 
 Any further recommendations on how can I troubleshoot on this matter to
 pinpoint the cause of the inability to resize the disk, and to find the
 solution to the problem?
 
 Looking forward to your reply, thank you.
 
 Cheers.
 
 
 
 On Fri, Oct 4, 2013 at 3:30 PM, Indra Pramana in...@sg.or.id wrote:
 
 Hi Marcus and Kirk,

 Good day to you, and thank you for your email replies.

 We are using Ceph RBD primary storage. I can't find any error information
 on agent.log, and I have set the logging to verbose (DEBUG) for all.

 Since I am using RBD, am I still able to run the qemu-img info command?

 I check the volumes table contain load of information. How do I check
 which record is referring to the virtual disk in question?

 Looking forward to your reply, thank you.

 Cheers.



 On Fri, Oct 4, 2013 at 6:58 AM, Kirk Kosinski kirkkosin...@gmail.comwrote:

 Yes, if there was a problem it should have been logged in the agent.log.
  If it was successful it may or may not be logged depending on the
 logging level.  While logged on to the hypervisor, check the actual
 virtual disk with qemu-img info /mnt/somepath/filename.  The filename
 can be found in the CloudStack database (the path field for the
 virtual disk in the volumes table).

 Best regards,
 Kirk

 On 10/03/2013 03:47 PM, Marcus Sorensen wrote:
 What primary storage are you using? Any errors in agent log?
 On Oct 3, 2013 3:16 PM, Indra Pramana in...@sg.or.id wrote:

 Hi Marcus,

 Good day to you, and thank you for your e-mail.

 I have tried restarting the VM and even stop and start the VM, but
 after
 logging in to the VM, I still see the hard drive's size as 20 GB
 instead of
 60 GB.

 I tried to check /var/log/libvirt/libvirtd.log file on the KVM host
 where
 the VM is hosted, and can't find any messages related to
 volBlockResize.

 Any other troubleshooting steps you can recommend, i.e. any other area
 I
 can look into?

 Looking forward to your reply, thank you.

 Cheers.



 On Fri, Oct 4, 2013 at 4:46 AM, Marcus Sorensen shadow...@gmail.com
 wrote:

 I just tested local storage qcow2 and CLVM resize on 4.2, they both
 worked.

 Resize works like this:

 1. Do sanity checks
 2. Send resize command to the agent
 3. Resize the disk/lun/file
 4. Inform the VM instance that the disk has changed by making a
 libvirt volBlockResize call (this is not fatal, some guest types can't
 resize online and need to be restarted)
 5. Update the database

 You can check #3 looking at the disks themselves on storage to see if
 they've grown. You can check #4 by restarting the VM to see if it
 picks up the change.

 It may be that libvirt was unable to inform the VM of the change (for
 example if you haven't upgraded to a supported version of Ubuntu or
 CentOS and it has an old libvirt that doesn't support volBlockResize).
  The way to know for sure is stop/start the VM if you can.

 Look at those two things and let us know

 On Thu, Oct 3, 2013 at 2:33 PM, Indra Pramana in...@sg.or.id wrote:
 Dear all,

 After upgrading to 4.2.0, I tried to resize a data disk of a VM
 instance
 from 20 GB to 60 GB, through the Cloudstack GUI. The UI reports that
 the
 resize was successful, and that the data disk is now showing 60 GB
 instead
 of 20 GB. However, when I check the actual disk on the VM, it seems
 that
 it's still 20 GB.

 Any reason what might have been the cause of the problem? I even
 tried
 to
 re-partition it to see if the size changed, but it wasn't and still
 at
 20
 GB. Which logs I need to look into?

 Any help on this is greatly appreciated.

 Looking forward to your reply, thank you.

 Cheers.






 


Re: mem.overprovisioning.facto and KVM

2013-10-07 Thread Kirk Kosinski
There's no support for memory overprovisioning in CS 4.1.1 and earlier.
 That global parameter causes a lot of confusion since despite the name
it does not enable memory overprovisioning.  Memory overprivisioning
support has been added to CS 4.2, but it uses cluster-level settings and
not the global parameter.  This is explained in the admin guide, and the
design details are here:

https://cwiki.apache.org/confluence/display/CLOUDSTACK/CPU+and+RAM+Overcommit

Best regards,
Kirk

has been added in 4.2, but read the documentation

On 10/07/2013 12:09 PM, Sebastien Goasguen wrote:
 
 On Sep 25, 2013, at 2:59 AM, Harikrishna Patnala 
 harikrishna.patn...@citrix.com wrote:
 
 As far as I know men over provisioning is intended to work only with VMWare 
 hypervisor to allocate reserved memory for VM.

 
 @Marcus, could you comment on this: is mem over provisioning supposed to work 
 with KVM ?
 
 On 25-Sep-2013, at 11:11 AM, Nikolay Kabadjov niki...@yahoo.com wrote:

 Yes Kirk, I did



 
 From: Kirk Jantzer kirk.jant...@gmail.com
 To: Cloudstack users mailing list users@cloudstack.apache.org; Nikolay 
 Kabadjov niki...@yahoo.com 
 Sent: Tuesday, September 24, 2013 5:50 PM
 Subject: Re: mem.overprovisioning.facto and KVM



 Did you restart the management service after making the change?



 Regards,

 Kirk Jantzer
 http://about.me/kirkjantzer



 On Tue, Sep 24, 2013 at 10:25 AM, Nikolay Kabadjov niki...@yahoo.com 
 wrote:

 Hi all, 
 I've noticed that increasing mem.overprovisioning.factor doesn't take 
 effect? 
 I mean I still see in the dashboard the exact amount of memory I have 
 multiplying the memory of all the hosts. 

 It's CS 4.1.1 with one zone, one pod, one cluster, 6 KVM hosts 

 Any idea? 

 Thanks 
 Niki

 


Re: Slow network speed to VM instances after upgrade to CloudStack 4.2.0

2013-10-04 Thread Kirk Kosinski
Hi, your observations on Compute Offerings are by design.  They can only
be created and managed by admin accounts, and only the name and
description can be edited.  They can be public or domain-specific, but a
root admin account should be able to view all of them.

Instead of editing existing offerings to set the desired network
throttling, new ones need to be created (using an admin account) and the
VMs updated.  VMs will need to be stopped, and it can be done by a root
admin or the user that owns the VMs.  The change can be made via UI or
API (changeServiceForVirtualMachine command).

But are you sure the Compute Offering is causing this?  Is the Network
Rate on the Compute Offering for the affected VMs set to 2 Mbit/sec?
What hypervisor are the affected VMs running on, and what type of
network (isolated or shared)? The actual network throttling seen by VMs
is complicated and depends on a combination of factors including:

1) Network type (isolate or shared)
2) Hypervisor of the guest
3) Hypervisor of the virtual router (for isolated networks)
4) NIC driver of virtual router (for vSphere)
5) Network Offering for the network
6) Compute Offering for the instance
7) System Service Offering for the virtual router (isolated networks)
8) Direction of traffic (ingress or egress)
9) The vm.network.throttling.rate global parameter
10) The network.throttling.rate zone parameter
11) Actual physical capabilities of the network and hosts

Best regards,
Kirk

On 10/03/2013 08:26 PM, Indra Pramana wrote:
 Dear all,
 
 After CloudStack upgrade to 4.2.0, the network speed to our VM instances is
 very slow and seems to be limited to 2 Mbps for both ingress and egress
 traffic for each instance. It seems that there's some network rate limiting
 which didn't take effect on CloudStack version 4.1.1 or below, but now is
 taking effect on CloudStack 4.2.0.
 
 I read this article on how CloudStack manages the network traffic for the
 VMs:
 
 http://cloudstack.apache.org/docs/en-US/Apache_CloudStack/4.1.1/html/Admin_Guide/network-rate.html
 
 For guest VMs, the network rate-limiting is set on the compute offering
 associate with each VM. Please CMIIW.
 
 All our guest VMs are created under different accounts and have their own
 compute offering, which is auto-created under that specific account when
 the VM instance is created.
 
 The issue is, from admin account, I can't seem to modify the compute
 offering for the guest VMs. If I go to GUI  Service Offerings  Compute
 Offering, I can only see the compute offering for admin account only. How
 can I see and modify the compute offering under different accounts?
 
 Furthermore, it seems that I cannot modify the network rate field of an
 existing compute offering. How do I modify it so that I can set higher
 network rate limit or unlimited bandwidth for an existing guest VM?
 
 Looking forward to your reply, thank you.
 
 Cheers.
 


Re: Create Template on NFS secondary Storage

2013-10-03 Thread Kirk Kosinski
Did you patch the hosts recently?  That is the likely cause.  The
patched NFSSR.py that CloudStack copies to XS hosts can be overwritten
by some patches.  Without the patched NFSSR.py, when secondary storage
is mounted it reverts to the default XenServer behavior of including an
extra directory named after the SR UUID.

One solution is to copy the correct NFSSR.py manually from the
management server to /opt/xensource/sm/NFSSR.py on every XS host.  There
will be several versions of the script in
/usr/share/cloudstack-common/scripts/vm/hypervisor/xenserver/ on the
management server, and you can check the MD5 checksums beforehand to
confirm it is the problem.

Another solution is to force CloudStack to setup the host again, which
includes copying NFSSR.py.  To do this, unmanage the cluster in
Cloudstack, clear the tags parameter for every host in the cluster (xe
host-list, xe host-param-clear uuid=uuid param-name=tags), re-manage
the cluster, and wait a few minutes.

Best regards,
Kirk

On 10/03/2013 12:51 PM, Pierre-Luc Dion wrote:
 Hi all,
 
 We are currently using Cloudstack 4.1.0 managing XenServer 6.0.2 servers.
 
 
 Since recently, I don't know what cause this to appear on our system but
  went we create a template from a Instance the template (.vhd) is upload on
 on the secondary storage (NFS) but in a subdirectory  ex:
 
 from the Storage VM:
 /mnt/SecStorage/7f6f1f2d-2d6f-3ec6-a25e-fb25f2704167/template/tmpl/3/246
 root@s-184-VM:~# ls -l
 total 8
 drwxr-xr-x 2 4294967294 4294967294 4096 Oct  3 19:35
 02ee28f2-0c02-f936-3ca3-099cfe3f3a20
 -rw-rw-rw- 1 4294967294 4294967294  314 Oct  3 19:36 template.properties
 
 root@s-184-VM:~# ls 02ee28f2-0c02-f936-3ca3-099cfe3f3a20/
 fe2fa941-3030-412d-8c35-b0e80a2e7e09.vhd
 
 
 So, when we create a new Instance from the template, the Instance creation
 fail with the following error in the management-server.log:
 
 2013-10-03 15:48:01,190 WARN  [xen.resource.CitrixResourceBase]
 (DirectAgent-255:null) Catch Exception
 com.cloud.utils.exception.CloudRuntimeException on
 host:9a02ac57-bc92-43af-b50a-f5ba2d0fd806 for template: nfs://
 172.24.1.120/data/secondary/template/tmpl/3/246/fe2fa941-3030-412d-8c35-b0e80a2e7e09.vhddue
 to com.cloud.utils.exception.CloudRuntimeException: can not create vdi
 in sr 451078ee-d335-bdb0-c41c-cd86524be3ea
 
 if I move the VHD file in the 246 folder, it works !
 
 Does anyone have this problem too  or have an idea of where it would come
 from ?
 
 Thanks !
 
 
 Pierre-Luc Dion
 Responsable technique - infrastructure | Technical lead - infrastructure
 - - -*
 CloudOps
 *www.cloudops.com
 @CloudOps_
 


Re: Cloudstack 4.1

2013-10-02 Thread Kirk Kosinski
Hi, the log shows a VM being destroyed, which doesn't match the
description of the problem.  If the description is correct, upload more
of the load to Pastebin.  The log that needs to be provided will most
likely include the error text from the UI.

Best regards,
Kirk

On 10/02/2013 09:59 AM, motty cruz wrote:
 Hello,
 I'm trying to build a VM but I get the following error Unable to create a
 deployment for VM[User]test4]
 
 primary storage is up CLVM,
 secondary storage nfs is up
 
 logs:
 2013-10-02 09:46:07,885 DEBUG [cloud.async.AsyncJobManagerImpl]
 (catalina-exec-1:null) submit async job-50, details: AsyncJobVO {id:50,
 userId: 2, accountId: 2, sessionKey: null, instanceT
 ype: VirtualMachine, instanceId: 8, cmd:
 org.apache.cloudstack.api.command.user.vm.DestroyVMCmd, cmdOriginator:
 null, cmdInfo: {id:9a48d353-f57a-46b4-8a32-3f09fa114409,response:json
 ,sessionkey:XXXUS8OPHkdR1qhkb8bAUYFHfps\u003d,ctxUserId:2,_:1380732367999,ctxAccountId:2,ctxStartEventId:204},
 cmdVersion: 0, callbackType: 0, callbackAddress: null, s
 tatus: 0, processStatus: 0, resultCode: 0, result: null, initMsid:
 73644477032, completeMsid: null, lastUpdated: null, lastPolled: null,
 created: null}
 2013-10-02 09:46:07,887 DEBUG [cloud.async.AsyncJobManagerImpl]
 (Job-Executor-3:job-50) Executing
 org.apache.cloudstack.api.command.user.vm.DestroyVMCmd for job-50
 2013-10-02 09:46:07,892 DEBUG [cloud.api.ApiServlet] (catalina-exec-1:null)
 ===END===  ... -- GET
  
 command=destroyVirtualMachineid=9a48d353-f57a-46b4-8a32-3f09fa114409response=j
 sonsessionkey=XXXUS8OPHkdR1qhkb8bAUYFHfps%3D_=1380732367999
 2013-10-02 09:46:07,946 DEBUG [cloud.vm.VirtualMachineManagerImpl]
 (Job-Executor-3:job-50) Destroying vm VM[User|test4]
 2013-10-02 09:46:07,947 DEBUG [cloud.vm.VirtualMachineManagerImpl]
 (Job-Executor-3:job-50) Stopped called on VM[User|test4] but the state is
 Error
 2013-10-02 09:46:07,963 DEBUG [cloud.capacity.CapacityManagerImpl]
 (Job-Executor-3:job-50) VM state transitted from :Error to Expunging with
 event: DestroyRequestedvm's original host id: n
 ull new host id: null host id before state transition: null
 2013-10-02 09:46:08,001 DEBUG [cloud.async.AsyncJobManagerImpl]
 (Job-Executor-3:job-50) Complete async job-50, jobStatus: 1, resultCode: 0,
 result: org.apache.cloudstack.api.response.UserV
 mResponse@2d453a4b
 2013-10-02 09:46:08,017 DEBUG [cloud.async.AsyncJobManagerImpl]
 (Job-Executor-3:job-50) Done executing
 org.apache.cloudstack.api.command.user.vm.DestroyVMCmd for job-50
 2013-10-02 09:46:10,931 DEBUG [cloud.api.ApiServlet] (catalina-exec-5:null)
 ===START===...-- GET
  
 command=queryAsyncJobResultjobId=16b35e61-cedd-4173-90ce-aad61486b001respons
 e=jsonsessionkey=XXXUS8OPHkdR1qhkb8bAUYFHfps%3D_=1380732371066
 2013-10-02 09:46:10,974 DEBUG [cloud.async.AsyncJobManagerImpl]
 (catalina-exec-5:null) Async job-50 completed
 2013-10-02 09:46:11,003 DEBUG [cloud.api.ApiServlet] (catalina-exec-5:null)
 ===END===... -- GET
  command=queryAsyncJobResultjobId=16b35e61-cedd-4173-90ce-aad6148
 


Re: how does Cloudstack change reset password works?

2013-10-01 Thread Kirk Kosinski
Was the additional IP assigned through CloudStack or only on the VM?  If
CloudStack knows about the IP, the script should still work; if it
doesn't, it may be a bug.  If CloudStack does not know about the IP then
it won't work.

Best regards,
Kirk

On 10/01/2013 04:34 AM, Rafael Weingartner wrote:
 Thanks Kirk,
 
 I just asked because I had a problem,
 
 I assigned another IP address to the interface eth0 on the VM, eth0:0.
 
 And it seems that after a reboot the VM changed the password and I am
 not able to change it again.
 
 I was making some tests and when I execute wget -q -t 3 -T 20 -O -
 --header DomU_Request: send_my_password $PASSWORD_SERVER_IP:8080 from
 IP address that is not managed by CS the router returns (empty), then
 the password is change to empty.
 
 You really helped, I am now going to check the serve_password.sh and
 /var/cache/cloud/passwords to see if I can work this around.


Re: Failed to deserialize json object

2013-09-28 Thread Kirk Kosinski
Hi, those errors are more of a symptom that system VMs weren't restarted
rather than something that would prevent them from being restarted (via
script or manually).  If the script is not working, did you try
restarting the system VMs manually?  If not, try doing so using the
CloudStack UI or API.

If the system VMs have already been restarted and you are still seeing
these errors, it may be this bug:

https://issues.apache.org/jira/browse/CLOUDSTACK-3377

If you're using XenServer, follow the solution in the bug comments.  For
vSphere and KVM, verify that the MD5 of systemvm-4.2.0.iso on secondary
storage matches the one on the management server at
/usr/share/cloudstack-common/vms/systemvm.iso.

Once the ISO is consistent on the management server, XenServer hosts and
secondary storage, destroy the system VMs and wait for them to recreate,
this time with the correct systemvm.iso.

Best regards,
Kirk

On 09/25/2013 04:12 AM, Indra Pramana wrote:
 Dear all,
 
 During my upgrade attempt from CloudStack 4.1.1 to 4.2.0 earlier this week,
 I failed on the step when I need to run the cloudstack-sysvmadm script to
 restart the system VMs.
 
 nohup cloudstack-sysvmadm -d IP address -u cloud -p -a  sysvm.log 21 
 
 When I scrutinize the management server's logs, I saw these error messages
 related to the console proxy system VM:
 
 
 2013-09-24 02:35:37,722 ERROR [agent.transport.Request]
 (AgentManager-Handler-4:null) Caught problem with
 [{ConsoleProxyLoadReportCommand:{_proxyVmId:1903,_loadInfo:{\n
 \connections\: []\n},contextMap:{},wait:0}}]
 com.google.gson.JsonParseException: The JsonDeserializer
 com.cloud.agent.transport.ArrayTypeAdaptor@1c74f356 failed to deserialize
 json object
 [{ConsoleProxyLoadReportCommand:{_proxyVmId:1903,_loadInfo:{\n
 \connections\: []\n},contextMap:{},wait:0}}] given the type class
 [Lcom.cloud.agent.api.Command;
 
 
 More detailed logs can be found on pastebin: http://pastebin.com/EmPF8EMp
 
 Could it be the reason why the cloudstack-sysvmadm script is unable to
 restart the system VM?
 
 Looking forward to your reply, thank you.
 
 Cheers.
 


Re: cloud-set-guest-password script for ArchLinux?

2013-09-27 Thread Kirk Kosinski
Hi, did you try any of the existing scripts?  One or more of them will
probably work as-is or with minor modifications.  The primary
requirement is to use a compatible DHCP client like the ISC DHCP client
(dhclient).

Best regards,
Kirk


On 09/26/2013 11:06 PM, Indra Pramana wrote:
 Dear all,
 
 I am trying to create CloudStack OS template for ArchLinux. However, I am
 not able to find the cloud-set-guest-password password management template
 script for ArchLinux. Under the shankerbalan's github site, there are only
 scripts for CentOS, Ubuntu, Debian, FreeBSD and SLES:
 
 https://github.com/shankerbalan/cloudstack-scripts
 
 Where can I get the password management template script for ArchLinux?
 
 Looking forward to your reply, thank you.
 
 Cheers.
 


Re: Help with host network config KVM + Centos

2013-09-20 Thread Kirk Kosinski
Open vSwitch is not required.  For this configuration I don't think any
special configuration is required on the host or in CloudStack.  Try
simply adding the host.  CloudStack should detect the default gateway on
eth0 and create the necessary bridge on it.  All traffic types will use
that bridge by default.

My main concern is if CloudStack will work with the multi-homed
configuration.  If after adding the host you find that the CPVM is not
working, it may be trying and failing to connect to 10.3.9.50, so you
may need to explicitly configure management traffic to use eth1.  This
is done by creating a bridge on eth1 and updating the traffic label in
CloudStack.

Best regards,
Kirk

On 09/20/2013 08:36 AM, Ron Wheeler wrote:
 This is what I was trying to do without success as well.
 More details greatly appreciated!
 
 Ron
 On 20/09/2013 11:26 AM, David Ortiz wrote:
 Jake,
   Are you trying to just get something up and running, or do you
 specifically want to divide traffic up in a certain way?  If the
 former, I believe I was able to set my hosts up with just the bridge
 setup pointing at eth0 without any sort of VLANs.  It was either that,
 or without special setup of any kind.
 Thanks,  Dave

 Date: Tue, 17 Sep 2013 22:05:32 -0700
 From: dj_dark_jungl...@yahoo.com
 Subject: Help with host network config KVM + Centos
 To: users@cloudstack.apache.org

 Hi all,


 I have a single centOS 6.4 KVM host with two NICs

 eth0: 192.168.100.131/24 GW 192.168.100.254 is for public access
 (internet access)
 eth1: 10.3.9.50/8 no GW is for management access

 Could someone please help me with the initial configuration to work
 with KVM and Cloudstack?
 This setup is different than the documentation. I do not want to use
 openvswitch if possible.

 Thank you for your help in advance!
  
 
 


Re: Help! After network outage, can't start System VMs; focused debug info attached

2013-09-17 Thread Kirk Kosinski
Hi, here is the error:

2013-09-16 15:08:17,168 DEBUG [agent.transport.Request]
(AgentManager-Handler-5:null) Seq 13-931004532: Processing:  { Ans: ,
MgmtId: 161340856362, via: 13, Ver: v1, Flags: 110,
[{storage.CreateAnswer:{requestTemplateReload:false,result:false,details:Exception:
com.cloud.utils.exception.CloudRuntimeException\nMessage:
org.libvirt.LibvirtException: Storage volume not found: no storage vol
with matching name 'f23a16e7-b628-429e-83e1-698935588465'\nStack:
com.cloud.utils.exception.CloudRuntimeException:
org.libvirt.LibvirtException: Storage volume not found: no storage vol
with matching name 'f23a16e7-b628-429e-83e1-698935588465'\n\tat
com.cloud.hypervisor.kvm.storage.LibvirtStorageAdaptor.getVolume(LibvirtStorageAdaptor.java:90)\n\tat
com.cloud.hypervisor.kvm.storage.LibvirtStorageAdaptor.getPhysicalDisk(LibvirtStorageAdaptor.java:437)\n\tat
com.cloud.hypervisor.kvm.storage.LibvirtStoragePool.getPhysicalDisk(LibvirtStoragePool.java:123)\n\tat
com.cloud.hypervisor.kvm.resource.LibvirtComputingResource.execute(LibvirtComputingResource.java:1279)\n\tat
com.cloud.hypervisor.kvm.resource.LibvirtComputingResource.executeRequest(LibvirtComputingResource.java:1072)\n\tat
com.cloud.agent.Agent.processRequest(Agent.java:525)\n\tat
com.cloud.agent.Agent$AgentRequestHandler.doTask(Agent.java:852)\n\tat
com.cloud.utils.nio.Task.run(Task.java:83)\n\tat
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)\n\tat
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)\n\tat
java.lang.Thread.run(Thread.java:679)\n,wait:0}}] }

I'm not certain what volume it is complaining about, but I suspect
secondary storage.  Log on to a host (in particular host 13 [1] since it
is confirmed to suffer from the issue) and try to manually mount the
full path of the directory with the system VM template of the secondary
storage NFS share [2].  The idea is to confirm the share and
subdirectories of the share are mountable.  Maybe during the maintenance
some hosts changed IPs and/or the secondary storage NFS share
permissions (or other settings) were messed up.

If the mount doesn't work, fix whatever is causing it.  If it does work,
please collect additional info.  Enable DEBUG logging on the hosts [3]
(if necessary), wait for the error to occur, and upload the agent.log
from the host with the error.  It should have more details besides the
exception shown in the management-server.log.  If you have a lot of
hosts and don't want to enable DEBUG logging on every one, temporarily
disable most of them and do it on the remaining few.

Best regards,
Kirk

[1] 13 is the id of the host in the CloudStack database, so find out
which host it is with:
select * from `cloud`.`host` where id = 13 \G

[2] Something like:
nfshost:/share/template/tmpl/2/123

[3] In /etc/cloudstack/agent/log4j-cloud.xml, set the Threshold for FILE
and com.cloud to DEBUG.  Depending on the CloudStack version, it may or
may not be enabled by default, and the path may be /etc/cloud/agent/.


On 09/16/2013 07:36 PM, sriharsha work wrote:
 Replying on behalf of Matt. We are able to write data to the Nfs drives.
 That's not an issue.
 
 Thanks
 Sriharsha
 
 Sent from my iPhone
 
 On Sep 16, 2013, at 19:30, Ahmad Emneina aemne...@gmail.com wrote:

 Try to mount your primary storage to a compute host and try to write to it.
 Your NFS server might not have come back up properly (settings-wise or all
 the relevant services).
 On Sep 16, 2013 6:08 PM, Matt Foley mfo...@hortonworks.com wrote:

 Thank you Chiradeep.  Log snippet now available as http://apaste.info/qBIB
 --Matt

 On Mon, Sep 16, 2013 at 5:19 PM, Chiradeep Vittal 
 chiradeep.vit...@citrix.com wrote:

 Attachments are stripped. Can you paste (say at http://apaste.info/)

 From: Matt Foley mfo...@hortonworks.com
 Date: Monday, September 16, 2013 4:58 PM

 We had a planned network outage this weekend, which inadvertently
 resulted
 in making the NFS Shared Primary Storage (used by System VMs) unavailable
 for a day and a half.  (Guest VMs use local storage only, but System VMs
 use shared storage only.)  Cloudstack was not brought down prior to the
 outage.

 After network came back, we gracefully brought down all services
 including
 cloudstack-management, mysql, and NFS, then actually rebooted all servers
 in the cluster and the NFS server (to make sure no stale file handles),
 then brought up services in the appropriate order.  Also checked mysql
 for
 table corruption, and found none.  Confirmed that the NFS volumes are
 mountable from all hosts, and in fact Shared Primary Storage is being
 mounted by cloudstack on hosts as usual, under /mnt/uuid.

 Nevertheless, when try to bring up the cluster, we fail to start the
 system VMs, with errors InsufficientServerCapacityException: Unable to
 create a deployment for VM.  The cause is not really insufficient
 capacity, as actual usage of resources is tiny; these error messages are
 false explanations of the 

Re: CS Mgmt Server can't connect to virtual router by management network

2013-09-14 Thread Kirk Kosinski
Is this a new or existing installation?  If there are existing
functional virtual routers, how does the routing table compare to the
broken one?  Does the broken virtual router at least have a management
IP in the correct range (the range configured for the pod)?  Did you try
a stop/start of the virtual router, or destroy/recreate it?

System VMs on shared networks will use the guest network as the default
gateway, but IIRC they will also be configured with a static route on
the management network to the network of the management server.  Is the
host parameter in Global Settings correctly configured to the IP of
the management server or a load balancer for a cluster of management
servers?

Best regards,
Kirk

On 09/13/2013 05:01 PM, caowei wrote:
 I confirmed that my VLAN B can reach  VLAN C, and VLAN C also can reach VLAN 
 B .But the problem is that there is no gateway be set for VLAN B in vRouter,  
 there is only a default gateway for VLAN A, So the VLAN B ip address can't be 
 reached from VLAN C and any other VLANs. 
 
 You know if the management server can't connect to vrouter's management ip 
 address(in VLAN B), the vrouter can't be running status.
 
 
 
 
 
 
 From: Sanjeev Neelarapu
 Date: 2013-09-13 13:33
 To: users@cloudstack.apache.org; caow
 Subject: RE: CS Mgmt Server can't connect to virtual router by management 
 network
 Hi,
 
 In shared network VR does not act as a gateway for any of the network. So 
 your network infrastructure has to take care of the reachability from one 
 vlan to another vlan. i.e. on your gateway make sure that you have a route to 
 reach from Vlan B to Vlan C
 
 Thanks,
 Sanjeev
 
 -Original Message-
 From: caowei [mailto:c...@travelsky.com] 
 Sent: Thursday, September 12, 2013 8:33 PM
 To: users
 Subject: CS Mgmt Server can't connect to virtual router by management network
 
 In cloudstack 4.0.1 with vmware vsphere 5 as the hypervisor,  I  create a 
 shared network use default shared network offering. 
 
 when I  create a vm in this shared network , the vrouter be created at first, 
 and the vrouter will be assigned 2 IP address . The firtst is in the VLAN A 
 which is for guest network, and the second is in the VLAN B which is for the 
 management network( locallink network) , and  my CS management server is in 
 the VLAN C. Then I find that the mgmt server cannot communicate with the 
 vrouter by the management network. The vrouter is in a starting status and 
 the VM cannot be created.
 
 Then I login  the vrouter and I find that the default gateway is set the VLAN 
 A's gateway,  and the VLAN B's IP address not have a gateway. So my mgmt 
 server can't connect to the vrouter.
 
 So what can I do to let my mgmt server connect to the vrouter?
 


  1   2   >