Advanced networking adding a host

2018-07-03 Thread Jon Marshall
Trying to setup advanced networking using KVM CS v4.11


When I try to add the first host in the initial setup I get this in the 
management-server log -



local), Ver: v1, Flags: 110, { ReadyAnswer } }
2018-07-03 10:30:37,489 DEBUG [c.c.u.s.SSHCmdHelper] 
(qtp788117692-16:ctx-c7a9deda ctx-9bbb3bea) (logid:2e852372) SSH command: 
cloudstack-setup-agent  -m 172.30.3.2 -z 1 -p 1 -c 1 -g 
9f2b15cb-1b75-321b-bf59-f83e7a5e8efb -a -s  --pubNic=cloudbr1 --prvNic=cloudbr0 
--guestNic=cloudbr1 --hypervisor=kvm
SSH command output:
Usage: cloudstack-setup-agent [options]

cloudstack-setup-agent: error: no such option: -s

2018-07-03 10:30:37,489 INFO  [c.c.h.k.d.LibvirtServerDiscoverer] 
(qtp788117692-16:ctx-c7a9deda ctx-9bbb3bea) (logid:2e852372) cloudstack agent 
setup command failed: cloudstack-setup-agent  -m 172.30.3.2 -z 1 -p 1 -c 1 -g 
9f2b15cb-1b75-321b-bf59-f83e7a5e8efb -a -s  --pubNic=cloudbr1 --prvNic=cloudbr0 
--guestNic=cloudbr1 --hypervisor=kvm

and sure enough there is no "-s" option according to the agent -


 cloudstack-setup-agent -h
Usage: cloudstack-setup-agent [options]

Options:
  -h, --helpshow this help message and exit
  -aauto mode
  -m MGT, --host=MGTManagement server hostname or IP-Address
  -z ZONE, --zone=ZONE  zone id
  -p POD, --pod=POD pod id
  -c CLUSTER, --cluster=CLUSTER
cluster id
  -t HYPERVISOR, --hypervisor=HYPERVISOR
hypervisor type
  -g GUID, --guid=GUID  guid
  --pubNic=PUBNIC   Public traffic interface
  --prvNic=PRVNIC   Private traffic interface
  --guestNic=GUESTNIC   Guest traffic interface

anyone have an idea what the management server thinks the "-s"  option is meant 
to be (storage ??)






Re: [SOLVED] Adding a host

2014-04-02 Thread Jonathan Gowar
Finally I have been able to add a host.  

This failed for 2 reasons, firstly I didn't edit libvirtd.conf
correctly; with mdns_adv = 1 , it should equal 0, this prevented
libvirtd from starting, and thus in turn cloudstack-agent.

Secondly, I don't know if there's a typo in the documentation, but I had
to use this network interface configuration; swapping eth0 and
cloudbr0's static and manual lines:-

# The primary network interface
auto eth0
iface eth0 inet manual

# Public network
auto cloudbr0
iface cloudbr0 inet static
address 192.168.42.11
netmask 255.255.255.240
gateway 192.168.42.1
dns-nameservers 8.8.8.8 8.8.4.4
dns-domain lab.example.org`
bridge_ports eth0
bridge_fd 5
bridge_stp off
bridge_maxwait 1

# Private network
auto cloudbr1
iface cloudbr1 inet manual
bridge_ports none
bridge_fd 5
bridge_stp off
bridge_maxwait 1



Re: Adding a host

2014-04-02 Thread Jonathan Gowar
I removed the vLAN and swapped eth0 with cloudbr0 before it would even
communicate.  Not sure if that's a typo in the documentation, or if I've
just kludged it through.

Now when I attempt to add the host I get this output from setup.log

DEBUG:root:execute:uname -r
DEBUG:root:execute:uname -m
DEBUG:root:execute:hostname -f
DEBUG:root:execute:kvm-ok
DEBUG:root:execute:service apparmor status
DEBUG:root:execute:apparmor_status |grep libvirt
DEBUG:root:Failed to execute:
DEBUG:root:execute:sudo /usr/sbin/service libvirt-bin status
DEBUG:root:execute:sudo /usr/sbin/service libvirt-bin stop
DEBUG:root:Failed to execute:stop: Unknown instance:
DEBUG:root:execute:sudo update-rc.d -f libvirt-bin remove
DEBUG:root:execute:sudo update-rc.d -f libvirt-bin defaults
DEBUG:root:execute:sudo /usr/sbin/service libvirt-bin status
DEBUG:root:execute:sudo /usr/sbin/service libvirt-bin start
DEBUG:root:execute:ufw allow 22
DEBUG:root:execute:ufw allow 1798
DEBUG:root:execute:ufw allow 16509
DEBUG:root:execute:ufw allow proto tcp from any to any port 5900:6100
DEBUG:root:execute:ufw allow proto tcp from any to any port 49152:49216
DEBUG:root:execute:sudo /usr/sbin/service ufw status
DEBUG:root:execute:sudo /usr/sbin/service ufw stop
DEBUG:root:execute:sudo /usr/sbin/service ufw status
DEBUG:root:execute:sudo /usr/sbin/service ufw start
DEBUG:root:execute:sudo /usr/sbin/service cloudstack-agent status
DEBUG:root:Failed to execute: * could not access PID file for
cloudstack-agent
DEBUG:root:execute:sudo /usr/sbin/service cloudstack-agent stop
DEBUG:root:execute:sleep 30
DEBUG:root:execute:sudo update-rc.d -f cloudstack-agent remove
DEBUG:root:execute:sudo update-rc.d -f cloudstack-agent defaults
DEBUG:root:execute:sudo /usr/sbin/service cloudstack-agent status
DEBUG:root:Failed to execute: * could not access PID file for
cloudstack-agent
DEBUG:root:execute:sudo /usr/sbin/service cloudstack-agent start

Any ideas what causes this, as I've scanned the internet to no avail.

Regards,
Jon

On Wed, 2014-04-02 at 15:38 +0100, Jonathan Gowar wrote:
> Hi,
> 
>  I am building a new small CloudStack.  I have the Managment server and
> DB together, and have a separate Storage server.  The UI is operational,
> so some success.
> 
> I would now like to add a host.  I followed this guide
> https://cloudstack.apache.org/docs/en-US/Apache_CloudStack/4.2.0/html/Installation_Guide/hypervisor-kvm-install-flow.html
>  specifically the bit about networking:-
> 
> auto lo
> iface lo inet loopback
> 
> # The primary network interface
> auto eth0.100
> iface eth0.100 inet static
> address 192.168.42.11
> netmask 255.255.255.240
> gateway 192.168.42.1
> dns-nameservers 8.8.8.8 8.8.4.4
> dns-domain lab.example.org
> 
> # Public network
> auto cloudbr0
> iface cloudbr0 inet manual
> bridge_ports eth0.200
> 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
> 
> After doing this, and rebooting I lose connectivity.  This is because
> eth0 is now tagged as suggested in the guide, but I don't think there is
> vLAN tagging on the rest of the network.
> 
> What's the easy solution to this?
> 
> Is it documented how to vLAN correctly the rest of my installation?
> 
> Regards,
> Jon
> 




Adding a host

2014-04-02 Thread Jonathan Gowar
Hi,

 I am building a new small CloudStack.  I have the Managment server and
DB together, and have a separate Storage server.  The UI is operational,
so some success.

I would now like to add a host.  I followed this guide
https://cloudstack.apache.org/docs/en-US/Apache_CloudStack/4.2.0/html/Installation_Guide/hypervisor-kvm-install-flow.html
 specifically the bit about networking:-

auto lo
iface lo inet loopback

# The primary network interface
auto eth0.100
iface eth0.100 inet static
address 192.168.42.11
netmask 255.255.255.240
gateway 192.168.42.1
dns-nameservers 8.8.8.8 8.8.4.4
dns-domain lab.example.org

# Public network
auto cloudbr0
iface cloudbr0 inet manual
bridge_ports eth0.200
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

After doing this, and rebooting I lose connectivity.  This is because
eth0 is now tagged as suggested in the guide, but I don't think there is
vLAN tagging on the rest of the network.

What's the easy solution to this?

Is it documented how to vLAN correctly the rest of my installation?

Regards,
Jon



Re: Adding a host with running VM's issu

2014-03-04 Thread Daan Hoogland
thirsty!

On Tue, Mar 4, 2014 at 6:01 PM, John Kinsella  wrote:
> This would be a super-cool feature to add to ACS. It's sorta the 
> cloud-orchestration equivalent of having to add 1000 nodes to nagios.  Would 
> be interesting to discuss with folks over a tasty beverage in Denver...
>
> On Mar 4, 2014, at 2:44 AM, Badi  wrote:
>
>> hello cloudstack users,
>>
>> Can any one tell me why cloudstack dont allow us to add hosts running VM's
>> ???
>>
>> thx
>>
>>
>>
>
>



-- 
Daan


Re: Adding a host with running VM's issu

2014-03-04 Thread John Kinsella
This would be a super-cool feature to add to ACS. It’s sorta the 
cloud-orchestration equivalent of having to add 1000 nodes to nagios.  Would be 
interesting to discuss with folks over a tasty beverage in Denver...

On Mar 4, 2014, at 2:44 AM, Badi  wrote:

> hello cloudstack users,
> 
> Can any one tell me why cloudstack dont allow us to add hosts running VM's  
> ??? 
> 
> thx
> 
> 
> 




RE: Adding a host with running VM's issu

2014-03-04 Thread Dubravko Sever
Hi, 

I have the same problem. Because most of my clients are outside of organisation 
so donwtime is not an option. So it there any kind of procedure that can be 
created (or exists) in case we want to migrate existing infrastructure into the 
clodustack (convert to IaaS). Something like script that will scan all running 
VM-s and import them inside of cloud.  I believe VM volume can be managed by 
using storage migation (in case of XenServer or VmWare).

In my case that's the critical  issue, so we are looking solution that can 
convert out xensever infrastructure into the IaaS

Tnx
Dubravko 



-- 
Dubravko Sever
Sektor za računalne sustave
Sveučilište u Zagrebu, Sveučilišni računski centar (Srce), www.srce.unizg.hr
dubravko.se...@srce.hr, tel: +385 1 616 5807, fax: +385 1 616 5559


> -Original Message-
> From: Daan Hoogland [mailto:daan.hoogl...@gmail.com]
> Sent: Tuesday, March 04, 2014 12:53 PM
> To: users@cloudstack.apache.org
> Subject: Re: Adding a host with running VM's issu
> 
> H Badi,
> 
> Cloudstack needs to be in control of what is running on the hosts. As work
> around create templates from the vms and deploy then deploy them from
> cloudstack after adding the host
> 
> regards,
> Daan
> 
> On Tue, Mar 4, 2014 at 11:44 AM, Badi  wrote:
> > hello cloudstack users,
> >
> > Can any one tell me why cloudstack dont allow us to add hosts running
> > VM's ???
> >
> > thx
> >
> >
> >
> 
> 
> 
> --
> Daan


Re: Adding a host with running VM's issu

2014-03-04 Thread Daan Hoogland
H Badi,

Cloudstack needs to be in control of what is running on the hosts. As
work around create templates from the vms and deploy then deploy them
from cloudstack after adding the host

regards,
Daan

On Tue, Mar 4, 2014 at 11:44 AM, Badi  wrote:
> hello cloudstack users,
>
> Can any one tell me why cloudstack dont allow us to add hosts running VM's
> ???
>
> thx
>
>
>



-- 
Daan


Adding a host with running VM's issu

2014-03-04 Thread Badi
hello cloudstack users,

Can any one tell me why cloudstack dont allow us to add hosts running VM's  
??? 

thx





Re: Adding a host

2013-07-25 Thread Chip Childers
On Thu, Jul 25, 2013 at 10:57:41AM +, Chitra Manjunath wrote:
> Hi ALL,
> 
> I installed the cloudstack successfully, Now I want to add Vsphere host into 
> cloudstack through UI.
> 
> Where I need to install the cloud-agent in ESXi hosts means in Vcenter or 
> exactly on the host?
> 

cloudstack-agent isn't required for ESXi or XenServer environments.
That's KVM only.  In the case of ESXi, communication from the CloudStack
management server to the hosts is via vCenter.

> Can anyone please explain briefly how to setup the primary Network, what are 
> the components we need like DHCP, DNS servers.

Installation instructions can be found here:
http://cloudstack.apache.org/docs/

> 
> 
> Thanks & Regards
> Chitra.M
> 
> 
>  CAUTION - Disclaimer *
> This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely
> for the use of the addressee(s). If you are not the intended recipient, please
> notify the sender by e-mail and delete the original message. Further, you are 
> not
> to copy, disclose, or distribute this e-mail or its contents to any other 
> person and
> any such actions are unlawful. This e-mail may contain viruses. Infosys has 
> taken
> every reasonable precaution to minimize this risk, but is not liable for any 
> damage
> you may sustain as a result of any virus in this e-mail. You should carry out 
> your
> own virus checks before opening the e-mail or attachment. Infosys reserves the
> right to monitor and review the content of all messages sent to or from this 
> e-mail
> address. Messages sent to or from this e-mail address may be stored on the
> Infosys e-mail system.
> ***INFOSYS End of Disclaimer INFOSYS***


Adding a host

2013-07-25 Thread Chitra Manjunath
Hi ALL,

I installed the cloudstack successfully, Now I want to add Vsphere host into 
cloudstack through UI.

Where I need to install the cloud-agent in ESXi hosts means in Vcenter or 
exactly on the host?

Can anyone please explain briefly how to setup the primary Network, what are 
the components we need like DHCP, DNS servers.


Thanks & Regards
Chitra.M


 CAUTION - Disclaimer *
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely
for the use of the addressee(s). If you are not the intended recipient, please
notify the sender by e-mail and delete the original message. Further, you are 
not
to copy, disclose, or distribute this e-mail or its contents to any other 
person and
any such actions are unlawful. This e-mail may contain viruses. Infosys has 
taken
every reasonable precaution to minimize this risk, but is not liable for any 
damage
you may sustain as a result of any virus in this e-mail. You should carry out 
your
own virus checks before opening the e-mail or attachment. Infosys reserves the
right to monitor and review the content of all messages sent to or from this 
e-mail
address. Messages sent to or from this e-mail address may be stored on the
Infosys e-mail system.
***INFOSYS End of Disclaimer INFOSYS***


next try: installation on one machine in my home environment, problem: adding a host

2013-06-01 Thread A S

Hi there again,
i wanted to install cloudstack on my simgle machine in my home environment.
so there is my router acting as dhcp for internet connection.
i used ubuntu 12.04 with kvm.
i've been able to install cloudstack, but adding a host does not work.
cloudstack stays in creating state for a long while and then says error.
i don't know why.
maybe because of my router acting as a dhcp or because i need more open 
ports in the router or something else.
the file /etc/network/interfaces does not show any interfaces although 
ipconfig does show some.


here are some logs, maybe you can figure out what's the issue here.
setupManagement.log:

DEBUG:root:execute:uname -r

DEBUG:root:execute:uname -m

DEBUG:root:execute:hostname -f

DEBUG:root:execute:iptables-save|grep INPUT|grep -w 8080

DEBUG:root:Failed to execute:

DEBUG:root:execute:ufw allow 8080/tcp

DEBUG:root:execute:iptables-save|grep INPUT|grep -w 7080

DEBUG:root:Failed to execute:

DEBUG:root:execute:ufw allow 7080/tcp

DEBUG:root:execute:iptables-save|grep INPUT|grep -w 8250

DEBUG:root:Failed to execute:

DEBUG:root:execute:ufw allow 8250/tcp

DEBUG:root:execute:iptables-save|grep INPUT|grep -w 9090

DEBUG:root:Failed to execute:

DEBUG:root:execute:ufw allow 9090/tcp

DEBUG:root:execute:sudo chmod 0777 /root

DEBUG:root:execute:rm -f /etc/cloud/management/server.xml

DEBUG:root:execute:rm -f /etc/cloud/management/tomcat6.conf

DEBUG:root:execute:ln -s /etc/cloud/management/server-nonssl.xml 
/etc/cloud/management/server.xml


DEBUG:root:execute:ln -s /etc/cloud/management/tomcat6-nonssl.conf 
/etc/cloud/management/tomcat6.conf


DEBUG:root:execute:hostname --fqdn

DEBUG:root:execute:mkdir /var/log/cloud-management/

DEBUG:root:execute:sudo /usr/sbin/service tomcat6 status

DEBUG:root:execute:sudo /usr/sbin/service tomcat6 stop

DEBUG:root:execute:sudo update-rc.d -f tomcat6 remove

DEBUG:root:execute:sudo /usr/sbin/service cloud-management status

DEBUG:root:Failed to execute: * CloudStack-specific Tomcat servlet 
engine is not running.


DEBUG:root:execute:sudo /usr/sbin/service cloud-management stop

DEBUG:root:execute:sudo update-rc.d -f cloud-management remove

DEBUG:root:execute:sudo update-rc.d -f cloud-management defaults

DEBUG:root:execute:sudo /usr/sbin/service cloud-management status

DEBUG:root:Failed to execute: * CloudStack-specific Tomcat servlet 
engine is not running.


DEBUG:root:execute:sudo /usr/sbin/service cloud-management start


agent.log:

2013-06-01 17:43:25,715 ERROR [kvm.storage.LibvirtStorageAdaptor] 
(Agent-Handler-1:null) org.libvirt.LibvirtException: XML error: missing 
pool source name element


2013-06-01 17:43:25,716 WARN [utils.nio.Task] (Agent-Handler-1:null) 
Caught the following exception but pushing on


java.lang.NullPointerException

at 
com.cloud.hypervisor.kvm.storage.LibvirtStorageAdaptor.createStoragePool(LibvirtStorageAdaptor.java:539) 



at 
com.cloud.hypervisor.kvm.storage.KVMStoragePoolManager.createStoragePool(KVMStoragePoolManager.java:57) 



at 
com.cloud.hypervisor.kvm.resource.LibvirtComputingResource.initialize(LibvirtComputingResource.java:3328) 



at com.cloud.agent.Agent.sendStartup(Agent.java:320)

at com.cloud.agent.Agent$ServerHandler.doTask(Agent.java:850)

at com.cloud.utils.nio.Task.run(Task.java:83)

at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146) 



at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) 



at java.lang.Thread.run(Thread.java:679)


thanks for any help =)