If you are lazy and don’t have the time to learn Xen properly but still want to run virtual machines on your headless server you might want to try out VBoxHeadless aka VirtualBox Headless. It’s easy to install and run machines as a regular user. You might not want use this to virtualize production servers at a big company but for a home server to test things it’s pretty decent.
If you try and install the standard deb for virtualbox you won’t get the latest version. So the first thing we need to do is add a new source for virtualbox packages.
Add Virtualbox source
Add the new repo sudo sh -c 'echo "deb http://download.virtualbox.org/virtualbox/debian wheezy contrib" >> /etc/apt/sources.list'
Add the Oracle public key sudo wget -q http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc -O- | sudo apt-key add -
Update sudo aptitude update
Install VirtualBox Headless and extension pack
You need the build-essential package and linux headers for building the modules needed. I will also install dkms so that the modules are rebuilt properly when we upgrade the kernel in the future. At the time of writing the latest version of virtualbox is 4.2 so we’ll use that. sudo apt-get install linux-headers-$(uname -r) build-essential dkms virtualbox-4.2
In addition to the actual virtualbox package we also need to install an extension pack that provides support for USB 2.0 and RDP connections. The RDP connections are especially important since we will be running VBoxHeadless without a monitor. You will find a link to the extension pack on this page http://www.virtualbox.org/wiki/Downloads cd /tmp wget http://download.virtualbox.org/virtualbox/4.2.6/Oracle_VM_VirtualBox_Extension_Pack-4.2.6-82870.vbox-extpack sudo VBoxManage extpack install Oracle_VM_VirtualBox_Extension_Pack-4.2.6-82870.vbox-extpack
Only one final thing to do before you can start using Virtualbox, add your user to the newly created vboxusers group. sudo adduser youruser vboxusers
Now you are all set. If you haven’t used Virtualbox before then you should probably head straight to their online manual and start reading about VBoxManage on how to create your virtual machines.
What do you need two blogs for, you can’t even keep on of them updated? Well i started my blog Låtsasträning for my own motivation for to be able to write about every day things, mostly about my road bike training. This blog you are currently reading are mostly for article posts where i actually try and write something useful, hence the extremely low rate of updates. Writing proper articles takes so much more time than just writing “I went on a ride today” and link to my GPX data.
That’s why i chose to do it in Swedish as well. A lot faster for me and since the posts are mostly for me and not the whole wide world i’ll stick to my native language.
Have you ever written a comment function for your EPiServer projects? Did it suck? If that’s the case maybe you should look at an alternative that does everything for you. Disqus is a free to use commenting platforms that is really easy to integrate in to your web projects. Just head over to their homepage and sign up. Create a new site for comments and you are ready to go.
How do you add Disqus to EPiServer?
For this to work you need to have signed up for an account and created a new disqus site. After that just create a usercontrol in your project and add the following code to it.
// The following are highly recommended additional parameters. Remove the slashes in front to use. var disqus_identifier = ‘<%= CurrentPage.PageGuid %>'; var disqus_url = ‘<%= CurrentPage.GetExternalUrl() %>';
There’s only three settings changed/added
disqus_shortname – you need to change this to your website (the one you create in the Disqus admin panel)
disqus_identifier – unique ID for the page so disqus can load comments for it. I use PageGuid for this.
disqus_url – url of the current page for permalinks, I just use GetExternalUrl here