setting up a SharePoint 2010 development VM

I’ve blogged previously about my failed attempt to set up a SharePoint dev VM at home, on my laptop. I’ve given up on that for now.

But one of the SharePoint projects at work finally got far enough through the “spec” phase that I could justify asking our IT ops people to help me get a SharePoint dev VM set up at work. The regular help desk guys set up the base image (Windows Server 2008 R2), and the SharePoint admin guys then installed SharePoint 2010 on it, so I don’t have too much insight into that part of the setup.

Having been handed a working VM with SharePoint 2010 Server installed, it was then up to me to get Visual Studio up and running. That wasn’t much of a challenge. I installed VS 2012 Ultimate. The installer actually gives you the option to install the SharePoint tools, so I didn’t even have to do that separately.

I did have a bit of a problem, post-install, in that some Windows Update that came down automatically killed SharePoint. I had to re-run the SharePoint config wizard several times, make a couple of registry patches, restart some app pools in IIS manually, and so on and so forth. In the end, I’m not entirely sure which combination of random trickery was actually responsible for getting things running again, but whatever it was, I seem to have a working environment again.

But that pretty much killed the entire day, so I have to say that setting up a working SharePoint dev VM is not a trivial task, even if you’ve got experienced admin guys doing the bulk of the initial setup work.

SharePoint and more

Just a quick follow-up on Saturday’s adventures with SharePoint: On Sunday morning, after letting my VM chug through 100+ Windows updates, and increasing the amount of RAM allocated to it from 1 GB to 2 GB, I eventually found myself with a barely-operational SharePoint install.

But I decided I didn’t want to spend the whole day staring at my laptop, alone in my apartment, so I turned it off and hopped on the train into New York, and spent some time at the Metropolitan Museum. Overall, I think that was a better use of my time than banging away at my SharePoint VM all day.

I spent some time this morning reading various blog posts about SharePoint development environments, and I’ve come to the conclusion that I’ll never be able to get a useful one up and running on my current hardware. With only 4 GB of RAM on my ThinkPad, there’s no way I can allocate enough to the VM. Most of the advice I’ve seen recommends 8 GB minimum for the VM, so I’d really need a laptop with at least 12 GB of actual RAM. (And some blogs indicate that 24 GB is really the reasonable minimum for SharePoint development.)

I’ve also looked at a few options for running a VM in the cloud. The one no-cost option is to sign up for a free Azure trial, and set up a VM in Azure. That might be interesting, but I don’t think the trial would be long enough to be really useful.

So I think I’m going to have to give up on the idea of setting up a SharePoint environment on my own, and wait for my new project at work to firm up a bit more. At that point, I’ll know enough about exactly what I need to do that I can make specific requests related to a specific project, and hopefully get the software/hardware I need to get up and running. Until then, I’m just going to have to settle for reading books and using my imagination!

SharePoint development

My boss told me this week that I may need to do some SharePoint development work for my next project. I don’t have any details on what exactly I might need to do, but I think it’s likely to be creating a Web Part that will interface with Dynamics AX in some way, probably through a web service. I’m well-versed at this point on the Dynamics AX side of things, but I know almost nothing about SharePoint development. So, being the proactive kind of guy that I am, I’m starting to flounder around, trying to figure out what I can about SharePoint development.

It’s not easy to get started. At work, I asked one of the other developers for some pointers, since she’s done some SharePoint work before, but since I don’t really have any details about what I’m supposed to be doing, she wasn’t much help. I don’t want to waste her time, so I’m going to hold off on asking her any more questions until I have a better idea of what I need. And, on the IT end, I had one of the SharePoint admins set up a site that I can apparently use for testing, once I’m at the point where I actually have something to deploy. But there’s not much I can do with it right now.

I have Visual Studio 2012 installed on my AX VM, so I went ahead and installed the SharePoint tools on that VM. That worked, and I now have the templates needed to create a new SharePoint web part project in VS. But, it seems that you can’t actually create a SharePoint web part project on a machine that doesn’t have SharePoint itself installed on it. Looking into it a bit further, it seems like it might be possible to do so, but it’s not obvious or simple. And that’s about as far as I got in work on Friday.

Today, I decided to see how far I could get in setting up a full SharePoint 2013 VM on my ThinkPad. I’m using VirtualBox on the ThinkPad, and I have plenty of hard drive space, so I decided to give it a go. I loosely followed the instructions in this blog post by Bill Baer, though I simplified things as much as I could. I downloaded the 180-day trial of Windows Server 2012 as a VHD. Then, I got that up and running in VirtualBox. I had to mess around with the settings a bit to get it to work, but it seems to work fine under VirtualBox, once you get the settings right. Then, I downloaded the 180-day trial of SharePoint 2013 and installed that. I hit a few snags, but nothing that I couldn’t get past with a little Google-fu. All of that downloading and installing killed most of the day. Now, the sun is about ready to go down, and I’ve got a VM that probably has a working SharePoint 2013 install on it. I say “probably” because I haven’t been about to bring it up in a browser yet. I think that’s just because the VM is running slow, and it’s taking a while to get past all the background stuff that needs to happen on a new Windows Server 2012 and SharePoint 2013 install. So, for now, I’m patiently letting it chop away at 100% CPU, hoping that eventually, it’ll settle down and become usable. There may be a few more things to straighten out though. If so, I guess I’ll be spelunking through some log files and doing some more Google-fu.

Once I’m sure I’ve got a working SharePoint 2013 install, then I’m going to have to install Visual Studio 2013. I’m hoping I can just use the free version of VS 2013, but I’m not sure. If I can’t, then I guess I have to check and see if there’s an eval version of VS 2013 Pro, or whichever version I need for SharePoint dev.

I’m not sure if the end result of all this is going to be a usable VM. The ThinkPad is a few years old. Though I did replace the hard drive with an SSD recently, it’s still only got 4 GB of RAM, and a mediocre CPU. That’s all fine for doing normal work, but it’s a little thin for powering a VM that’s got a full SharePoint install on it. So I may have to give up on this thing entirely.

I found a good blog post on how to set up an “awesome VM” for SharePoint development, but it looks like I’d need a much more powerful laptop to follow those instructions, and probably a lot more free time too. So, if the fairly basic VM that I’m trying to set up now doesn’t work out, I’ll probably give up on it for now.

Meanwhile, I’ve started reading Beginning SharePoint 2013 Development, via my company’s Books24x7 subscription. (And I ordered a used copy of the physical book from Amazon.) I haven’t gotten much useful information out of the book yet, but I haven’t gotten very far into it yet.

I went into this process knowing that I might hit some dead-ends, and knowing that I might not be able to get very far on my own. But I’m hoping that I’ll at least get far enough that I can ask the right questions when I start getting project details from my boss. I’m not sure if I’ll need to set up a new VM on my work PC with the full SharePoint install, or if I’ll be able to hook up my existing AX VM to the test SharePoint site that the admin guy set up for me. Or if I’m even going to need to do any of that at all. But, either way, I’m hoping to learn some new skills, and add “SharePoint developer” to the old resume!