Hey Marcus, Figured I'd follow up on this.
I have KVM running in an Ubuntu 12.04.1 VM under VMware Fusion now (although not added into CS just yet). I set up two adapters for the VM: 1) Uses NAT (so I can access the internet) and 2) Uses a host-only network (which is the same network the VMs KVM spins up will reside on). This is how I set up my /etc/network/interfaces file: auto lo iface lo inet loopback # The primary network interface auto eth0 iface eth0 inet manual # Bridge 0 auto cloudbr0 iface cloudbr0 inet static address 192.168.233.10 netmask 255.255.255.0 network 192.168.233.0 broadcast 192.168.233.255 dns-nameservers 8.8.8.8 bridge_ports eth0 bridge_fd 5 bridge_stp off bridge_maxwait 1 post-up route add default gw 192.168.233.2 metric 1 pre-down route del default gw 192.168.233.2 auto eth1 iface eth1 inet static address 192.168.196.10 netmask 255.255.255.0 network 192.168.196.0 broadcast 192.168.196.255 dns-nameservers 192.168.196.1 bridge_ports eth1 bridge_fd 5 bridge_stp off bridge_maxwait 1 post-up route add default gw 192.168.196.1 metric 2 pre-down route del default gw 192.168.196.1 I've built the DEB packages, but have a quick question about the directions found here: http://cloudstack.apache.org/docs/en-US/Apache_CloudStack/4.1.1/html/Installation_Guide/sect-source-builddebs.html ********** Now that we have resolved the dependencies we can move on to building CloudStack and packaging them into DEBs. mvn clean install -P developer,systemvm $ dpkg-buildpackage -uc -us ********** The mvn command isn't preceded by a $, so I was wondering if the directions are implying that by running dpkg-buildpackage -uc -us that the command above automatically gets run as part of the process. When I built the DEB packages, I actually ran the mvn command and then followed it up by the dpkg-buildpackage one, but wasn't sure if that was necessary to do or redundant. Thanks! On Fri, Aug 30, 2013 at 7:45 AM, Marcus Sorensen <shadow...@gmail.com>wrote: > I'm not sure if you are developing or just trying to get a system running. > If the latter, you should be using the same repo and deb packages for both > the mgt server and agent, such that everything can be installed via > 'apt-get install', which is hopefully covered in the docs. > > If you are developing, I'd generate the .debs, copy agent and common > packages over, install those, and then if agent code changes during > development you can either do that again, or manually replace the affected > jars/scripts and restart the agent. > > As far as I'm aware the agent needs to run with root permissions on the > box. It sounds like you need to fix ssh as a prerequisite before beginning > setup. As mentioned it might be the PermitRootLogin option. > On Aug 29, 2013 11:22 PM, "Mike Tutkowski" <mike.tutkow...@solidfire.com> > wrote: > > > I figured out how to assign a password to root on Ubuntu, but that didn't > > solve the problem. > > > > As I thought about it more, I'm actually running the 4.2 CSMS, but the > 4.1 > > version of the agent code on the KVM host. > > > > I'm not sure how to deploy the newest agent code from the 4.2 branch to > the > > KVM host, though. Would you be able to tell me how to do that, Marcus? > > > > Is there any Java code of ours on the KVM host or is it all in the form > of > > scripts? > > > > Thanks! > > > > > > On Thu, Aug 29, 2013 at 10:30 PM, Mike Tutkowski < > > mike.tutkow...@solidfire.com> wrote: > > > > > Yeah, I wanted to use root, but got the following when trying to SSH > in: > > > > > > mtutkowski-LT:~ mtutkowski$ ssh root@172.16.140.5 > > > root@172.16.140.5's password: > > > Permission denied, please try again. > > > > > > > > > On Thu, Aug 29, 2013 at 10:28 PM, Marcus Sorensen <shadow...@gmail.com > > >wrote: > > > > > >> I've only ever seen it work with root. Do the docs say otherwise? > Maybe > > >> your user credentials will work if you have it set with sudo > privileges > > >> and > > >> privileges to libvirtd. > > >> On Aug 29, 2013 10:25 PM, "Mike Tutkowski" < > > mike.tutkow...@solidfire.com> > > >> wrote: > > >> > > >> > By the way, I've been supplying the username I log into Ubuntu with: > > >> > mtutkowski (not root). I think that's correct for Ubuntu. > > >> > > > >> > After the script executes, I get the following back in the CSMS log: > > >> > > > >> > { Ans: , MgmtId: 1, via: 2, Ver: v1, Flags: 100010, > > >> > > [{"com.cloud.agent.api.AgentControlAnswer":{"result":true,"wait":0}}] > > } > > >> > > > >> > > > >> > On Thu, Aug 29, 2013 at 10:20 PM, Mike Tutkowski < > > >> > mike.tutkow...@solidfire.com> wrote: > > >> > > > >> > > I don't see a process by either name in System Monitor. > > >> > > > > >> > > Is that SSH call supposed to have started such a process running? > > >> > > > > >> > > > > >> > > On Thu, Aug 29, 2013 at 10:15 PM, Marcus Sorensen < > > >> shadow...@gmail.com > > >> > >wrote: > > >> > > > > >> > >> Is the agent running? Or perhaps cloud-setup-agent? > > >> > >> On Aug 29, 2013 10:13 PM, "Mike Tutkowski" < > > >> > mike.tutkow...@solidfire.com> > > >> > >> wrote: > > >> > >> > > >> > >> > Interesting...there is an agent folder, but no files in it. > > >> > >> > > > >> > >> > > > >> > >> > On Thu, Aug 29, 2013 at 10:10 PM, Mike Tutkowski < > > >> > >> > mike.tutkow...@solidfire.com> wrote: > > >> > >> > > > >> > >> > > Thanks! > > >> > >> > > > > >> > >> > > By the way, these are the parameters I pass into > > >> > >> cloudstack-setup-agent > > >> > >> > > (just in case something looks odd to you there): > > >> > >> > > > > >> > >> > > -m 172.16.140.1 -z 1 -p 1 -c 3 -g > > >> > >> 8bd34de8-783c-387f-a043-aa53ee31df6b -a > > >> > >> > > --pubNic=cloudbr0 --prvNic=cloudbr0 --guestNic=cloudbr0 > > >> > >> > > > > >> > >> > > > > >> > >> > > On Thu, Aug 29, 2013 at 10:07 PM, Marcus Sorensen < > > >> > >> shadow...@gmail.com > > >> > >> > >wrote: > > >> > >> > > > > >> > >> > >> /var/log/cloudstack/agent/agent.log ... There is also a > setup > > >> log > > >> > in > > >> > >> > that > > >> > >> > >> location to see if something in the agent setup went awry. > > >> > >> > >> On Aug 29, 2013 10:05 PM, "Mike Tutkowski" < > > >> > >> > mike.tutkow...@solidfire.com> > > >> > >> > >> wrote: > > >> > >> > >> > > >> > >> > >> > Thanks, Marcus > > >> > >> > >> > > > >> > >> > >> > I'm not used to playing around in a KVM environment. Can > you > > >> tell > > >> > >> me > > >> > >> > >> where > > >> > >> > >> > our agent logs are on KVM? > > >> > >> > >> > > > >> > >> > >> > Originally I didn't have SSH installed, but I noticed that > > >> > problem > > >> > >> > while > > >> > >> > >> > stepping through the debugger. After I installed it, the > SSH > > >> call > > >> > >> went > > >> > >> > >> > through just fine as far as the CSMS was concerned, so - > as > > >> you > > >> > >> say - > > >> > >> > I > > >> > >> > >> was > > >> > >> > >> > thinking I should take a look on the KVM side and see if > > >> maybe an > > >> > >> > error > > >> > >> > >> > occurred that it didn't report back. > > >> > >> > >> > > > >> > >> > >> > > > >> > >> > >> > On Thu, Aug 29, 2013 at 9:57 PM, Marcus Sorensen < > > >> > >> shadow...@gmail.com > > >> > >> > >> > >wrote: > > >> > >> > >> > > > >> > >> > >> > > Normally the agent service starts and connects up. The > > mgmt > > >> > >> server > > >> > >> > >> uses > > >> > >> > >> > ssh > > >> > >> > >> > > to start the agent and set it up for the first time. You > > >> will > > >> > >> > probably > > >> > >> > >> > need > > >> > >> > >> > > to look at the agent logs and see if it is having > trouble > > >> > >> connecting > > >> > >> > >> to > > >> > >> > >> > the > > >> > >> > >> > > mgmt server or something (firewall?). > > >> > >> > >> > > On Aug 29, 2013 9:55 PM, "Mike Tutkowski" < > > >> > >> > >> mike.tutkow...@solidfire.com> > > >> > >> > >> > > wrote: > > >> > >> > >> > > > > >> > >> > >> > > > So, now I'm trying to add a KVM host to CS and am > > having a > > >> > bit > > >> > >> of > > >> > >> > >> > trouble > > >> > >> > >> > > > with LibvirtServerDiscoverer finding it (this line > > below: > > >> > >> > >> List<HostVO> > > >> > >> > >> > > > hosts = > > >> > >> _resourceMgr.listAllUpAndEnabledHosts(Host.Type.Routing, > > >> > >> > >> > > clusterId, > > >> > >> > >> > > > podId, dcId);). > > >> > >> > >> > > > > > >> > >> > >> > > > private HostVO waitForHostConnect(long dcId, long > > >> podId, > > >> > >> > >> > > > longclusterId, String guid) { > > >> > >> > >> > > > > > >> > >> > >> > > > for (int i = 0; i < _waitTime * 2; i++) { > > >> > >> > >> > > > > > >> > >> > >> > > > List<HostVO> hosts = _resourceMgr > > >> > >> > >> > > > .listAllUpAndEnabledHosts(Host.Type.Routing, > clusterId, > > >> > podId, > > >> > >> > >> dcId); > > >> > >> > >> > > > > > >> > >> > >> > > > for (HostVO host : hosts) { > > >> > >> > >> > > > > > >> > >> > >> > > > if > > >> (host.getGuid().equalsIgnoreCase(guid)) { > > >> > >> > >> > > > > > >> > >> > >> > > > return host; > > >> > >> > >> > > > > > >> > >> > >> > > > } > > >> > >> > >> > > > > > >> > >> > >> > > > } > > >> > >> > >> > > > Any thoughts on how I might debug this? Is there a log > > on > > >> the > > >> > >> KVM > > >> > >> > >> host > > >> > >> > >> > I > > >> > >> > >> > > > should be looking at? I don't see a relevant entry in > my > > >> > >> > cloud.host > > >> > >> > >> > > table. > > >> > >> > >> > > > > > >> > >> > >> > > > Thanks! > > >> > >> > >> > > > > > >> > >> > >> > > > > > >> > >> > >> > > > On Thu, Aug 29, 2013 at 7:56 PM, Mike Tutkowski < > > >> > >> > >> > > > mike.tutkow...@solidfire.com> wrote: > > >> > >> > >> > > > > > >> > >> > >> > > > > Thanks, Marty - that solved the problem! > > >> > >> > >> > > > > > > >> > >> > >> > > > > > > >> > >> > >> > > > > On Thu, Aug 29, 2013 at 4:56 PM, Marty Sweet < > > >> > >> > >> msweet....@gmail.com> > > >> > >> > >> > > > wrote: > > >> > >> > >> > > > > > > >> > >> > >> > > > >> Hi Mike, > > >> > >> > >> > > > >> > > >> > >> > >> > > > >> Something like this should help: > > >> > >> > >> > > > >> > > >> > >> > > http://en.kioskea.net/faq/809-debian-apt-get-no-pubkey-gpg-error > > >> > >> > >> > > > >> > > >> > >> > >> > > > >> Marty > > >> > >> > >> > > > >> > > >> > >> > >> > > > >> On Thursday, August 29, 2013, Mike Tutkowski wrote: > > >> > >> > >> > > > >> > > >> > >> > >> > > > >> > Any thoughts on this, Wei? > > >> > >> > >> > > > >> > > > >> > >> > >> > > > >> > W: GPG error: http://cloudstack.apt-get.euprecise > > >> > >> Release: > > >> > >> > >> The > > >> > >> > >> > > > >> following > > >> > >> > >> > > > >> > signatures couldn't be verified because the > public > > >> key > > >> > is > > >> > >> not > > >> > >> > >> > > > available: > > >> > >> > >> > > > >> > NO_PUBKEY BBFCFE5386C278E3 > > >> > >> > >> > > > >> > > > >> > >> > >> > > > >> > > > >> > >> > >> > > > >> > > > >> > >> > >> > > > >> > On Thu, Aug 29, 2013 at 4:21 PM, Mike Tutkowski < > > >> > >> > >> > > > >> > mike.tutkow...@solidfire.com> wrote: > > >> > >> > >> > > > >> > > > >> > >> > >> > > > >> > > Thanks for the repo info, Wei! > > >> > >> > >> > > > >> > > > > >> > >> > >> > > > >> > > > > >> > >> > >> > > > >> > > On Thu, Aug 29, 2013 at 4:19 PM, Wei ZHOU < > > >> > >> > >> > ustcweiz...@gmail.com> > > >> > >> > >> > > > >> wrote: > > >> > >> > >> > > > >> > > > > >> > >> > >> > > > >> > >> You need to add a repo, or download the deb > > files > > >> and > > >> > >> > >> install > > >> > >> > >> > > them. > > >> > >> > >> > > > >> > >> > > >> > >> > >> > > > >> > >> for CentOS/RHEL, > > >> > >> http://cloudstack.apt-get.eu/rhel/4.1/ > > >> > >> > >> > > > >> > >> for Ubuntu, > > >> > >> > >> > > > >> > > >> > http://cloudstack.apt-get.eu/ubuntu/dists/precise/4.1/pool/ > > >> > >> > >> > > > >> > >> > > >> > >> > >> > > > >> > >> > > >> > >> > >> > > > >> > >> 2013/8/29 Mike Tutkowski < > > >> > mike.tutkow...@solidfire.com > > >> > >> > > > >> > >> > >> > > > >> > >> > > >> > >> > >> > > > >> > >> > Maybe I need to add a repo for CloudStack? I > > >> didn't > > >> > >> see > > >> > >> > >> that > > >> > >> > >> > in > > >> > >> > >> > > > the > > >> > >> > >> > > > >> > KVM > > >> > >> > >> > > > >> > >> > section, but perhaps it was earlier in the > > >> > >> > documentation. > > >> > >> > >> > > > >> > >> > > > >> > >> > >> > > > >> > >> > > > >> > >> > >> > > > >> > >> > On Thu, Aug 29, 2013 at 3:35 PM, Mike > > Tutkowski > > >> < > > >> > >> > >> > > > >> > >> > mike.tutkow...@solidfire.com> wrote: > > >> > >> > >> > > > >> > >> > > > >> > >> > >> > > > >> > >> > > Hi, > > >> > >> > >> > > > >> > >> > > > > >> > >> > >> > > > >> > >> > > For the past nine months that I've been > > >> working > > >> > >> with > > >> > >> > >> > > > CloudStack, > > >> > >> > >> > > > >> > I've > > >> > >> > >> > > > >> > >> > > exclusively used XenServer and ESXi as my > > >> hosts. > > >> > >> > >> > > > >> > >> > > > > >> > >> > >> > > > >> > >> > > I am now trying out KVM and following the > > >> > >> instruction > > >> > >> > >> here: > > >> > >> > >> > > > >> > >> > > > > >> > >> > >> > > > >> > >> > > > > >> > >> > >> > > > >> > >> > > > > >> > >> > >> > > > >> > >> > > > >> > >> > >> > > > >> > >> > > >> > >> > >> > > > >> > > > >> > >> > >> > > > >> > > >> > >> > >> > > > > > >> > >> > >> > > > > >> > >> > >> > > > >> > >> > >> > > >> > >> > > > >> > >> > > >> > > > >> > > > http://cloudstack.apache.org/docs/en-US/Apache_CloudStack/4.1.1/html/Installation_Guide/hypervisor-kvm-install-flow.html > > >> > >> > >> > > > >> > >> > > > > >> > >> > >> > > > >> > >> > > I am unable to install the > cloudstack-agent > > >> > >> package on > > >> > >> > >> my > > >> > >> > >> > KVM > > >> > >> > >> > > > >> host > > >> > >> > >> > > > >> > >> > (Ubuntu > > >> > >> > >> > > > >> > >> > > 12.04.1), however. > > >> > >> > >> > > > >> > >> > > > > >> > >> > >> > > > >> > >> > > mtutkowski@ubuntu:~$ sudo apt-get install > > >> > >> > >> cloudstack-agent > > >> > >> > >> > > > >> > >> > > Reading package lists... Done > > >> > >> > >> > > > >> > >> > > Building dependency tree > > >> > >> > >> > > > >> > >> > > Reading state information... Done > > >> > >> > >> > > > >> > >> > > E: Unable to locate package > cloudstack-agent > > >> > >> > >> > > > >> > >> > > > > >> > >> > >> > > > >> > >> > > Any thoughts on this? > > >> > >> > >> > > > >> > >> > > > > >> > >> > >> > > > >> > >> > > Thanks! > > >> > >> > >> > > > >> > >> > > > > >> > >> > >> > > > >> > >> > > -- > > >> > >> > >> > > > >> > >> > > *Mike Tutkowski* > > >> > >> > >> > > > >> > >> > > *Senior CloudStack Developer, SolidFire > > Inc.* > > >> > >> > >> > > > >> > >> > > e: mike.tutkow...@solidfire.com > > >> > >> > >> > > > >> > >> > > o: 303.746.7302 > > >> > >> > >> > > > >> > >> > > Advancing the way the world uses the > cloud< > > >> > >> > >> > > > >> > >> > > > >> http://solidfire.com/solution/overview/?video=play > > >> > > > > >> > >> > >> > > > >> > >> > > *™* > > >> > >> > >> > > > >> > >> > > > > >> > >> > >> > > > >> > >> > > > >> > >> > >> > > > >> > >> > > > >> > >> > >> > > > >> > >> > > > >> > >> > >> > > > >> > >> > -- > > >> > >> > >> > > > >> > >> > *Mike Tutkowski* > > >> > >> > >> > > > >> > >> > *Senior CloudStack Developer, SolidFire > Inc.* > > >> > >> > >> > > > >> > >> > e: mike.tutkow...@solidfire.com > > >> > >> > >> > > > >> > >> > o: 303.746.7302 > > >> > >> > >> > > > >> > >> > Advancing the way the world uses the > > >> > >> > >> > > > >> > >> > cloud< > > >> > >> > http://solidfire.com/solution/overview/?video=play> > > >> > >> > >> > > > >> > >> > *™* > > >> > >> > >> > > > >> > >> > > > >> > >> > >> > > > >> > >> > > >> > >> > >> > > > >> > > > > >> > >> > >> > > > >> > > > > >> > >> > >> > > > >> > > > > >> > >> > >> > > > >> > > -- > > >> > >> > >> > > > >> > > *Mike Tutkowski* > > >> > >> > >> > > > >> > > *Senior CloudStack Developer, SolidFire Inc.* > > >> > >> > >> > > > >> > > e: mike.tutkow...@solidfire.com > > >> > >> > >> > > > >> > > o: 303.746.7302 > > >> > >> > >> > > > >> > > Advancing the way the world uses the cloud< > > >> > >> > >> > > > >> > > http://solidfire.com/solution/overview/?video=play > > > > > >> > >> > >> > > > >> > > *™* > > >> > >> > >> > > > >> > > > > >> > >> > >> > > > >> > > > >> > >> > >> > > > >> > > > >> > >> > >> > > > >> > > > >> > >> > >> > > > >> > -- > > >> > >> > >> > > > >> > *Mike Tutkowski* > > >> > >> > >> > > > >> > *Senior CloudStack Developer, SolidFire Inc.* > > >> > >> > >> > > > >> > e: mike.tutkow...@solidfire.com > > >> > >> > >> > > > >> > o: 303.746.7302 > > >> > >> > >> > > > >> > Advancing the way the world uses the > > >> > >> > >> > > > >> > cloud< > > >> > http://solidfire.com/solution/overview/?video=play > > >> > >> > >> > > > >> > > >> > >> > >> > > > > > > >> > >> > >> > > > > > > >> > >> > >> > > > > > > >> > >> > >> > > > > -- > > >> > >> > >> > > > > *Mike Tutkowski* > > >> > >> > >> > > > > *Senior CloudStack Developer, SolidFire Inc.* > > >> > >> > >> > > > > e: mike.tutkow...@solidfire.com > > >> > >> > >> > > > > o: 303.746.7302 > > >> > >> > >> > > > > Advancing the way the world uses the cloud< > > >> > >> > >> > > > http://solidfire.com/solution/overview/?video=play> > > >> > >> > >> > > > > *™* > > >> > >> > >> > > > > > > >> > >> > >> > > > > > >> > >> > >> > > > > > >> > >> > >> > > > > > >> > >> > >> > > > -- > > >> > >> > >> > > > *Mike Tutkowski* > > >> > >> > >> > > > *Senior CloudStack Developer, SolidFire Inc.* > > >> > >> > >> > > > e: mike.tutkow...@solidfire.com > > >> > >> > >> > > > o: 303.746.7302 > > >> > >> > >> > > > Advancing the way the world uses the > > >> > >> > >> > > > cloud< > > http://solidfire.com/solution/overview/?video=play> > > >> > >> > >> > > > *™* > > >> > >> > >> > > > > > >> > >> > >> > > > > >> > >> > >> > > > >> > >> > >> > > > >> > >> > >> > > > >> > >> > >> > -- > > >> > >> > >> > *Mike Tutkowski* > > >> > >> > >> > *Senior CloudStack Developer, SolidFire Inc.* > > >> > >> > >> > e: mike.tutkow...@solidfire.com > > >> > >> > >> > o: 303.746.7302 > > >> > >> > >> > Advancing the way the world uses the > > >> > >> > >> > cloud<http://solidfire.com/solution/overview/?video=play> > > >> > >> > >> > *™* > > >> > >> > >> > > > >> > >> > >> > > >> > >> > > > > >> > >> > > > > >> > >> > > > > >> > >> > > -- > > >> > >> > > *Mike Tutkowski* > > >> > >> > > *Senior CloudStack Developer, SolidFire Inc.* > > >> > >> > > e: mike.tutkow...@solidfire.com > > >> > >> > > o: 303.746.7302 > > >> > >> > > Advancing the way the world uses the cloud< > > >> > >> > http://solidfire.com/solution/overview/?video=play> > > >> > >> > > *™* > > >> > >> > > > > >> > >> > > > >> > >> > > > >> > >> > > > >> > >> > -- > > >> > >> > *Mike Tutkowski* > > >> > >> > *Senior CloudStack Developer, SolidFire Inc.* > > >> > >> > e: mike.tutkow...@solidfire.com > > >> > >> > o: 303.746.7302 > > >> > >> > Advancing the way the world uses the > > >> > >> > cloud<http://solidfire.com/solution/overview/?video=play> > > >> > >> > *™* > > >> > >> > > > >> > >> > > >> > > > > >> > > > > >> > > > > >> > > -- > > >> > > *Mike Tutkowski* > > >> > > *Senior CloudStack Developer, SolidFire Inc.* > > >> > > e: mike.tutkow...@solidfire.com > > >> > > o: 303.746.7302 > > >> > > Advancing the way the world uses the cloud< > > >> > http://solidfire.com/solution/overview/?video=play> > > >> > > *™* > > >> > > > > >> > > > >> > > > >> > > > >> > -- > > >> > *Mike Tutkowski* > > >> > *Senior CloudStack Developer, SolidFire Inc.* > > >> > e: mike.tutkow...@solidfire.com > > >> > o: 303.746.7302 > > >> > Advancing the way the world uses the > > >> > cloud<http://solidfire.com/solution/overview/?video=play> > > >> > *™* > > >> > > > >> > > > > > > > > > > > > -- > > > *Mike Tutkowski* > > > *Senior CloudStack Developer, SolidFire Inc.* > > > e: mike.tutkow...@solidfire.com > > > o: 303.746.7302 > > > Advancing the way the world uses the cloud< > > http://solidfire.com/solution/overview/?video=play> > > > *™* > > > > > > > > > > > -- > > *Mike Tutkowski* > > *Senior CloudStack Developer, SolidFire Inc.* > > e: mike.tutkow...@solidfire.com > > o: 303.746.7302 > > Advancing the way the world uses the > > cloud<http://solidfire.com/solution/overview/?video=play> > > *™* > > > -- *Mike Tutkowski* *Senior CloudStack Developer, SolidFire Inc.* e: mike.tutkow...@solidfire.com o: 303.746.7302 Advancing the way the world uses the cloud<http://solidfire.com/solution/overview/?video=play> *™*