By Fat Bloke on Feb 18, 2009
Just a quick note to say that there's a maintenance release now available (version 2.1.4)
One of the new features of version 2.0 was the ability to run 64-bit guests. However, this initially required a 64-bit host platform to function. For example, to run Windows Server 2008 as a guest on your Windows or Linux PC, you had to upgrade your host system first. This was clearly a "bad thing".
With version 2.1, the VirtualBox team removed this restriction and you can now run 64-bit guests on your 32-bit host. There are still a couple or pre-requisites...
Here's how it is done:
If you do not see the 64-bit options in the drop-down list then VirtualBox thinks that your machine has not met the pre-requisites above.
Choosing the 64-bit version causes VirtualBox to create a vm which uses the VT-x/AMD-V technology of the CPU, and uses IO APIC too.
That is all there is to it. Continue installing your 64-bit OS into this vm as usual.
There is one limitation which is a bit of a pain...
You can run multiple guests at the same time (as you have always been able to do) and you can run a mix of 64-bit and 32-bit guests simultaneously too. But you cannot run 2 vm's, one of which uses VT-x disabled and another, VT-x enabled. Else you will see something like this error message:
To get around this you can either simply save the running guest before resuming the other, or configure all your vm's to use VT-x/AMD-V.
Being able to run 64-bit guests means that you can easily kick the tyres of 64-bit OSes such as Microsoft's Windows Server 2008 R2 Beta 1.
That's what I did in this episode of "The Fat Bloke's Shorts"
| VirtualBox Live Show
Free Webinar discussing what's new in VirtualBox, including a live demo and Q&A.
WHO: Andy Hall, VirtualBox Product Manager
WHAT: VirtualBox Live Show
WHEN: February 4, 2009, 8:00 am PST / 11:00 am EST
(The presentation will be approximately 45 minutes long followed by Q&A.)
WHERE: Simply access the web seminar from the comfort of your own office.
WHY: Learn the latest tricks to turn your PC into an easy-to-use virtualization platform with Sun xVM VirtualBox, the enterprise-class open source software that runs on all major operating systems and eliminates the need for tradeoffs or multiple hardware systems.
Register here for the free VirtualBox Live Webinar now.
Sun Microsystems, Inc.
Good News! There's a new version of VirtualBox available now.
Version 2.1.2 is a maintenance release fixing issues with 2.1 which was released in December.
Some issues concerned Windows 7, but now that they are resolved we're happy to announce that VirtualBox supports Windows 7 as a guest AND as a host. An issue with shared folders has been fixed and the more observant may spot that it boots faster too.
And if you run a lot of vm's on your host you may be please to know that we raised the maximum number of concurrent guests from 127 to 1023. You'll need quite a machine to test that though
So if you have had problems with:
P.S. To prove that Shared Folders is working, see the movie about Host Guest Integration just released:
Microsoft made Windows 7 beta available last Friday (Jan 9th, 2009) so decided to quickly take a look using VirtualBox on my Mac. This blog is about how I made it work.
If you know VirtualBox then the only non-standard step concerns the Guest Additions (Step 4 below)
(Editors Note: Since the release of version 2.1.2 Windows 7 works out of the box. )
N.B. The Microsoft Download Manager uses ActiveX and so only worked in Internet Explorer. So I downloaded it from an XP instance running in VirtualBox to a Shared Folder on my Mac.
Although Microsoft recommend 1G for RAM, I used 512MB and it works great. Here are the rest of my settings:
Choose Custom Installation as we're doing a clean install into a virgin vm.
To install the Guest Additions we need to select "Devices...Install Guest Additions" to mount the additions iso. There is a check in the setup program, for version 2.1.0 and earlier, that prevents installation on Windows 7, so we need to run the installer in Vista compatibility mode. Do this by opening an explorer window showing the guest additions CD...
...and right click the 32 or 64-bit installer and select Properties. Now set the Compatibility Mode to Vista, and run it to install as usual.
Now finally you need to reboot and you're done.
Windows 7 on your Mac (or Windows/Linux/Solaris PC too), pretty cool huh?
"Relentless" is how one commentator described it. Relentless development of the VirtualBox technology, and relentless uptake and adoption by the community.
Today, Sun announced version 2.1 of Sun xVM VirtualBox, the 3rd major release since the acquisition of innotek back in February, 2008. So what's new in this version and gimme some data on this "adoption" stuff?
As a simple soul, fatbloke has to group features into buckets and he's labelled the buckets: Faster, Easier and Interoperable.
According to the Adopto-meter there have been over 8Million downloads of VirtualBox and the rate at the moment is 25,000 per day (which we think puts us in 3rd place behind Java and MySQL).
So now do your bit... push the needle up a bit more by downloading and trying 2.1 now.
Sun xVM VirtualBox on a Mac has been great for running multiple "client" vm's which use NAT networking, but rubbish for running "server" vm's because it wasn't easy to give a vm a real IP address which other machines on the network can connect to.
All this has changed with the introduction of Host Interface Networking for the Mac in VirtualBox 2.0 and this entry attempts to show you how to convert an existing vm configured for NAT networking into a full blown server that I can run Apache on.
So here's my starting setup on my home network:
The VirtualBox config looks like this:
And the guest sees the world thus:
What I want to do is configure VirtualBox and OpenSolaris to be a server with IP address 10.0.1.199, say.
Shutdown your guest if it is running and go to the VirtualBox Console GUI.
Here is the Before config:
And here is the After Config:
We changed 2 things:
...but I found that OpenSolaris got stuck during the boot sequence when I did this. (OpenSolaris experts out there, please explain. Random number generation?)
Now boot up the vm.
Fat Bloke is not an OpenSolaris expert but he blindly followed the instructions in this excellent Observatory blog as follows:
pfexec vi /etc/nwam/llp
and change from:
e1000g0 static 10.0.1.199
and restart nwam:
pfexec svcadm restart nwam
pfexec vi /etc/resolv.conf
and add the address of the wireless router:
Also tell nsswitch.con to use dns to resolve hosts:
pfexec cp /etc/nsswitch.dns /etc/nsswitch.conf
Configure the default router to be the wireless router:
pfexec vi /etc/defaultrouter
Add the line:
And restart the routing service:
pfexec svcadm restart network/routing-setup
So in summary here is my new OpenSolaris config:
Simply firing up Firefox shows that things appear to be working:
And in actual fact Fat Bloke found Host Interface networking to be about xx% faster than NAT networking using exactly the same guest.
An easy test is simply:
(BTW you can easily add an entry to the Mac /etc/hosts file to give your server a name rather than using the IP address)
from a Mac Terminal window like this:
or why not install a real server application such as an Apache web server, glassfish or whatever.
Here I've installed Sun Secure Global Desktop Software which provides remote access to a server via a browser based interface. I'm accessing it from my Mac, so I have a client and server all contained on one box.
Sun xVM VirtualBox is now great for running client and server vm's on Mac and Solaris hosts. The configuration interface is very simple and the performance improvement over NAT in Fat Bloke's tests is about 30% quicker.
But don't take my word for it
You have to hand it to the VirtualBox engineers, nothing stops them churning out top quality code at a rate of knots. You might think that the wind and the rain of an acquisition process would slow things down but it was business as usual. And the culmination of their efforts is Sun xVM VirtualBox 1.6 available right now!
So what's new in this release? In order of coolness and importance to the Fat Bloke here are my lucky 7 features:
1. Mac OS X is out of Beta and works great!
This is great professionally and personally. It means I can use all the platforms I need (Windows Vista and XP, Solaris and OpenSolaris, Ubuntu) at the same time. I used to use Fusion but not any more. Check out seamless windows (make sure you have enough Video Ram if you have a big screen) and USB device support. Very cool!
2. OpenSolaris and Solaris 10u5 as hosts.
Using OpenSolaris as a host for multiple Virtual Desktops (XP instances to be specific) is hugely powerful. (Note that networking is limited to NAT in this release.)
3. Solaris Guest Additions.
Now I can really install and kick the tires of OpenSolaris without scrambling around to find hardware to put it on. New in this release are big things (seamless windows) and little things (mouse integration) which together make installing and using OpenSolaris, in particular, a breeze.
4. Scalability improvements.
I don't know about you, but previously I couldn't run more than a couple of vm's simultaneously. 1.6 fixes whatever that was so now you can really confuse yourself with more windows of more varieties than you can shake a stick at.
5. Gigabit ethernet for guests.
Just plain faster.
6. SATA support for up to 32 disks.
Haven't used all 32 in a single guest yet though.
7. Web Services APIs
For scripters - If you don't know the command line interface go read about VBoxManage in the User Manual. It is v. powerful.
For code monkeys - check out the COM/XPCOM interfaces too.
New for code gorillas - Web Services APIs which make it easy to lash up an app which manages, controls or monitors VirtualBox remotely, something prospective OEM partners will love.
The first release after an acquisition is an interesting one to watch for signs of interference and influence.
It could have gone badly wrong. But I'm pleased to observe that for the ex-innotek guys and the VirtualBox community, it seems to be "Business as Usual".
FatBloke has been absent for quite some time....and to what do we owe this absence:
For sometime now, FatBloke has had an opinion on topics around Desktop Virtualization. Most of the time he has solved the need for:
...by taking a server based computing and SGD approach to life. This approach used servers and wires to deliver a richer, but more secure desktop than could be delivered traditionally.
And while this is a great approach, which delivers on the needs above, VirtualBox is a different client-side based approach which is compact, self contained and very elegant. Let me explain...
VirtualBox is a Type-2 hypervisor which means it installs like a program on top of your existing system. So you don't need to wipe your existing machine. Once installed, you create Virtual Machines into which you can install your desired OS's. So here's what it looks like on a Mac host running OpenSolaris and Windows XP:
It can install on:
And Guests can be:
So on his MacBook Pro the FatBloke has all he needs: Mac, Windows, Solaris, Linux apps all at once.
In the next few posts I'll cover cool features of VirtualBox and explain why this is the coolest piece of technology that Sun has acquired in a long time.
And the first reason is that VirtualBox is FREE (as in free beer) and Open Source (as in free speech).