Re: KVM Assistance

2013-09-10 Thread Mike Tutkowski
OK, thanks, though...I will post it under a different e-mail subject so it might get more people to see it. On Tue, Sep 10, 2013 at 12:44 PM, Marcus Sorensen wrote: > Sorry, maybe someone else can help. > On Sep 10, 2013 12:42 PM, "Mike Tutkowski" > wrote: > >> Thanks, Marcus >> >> Any thoughts

Re: KVM Assistance

2013-09-10 Thread Marcus Sorensen
Sorry, maybe someone else can help. On Sep 10, 2013 12:42 PM, "Mike Tutkowski" wrote: > Thanks, Marcus > > Any thoughts on these messages when I run the following (the docs say I > can ignore the missing override file): > > mtutkowski@ubuntu:/var/www/cloudstack/repo/binary$ sudo dpkg-scanpackages

Re: KVM Assistance

2013-09-10 Thread Mike Tutkowski
Thanks, Marcus Any thoughts on these messages when I run the following (the docs say I can ignore the missing override file): mtutkowski@ubuntu:/var/www/cloudstack/repo/binary$ sudo dpkg-scanpackages . /dev/null | tee Packages | gzip -9 > Packages.gz tee: Packages: Permission denied bash: Package

Re: KVM Assistance

2013-09-10 Thread Marcus Sorensen
Haven't done too much with Ubuntu yet, but with centos you can build and install the packages, OR you can do the mvn, but the mvn developer project only does the mgmt server portion, you still need to install the agent packages on your host. This is why I find it easiest to just build packages and

Re: KVM Assistance

2013-09-10 Thread Mike Tutkowski
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

Re: KVM Assistance

2013-09-05 Thread Marcus Sorensen
Yes, so if you set up just one bridge as the mgmt network, and can still ping/ssh into the vm from the host, you should be able to add it and have things work, so long as you set the traffic labels for public/guest as mentioned. On Thu, Sep 5, 2013 at 10:37 PM, Mike Tutkowski wrote: > Hey Marcus,

Re: KVM Assistance

2013-09-05 Thread Mike Tutkowski
Hey Marcus, Thanks for all the detail. Yeah, I'm running the CSMS on my host OS, which is Mac OS X 10.8.3. I have VMware Fusion running Ubuntu 12.04.1 with KVM and am able to run VMs from Virtual Machine Manager. I have not yet tried adding this KVM host to CS because I was afraid my network set

Re: KVM Assistance

2013-09-05 Thread Marcus Sorensen
make sure all of the traffic labels are set to the name of the bridge... this is the 'edit' button under the round network icons during setup. On Thu, Sep 5, 2013 at 10:23 PM, Marcus Sorensen wrote: > Well, you sort of have to know what you want to do, that is decide > where management, guest, pu

Re: KVM Assistance

2013-09-05 Thread Marcus Sorensen
Well, you sort of have to know what you want to do, that is decide where management, guest, public traffic is going to go. You don't really need working public traffic just to run vms, and guest traffic will stay local to the vm, so that leaves management traffic, which also doesn't really need to

Re: KVM Assistance

2013-09-05 Thread Mike Tutkowski
So, I'm trying to follow the directions here on updating my interfaces file on Ubuntu 12.04.1: http://cloudstack.apache.org/docs/en-US/Apache_CloudStack/4.1.1/html/Installation_Guide/hypervisor-kvm-install-flow.html I am running Ubuntu in a VMware Fusion VM with using what Fusion calls a "custom

Re: KVM Assistance

2013-08-30 Thread Marcus Sorensen
I'm not sure about the history of the agent. The libvirt api is remotely accessible, but it has proven to be a moving target, and at least early on it was insufficient. There are other things the agent does as well, which are not directly related to libvirt, like logging into virtual routers and p

Re: KVM Assistance

2013-08-30 Thread Mike Tutkowski
Great - thanks for that info, Marcus! On Fri, Aug 30, 2013 at 7:46 PM, Marcus Sorensen wrote: > I'll be surprised if you only have to edit LibvirtComputingResource. > In fact, the less you do to it the better. You will either need to > create your own StorageAdaptor and class inheriting from > K

Re: KVM Assistance

2013-08-30 Thread Mike Tutkowski
Hey Marcus, I have a general design question here. For the XenServer and VMware plug-ins, the Java code runs on the CSMS, but for KVM it runs on the host. Can you give me an idea why there is this difference? I'm just getting up to speed on libvert, so maybe it doesn't have a daemon that runs t

Re: KVM Assistance

2013-08-30 Thread Marcus Sorensen
I'll be surprised if you only have to edit LibvirtComputingResource. In fact, the less you do to it the better. You will either need to create your own StorageAdaptor and class inheriting from KVMStoragePool or at least teach LibvirtStorageAdaptor how to use your storage, if one of the storage pool

Re: KVM Assistance

2013-08-30 Thread Mike Tutkowski
Thanks, Marcus I believe I will only need to modify LibvirtComputingResource for KVM support (based on my experience in 4.2 with CitrixResourceBase and VmwareResource). It will need to be updated to work with CloudStack's managed storage (first introduced in the new storage framework in 4.2 and s

Re: KVM Assistance

2013-08-30 Thread Marcus Sorensen
Er. I mean normal users don't have to deal with jar files. I always install the agent code via rpm when I'm developing, rather than messing with jars, since you rarely just touch one thing in the agent, it's usually a script, or LibvirtComputingResource + some other class files, and it can be easy

Re: KVM Assistance

2013-08-30 Thread Marcus Sorensen
Package refers to a .deb or a .rpm, the packages used to install. Normal users never have to deal with them. Since you're not developing, you can get them from the website and install as a normal user would, but to create them look in the 'packaging' directory, there's a script for ubuntu(debs) an

Re: KVM Assistance

2013-08-30 Thread Mike Tutkowski
Looking at some CS docs on the web, it appears we are using the term "package" here to refer to a JAR file. On Fri, Aug 30, 2013 at 2:20 PM, Mike Tutkowski < mike.tutkow...@solidfire.com> wrote: > I should be a litter clearer. :) I was referring to what you said here, > Marcus: > > "If you are d

Re: KVM Assistance

2013-08-30 Thread Mike Tutkowski
I should be a litter clearer. :) I was referring to what you said here, Marcus: "If you are developing, I'd generate the .debs, copy agent and common packages over, install those" What I'm not sure how to do is generate the .deb files for CS 4.2. Also, when you say copy agent and common packages

Re: KVM Assistance

2013-08-30 Thread Mike Tutkowski
Thanks for that info, Marcus I did have to assign a password explicitly to the root user (Ubuntu). Now I can SSH in with root. I've never needed to generate .debs and all of that for CloudStack. Do you know where I might be able to find info on the process to follow to do what you wrote? Thanks

Re: KVM Assistance

2013-08-30 Thread Mike Tutkowski
Yeah, I ended up checking on that and it was on by default, but thanks! I ended up having to give root a password (this is Ubuntu 12.04.1) and then I could SSH in. On Fri, Aug 30, 2013 at 12:53 AM, Jörgen Maas wrote: > Mike, > > Did you enable PermitRootLogin in /etc/ssh/sshd_config ? > > > >

Re: KVM Assistance

2013-08-30 Thread Mike Tutkowski
Thanks, Marty I think the problem is I was running the 4.2 CSMS (in my development environment) and 4.1 KVM code. I need to follow Marcus' instructions on how to get 4.2 code onto that KVM host. On Fri, Aug 30, 2013 at 3:13 AM, Marty Sweet wrote: > Hi Mike, > > I have setup ~3 cloudstack clus

Re: KVM Assistance

2013-08-30 Thread Mike Tutkowski
Thanks, guys My first goal with KVM is just to get it running like a user would. After that, I have some development I need to do with it to make it work with what we're calling CloudStack managed storage. https://reviews.apache.org/r/13865/ On Fri, Aug 30, 2013 at 7:45 AM, Marcus Sorensen wro

Re: KVM Assistance

2013-08-30 Thread Marcus Sorensen
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

Re: KVM Assistance

2013-08-30 Thread Marty Sweet
Hi Mike, I have setup ~3 cloudstack clusters on KVM and have never needed to manually run the cloud(stack)-setup-agent, as this is preformed by the management server on first connect. I setup a long password for root on each of my hypervisors which I use for the cloudstack management when entering

Re: KVM Assistance

2013-08-29 Thread Jörgen Maas
Mike, Did you enable PermitRootLogin in /etc/ssh/sshd_config ? On Fri, Aug 30, 2013 at 7:16 AM, Mike Tutkowski < mike.tutkow...@solidfire.com> wrote: > I'm going to call it a night on this. :) > > Thanks for all the help, Marcus! > > If you have a sec, maybe you can tell me if you spot somethi

Re: KVM Assistance

2013-08-29 Thread Mike Tutkowski
I'm going to call it a night on this. :) Thanks for all the help, Marcus! If you have a sec, maybe you can tell me if you spot something odd in my interfaces file: auto lo iface lo inet loopback # The primary network interface auto eth0 iface eth0 inet static address 172.16.140.5 netmas

Re: KVM Assistance

2013-08-29 Thread Mike Tutkowski
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,

Re: KVM Assistance

2013-08-29 Thread Mike Tutkowski
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 wrote: > I've only ever seen it work with root. Do the

Re: KVM Assistance

2013-08-29 Thread Marcus Sorensen
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" wrote: > By the way, I've been supplying the username I log into Ubuntu with: > mt

Re: KVM Assistance

2013-08-29 Thread Marcus Sorensen
You can run the command you pasted manually if you'd like to see where it stops. It does the initial setup and should only be needed once. The agent is managed by a startup script and the setup usually kicks that off. On Aug 29, 2013 10:21 PM, "Mike Tutkowski" wrote: > I don't see a process by ei

Re: KVM Assistance

2013-08-29 Thread Mike Tutkowski
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":{"resu

Re: KVM Assistance

2013-08-29 Thread Mike Tutkowski
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 wrote: > Is the agent running? Or perhaps cloud-setup-agent? > On Aug 29, 2013 10:13 PM, "Mike Tutkowski" > wrote: > > > I

Re: KVM Assistance

2013-08-29 Thread Marcus Sorensen
Is the agent running? Or perhaps cloud-setup-agent? On Aug 29, 2013 10:13 PM, "Mike Tutkowski" 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, the

Re: KVM Assistance

2013-08-29 Thread Mike Tutkowski
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.

Re: KVM Assistance

2013-08-29 Thread Mike Tutkowski
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, Ma

Re: KVM Assistance

2013-08-29 Thread Marcus Sorensen
/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" wrote: > Thanks, Marcus > > I'm not used to playing around in a KVM environment. Can you tell me where > our agent logs a

Re: KVM Assistance

2013-08-29 Thread Mike Tutkowski
KVM is running on Ubuntu 12.04.1 by the way. On Thu, Aug 29, 2013 at 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 insta

Re: KVM Assistance

2013-08-29 Thread Mike Tutkowski
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

Re: KVM Assistance

2013-08-29 Thread Marcus Sorensen
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 Tu

Re: KVM Assistance

2013-08-29 Thread Mike Tutkowski
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 hosts = _resourceMgr.listAllUpAndEnabledHosts(Host.Type.Routing, clusterId, podId, dcId);). private HostVO waitForHostConnect(long dcId, long podId, longclus

Re: KVM Assistance

2013-08-29 Thread Mike Tutkowski
Thanks, Marty - that solved the problem! On Thu, Aug 29, 2013 at 4:56 PM, Marty Sweet 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

Re: KVM Assistance

2013-08-29 Thread Marty Sweet
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.eu precise Release: The following > signatures couldn't b

Re: KVM Assistance

2013-08-29 Thread Mike Tutkowski
Any thoughts on this, Wei? W: GPG error: http://cloudstack.apt-get.eu precise 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: > Than

Re: KVM Assistance

2013-08-29 Thread Mike Tutkowski
Thanks for the repo info, Wei! On Thu, Aug 29, 2013 at 4:19 PM, Wei ZHOU 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/

Re: KVM Assistance

2013-08-29 Thread Mike Tutkowski
What I'm planning on doing is allowing KVM to leverage dynamically created volumes the way I did for XenServer and VMware in 4.2. Traditionally in CloudStack, admins have had to preallocate a large amount of storage (ex. a volume from a SAN) up front, update the hypervisor to use this storage, the

Re: KVM Assistance

2013-08-29 Thread Wei ZHOU
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 > Maybe I need to add a repo for CloudStack? I didn't see that in the KVM

Re: KVM Assistance

2013-08-29 Thread Mike Tutkowski
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

KVM Assistance

2013-08-29 Thread Mike Tutkowski
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-fl