> The kind of error is different so that is a progress, I could add one host but in alert status, not up, maybe i need to delete the whole zone, and create everything from scratch?
any errors in the /var/log/cloudstack/agent/agent.log ? > in a common scenario cloudstack-agent should be configured by itself right? yes, when a host is added. On Wed, 24 Jan 2024 at 14:05, Francisco Arencibia Quesada < arencibia.franci...@gmail.com> wrote: > The kind of error is different so that is a progress, I could add one host > but in alert status, not up, maybe i need to delete the whole zone, and > create everything > from scratch? in a common scenario cloudstack-agent should be configured by > itself right? > > > > On Wed, Jan 24, 2024 at 12:30 PM Francisco Arencibia Quesada < > arencibia.franci...@gmail.com> wrote: > > > Thank you so much, I am moving forward with that tutorial. > > Regards > > > > > > On Wed, Jan 24, 2024 at 11:43 AM Vishesh Jindal < > > vishesh.jin...@shapeblue.com> wrote: > > > >> Hi Francisco, > >> > >> Did you make changes to libvirtd to allow cloudstack-agent to connect to > >> it? > >> > >> I would suggest checking out Rohit's blog post ( > >> https://rohityadav.cloud/blog/cloudstack-kvm/) for setting up > CloudStack > >> with KVM. > >> > >> Regards, > >> Vishesh > >> > >> ________________________________ > >> From: Francisco Arencibia Quesada <arencibia.franci...@gmail.com> > >> Sent: Wednesday, January 24, 2024 4:01 PM > >> To: users@cloudstack.apache.org <users@cloudstack.apache.org> > >> Subject: Re: Cannot add kvm hosts > >> > >> I'm using KVM right now, the problem is that cloudstack didn't update > the > >> agent.properties and I'm doing it manually to make it work. > >> When I created the zone, the addition of hosts failed, now im adding > hosts > >> manually but it is kind of painful. Do you have any example of a working > >> agent.properties > >> I have this error now : > >> Jan 24 10:20:00 enc-iaas-03-mad3-c java[65365]: ERROR > >> [kvm.resource.LibvirtConnection] (Agent-Handler-1:) (logid:) Connection > >> with libvirtd is broken: invalid connection pointer in > >> virConnectGetVersion > >> > >> > >> On Wed, Jan 24, 2024 at 11:27 AM Wei ZHOU <ustcweiz...@gmail.com> > wrote: > >> > >> > Correct. agent.properties is only applicable for kvm hosts. > >> > When you add the kvm host on CloudStack UI, CloudStack will setup > >> > cloudstack agent and also update agent.properties. > >> > > >> > Do you use XCP ? If so, when you add the cluster, the hypervisor type > >> > should be "XenServer" > >> > > >> > > >> > -Wei > >> > > >> > On Wed, 24 Jan 2024 at 10:51, Francisco Arencibia Quesada < > >> > arencibia.franci...@gmail.com> wrote: > >> > > >> > > guys I think the problem is that I need to configure the > >> > > > >> > > >> > https://github.com/apache/cloudstack/blob/main/agent/conf/agent.properties > >> > > With XCP we didn't have to do this, with KVM it looks like we need > to > >> > > configure it. Is this correct? > >> > > > >> > > Regards > >> > > > >> > > On Tue, Jan 23, 2024 at 9:19 PM Francisco Arencibia Quesada < > >> > > arencibia.franci...@gmail.com> wrote: > >> > > > >> > > > if I stop it then: > >> > > > timeout of 600000ms exceeded > >> > > > Unable to reach the management server or a browser extension may > be > >> > > > blocking the network request. > >> > > > > >> > > > On Tue, Jan 23, 2024 at 8:53 PM Wei ZHOU <ustcweiz...@gmail.com> > >> > wrote: > >> > > > > >> > > >> stop cloudstack-agent and re-add the host? > >> > > >> > >> > > >> > >> > > >> > >> > > >> 在 2024年1月23日星期二,Francisco Arencibia Quesada < > >> > > >> arencibia.franci...@gmail.com> > >> > > >> 写道: > >> > > >> > >> > > >> > It fails, because cloudstack-agent is restarting continuously > >> > > >> > > >> > > >> > On Tue, 23 Jan 2024, 20:22 Wei ZHOU, <ustcweiz...@gmail.com> > >> wrote: > >> > > >> > > >> > > >> > > Have you added that host to cloudstack? > >> > > >> > > > >> > > >> > > -Wei > >> > > >> > > > >> > > >> > > 在 2024年1月23日星期二,Francisco Arencibia Quesada < > >> > > >> > arencibia.franci...@gmail.com > >> > > >> > > > > >> > > >> > > 写道: > >> > > >> > > > >> > > >> > > > I had to install cloudstack-agent, and that error > >> disappeared. > >> > I'm > >> > > >> > using > >> > > >> > > > ubuntu 22.04, > >> > > >> > > > now I have a new error about cloudstack-agent > configuration: > >> > > >> > > > > >> > > >> > > > root@enc-iaas-03-mad3-c:/etc/cloudstack/agent# tail -f > >> > > >> /var/log/syslog > >> > > >> > > > Jan 23 19:07:19 enc-iaas-03-mad3-c java[11042]: log4j:WARN > >> > Please > >> > > >> > > > initialize the log4j system properly. > >> > > >> > > > Jan 23 19:07:19 enc-iaas-03-mad3-c java[11042]: log4j:WARN > >> See > >> > > >> > > > http://logging.apache.org/log4j/1.2/faq.html#noconfig for > >> more > >> > > >> info. > >> > > >> > > > Jan 23 19:07:19 enc-iaas-03-mad3-c java[11042]: INFO > >> > > >> > > > [cloud.agent.AgentShell] (main:) (logid:) Agent started > >> > > >> > > > Jan 23 19:07:19 enc-iaas-03-mad3-c java[11042]: INFO > >> > > >> > > > [cloud.agent.AgentShell] (main:) (logid:) Implementation > >> > Version > >> > > is > >> > > >> > > > 4.18.1.0 > >> > > >> > > > Jan 23 19:07:19 enc-iaas-03-mad3-c java[11042]: INFO > >> > > >> > > > [cloud.agent.AgentShell] (main:) (logid:) agent.properties > >> > found > >> > > at > >> > > >> > > > /etc/cloudstack/agent/agent.properties > >> > > >> > > > Jan 23 19:07:19 enc-iaas-03-mad3-c java[11042]: SLF4J: > >> Failed to > >> > > >> load > >> > > >> > > class > >> > > >> > > > "org.slf4j.impl.StaticLoggerBinder". > >> > > >> > > > Jan 23 19:07:19 enc-iaas-03-mad3-c java[11042]: SLF4J: > >> > Defaulting > >> > > to > >> > > >> > > > no-operation (NOP) logger implementation > >> > > >> > > > Jan 23 19:07:19 enc-iaas-03-mad3-c java[11042]: SLF4J: See > >> > > >> > > > http://www.slf4j.org/codes.html#StaticLoggerBinder for > >> further > >> > > >> > details. > >> > > >> > > > Jan 23 19:07:19 enc-iaas-03-mad3-c java[11042]: Unable to > >> find > >> > the > >> > > >> guid > >> > > >> > > > Jan 23 19:07:19 enc-iaas-03-mad3-c systemd[1]: > >> > > >> > cloudstack-agent.service: > >> > > >> > > > Deactivated successfully. > >> > > >> > > > Jan 23 19:07:29 enc-iaas-03-mad3-c systemd[1]: > >> > > >> > cloudstack-agent.service: > >> > > >> > > > Scheduled restart job, restart counter is at 110. > >> > > >> > > > Jan 23 19:07:29 enc-iaas-03-mad3-c systemd[1]: Stopped > >> > CloudStack > >> > > >> > Agent. > >> > > >> > > > Jan 23 19:07:29 enc-iaas-03-mad3-c systemd[1]: Started > >> > CloudStack > >> > > >> > Agent. > >> > > >> > > > Jan 23 19:07:29 enc-iaas-03-mad3-c java[11073]: log4j:WARN > No > >> > > >> appenders > >> > > >> > > > could be found for logger (com.cloud.agent.AgentShell). > >> > > >> > > > Jan 23 19:07:29 enc-iaas-03-mad3-c java[11073]: log4j:WARN > >> > Please > >> > > >> > > > initialize the log4j system properly. > >> > > >> > > > Jan 23 19:07:29 enc-iaas-03-mad3-c java[11073]: log4j:WARN > >> See > >> > > >> > > > http://logging.apache.org/log4j/1.2/faq.html#noconfig for > >> more > >> > > >> info. > >> > > >> > > > Jan 23 19:07:30 enc-iaas-03-mad3-c java[11073]: INFO > >> > > >> > > > [cloud.agent.AgentShell] (main:) (logid:) Agent started > >> > > >> > > > Jan 23 19:07:30 enc-iaas-03-mad3-c java[11073]: INFO > >> > > >> > > > [cloud.agent.AgentShell] (main:) (logid:) Implementation > >> > Version > >> > > is > >> > > >> > > > 4.18.1.0 > >> > > >> > > > Jan 23 19:07:30 enc-iaas-03-mad3-c java[11073]: INFO > >> > > >> > > > [cloud.agent.AgentShell] (main:) (logid:) agent.properties > >> > found > >> > > at > >> > > >> > > > /etc/cloudstack/agent/agent.properties > >> > > >> > > > Jan 23 19:07:30 enc-iaas-03-mad3-c java[11073]: SLF4J: > >> Failed to > >> > > >> load > >> > > >> > > class > >> > > >> > > > "org.slf4j.impl.StaticLoggerBinder". > >> > > >> > > > Jan 23 19:07:30 enc-iaas-03-mad3-c java[11073]: SLF4J: > >> > Defaulting > >> > > to > >> > > >> > > > no-operation (NOP) logger implementation > >> > > >> > > > Jan 23 19:07:30 enc-iaas-03-mad3-c java[11073]: SLF4J: See > >> > > >> > > > http://www.slf4j.org/codes.html#StaticLoggerBinder for > >> further > >> > > >> > details. > >> > > >> > > > Jan 23 19:07:30 enc-iaas-03-mad3-c java[11073]: Unable to > >> find > >> > the > >> > > >> guid > >> > > >> > > > Jan 23 19:07:30 enc-iaas-03-mad3-c systemd[1]: > >> > > >> > cloudstack-agent.service: > >> > > >> > > > Deactivated successfully. > >> > > >> > > > > >> > > >> > > > Regards > >> > > >> > > > > >> > > >> > > > On Tue, Jan 23, 2024 at 2:01 PM Brian Fossmeyer > >> > > >> > > > <bfossme...@answersingenesis.org.invalid> wrote: > >> > > >> > > > > >> > > >> > > > > Francisco, > >> > > >> > > > > > >> > > >> > > > > Have you looked at this git hub and Rohit’s Ubuntu > install > >> > guide > >> > > >> also > >> > > >> > > > > listed in the git hub article? > >> > > >> > > > > > >> > > >> > > > > https://github.com/apache/cloudstack/issues/6716 > >> > > >> > > > > > >> > > >> > > > > Are you using the root user to add the host? > >> > > >> > > > > > >> > > >> > > > > Thanks, > >> > > >> > > > > > >> > > >> > > > > Brian > >> > > >> > > > > > >> > > >> > > > > From: Francisco Arencibia Quesada < > >> > > arencibia.franci...@gmail.com> > >> > > >> > > > > Date: Tuesday, January 23, 2024 at 7:48 AM > >> > > >> > > > > To: users@cloudstack.apache.org < > >> users@cloudstack.apache.org> > >> > > >> > > > > Subject: Re: Cannot add kvm hosts > >> > > >> > > > > It didn't work Gary any other idea? > >> > > >> > > > > > >> > > >> > > > > On Tue, Jan 2, 2024 at 5:35 PM Gary Dixon < > >> > > >> gary.di...@quadris.co.uk > >> > > >> > > > > .invalid> > >> > > >> > > > > wrote: > >> > > >> > > > > > >> > > >> > > > > > Hi Fransisco > >> > > >> > > > > > > >> > > >> > > > > > Try setting the global setting > >> > > "ca.plugin.root.auth.strictness" > >> > > >> to > >> > > >> > > > false > >> > > >> > > > > > and then try adding the host - if it adds the host > >> > > successfully > >> > > >> > then > >> > > >> > > > set > >> > > >> > > > > > the "ca.plugin.root.auth.strictness" back to 'true' > >> > > >> > > > > > > >> > > >> > > > > > > >> > > >> > > > > > BR > >> > > >> > > > > > > >> > > >> > > > > > Gary > >> > > >> > > > > > > >> > > >> > > > > > > >> > > >> > > > > > Gary Dixon > >> > > >> > > > > > Senior Technical Consultant > >> > > >> > > > > > 0161 537 4980 <0161%20537%204980> > >> > > >> > > > > > +44 7989717661 <+44%207989717661> > >> > > >> > > > > > gary.di...@quadris.co.uk > >> > > >> > > > > > www.quadris.com<http://www.quadris.com> > >> > > >> > > > > > Innovation House, 12‑13 Bredbury Business Park > >> > > >> > > > > > Bredbury Park Way, Bredbury, Stockport, SK6 2SN > >> > > >> > > > > > -----Original Message----- > >> > > >> > > > > > From: Francisco Arencibia Quesada < > >> > > >> arencibia.franci...@gmail.com> > >> > > >> > > > > > Sent: Tuesday, January 2, 2024 2:43 PM > >> > > >> > > > > > To: users@cloudstack.apache.org > >> > > >> > > > > > Subject: Cannot add kvm hosts > >> > > >> > > > > > > >> > > >> > > > > > Good morning guys, > >> > > >> > > > > > > >> > > >> > > > > > My KVM host has ubuntu 22.04.3 LTS, I have created the > >> zone, > >> > > >> but it > >> > > >> > > > fails > >> > > >> > > > > > when adding the hosts, I run cloudstack 4.18.1.0 and > >> this is > >> > > the > >> > > >> > > error > >> > > >> > > > > I'm > >> > > >> > > > > > getting: > >> > > >> > > > > > > >> > > >> > > > > > Could not add host at [http://10.35.2.22] with zone > [8], > >> > pod > >> > > >> [8] > >> > > >> > and > >> > > >> > > > > > cluster [10] due to: [ can't setup agent, due to > >> > > >> > > > > > com.cloud.utils.exception.CloudRuntimeException: Failed > >> to > >> > > setup > >> > > >> > > > keystore > >> > > >> > > > > > on the KVM host: 10.35.2.22 - Failed to setup keystore > on > >> > the > >> > > >> KVM > >> > > >> > > host: > >> > > >> > > > > > 10.35.2.22]. > >> > > >> > > > > > > >> > > >> > > > > > Can you suggest anything guys? > >> > > >> > > > > > > >> > > >> > > > > > Thank you all in advance. > >> > > >> > > > > > > >> > > >> > > > > > Regards > >> > > >> > > > > > > >> > > >> > > > > > -- > >> > > >> > > > > > *Francisco Arencibia Quesada.* > >> > > >> > > > > > *DevOps Engineer* > >> > > >> > > > > > > >> > > >> > > > > > >> > > >> > > > > > >> > > >> > > > > -- > >> > > >> > > > > *Francisco Arencibia Quesada.* > >> > > >> > > > > *DevOps Engineer* > >> > > >> > > > > > >> > > >> > > > > >> > > >> > > > > >> > > >> > > > -- > >> > > >> > > > *Francisco Arencibia Quesada.* > >> > > >> > > > *DevOps Engineer* > >> > > >> > > > > >> > > >> > > > >> > > >> > > >> > > >> > >> > > > > >> > > > > >> > > > -- > >> > > > *Francisco Arencibia Quesada.* > >> > > > *DevOps Engineer* > >> > > > > >> > > > >> > > > >> > > -- > >> > > *Francisco Arencibia Quesada.* > >> > > *DevOps Engineer* > >> > > > >> > > >> > >> > >> -- > >> *Francisco Arencibia Quesada.* > >> *DevOps Engineer* > >> > >> > >> > >> > > > > -- > > *Francisco Arencibia Quesada.* > > *DevOps Engineer* > > > > > -- > *Francisco Arencibia Quesada.* > *DevOps Engineer* >