Installing Windows 7 Beta in Sun's VirtualBox
Update 1/16/09: Wow! We've gotten an overwhelming response to this post and it has quickly become our most popular ever. Thanks to all!
But in particular I'd like to thank a few web sites that have linked to this article:
http://www.version2.dk/artikel/9596-med-windows-7-i-sandkassen
http://platonic.techfiz.info/2009/01/13/installing-windows-7-on-virtualbox/
Thanks!
There are a couple of tricks to get Windows 7 Beta working correctly in VirtualBox, and I’m going to show you how to get it done, from start to finish.
I’m going to assume you’ve already downloaded the ISO and gotten your installation key (Get them here before January 24), and burned the ISO to a disk. With VirtualBox you don’t necessarily need to burn the disk, and in fact the steps I’m going to go through here just mounts the ISO to make it available as a disk to the virtual machine.
I’ll be using VirtualBox 2.1.0 on a Windows SP3 host.
First, to make the ISO available to the guest operating system, we’ll need to add it to the media manager.
- Open VirtualBox and click on File, then Virtual Media Manager.
- When the Virtual Media Manager opens, click the CD/DVD Images tab.
- Click the Add button.
- Navigate to the Windows 7 Beta ISO file you downloaded. Choose it and click Open.
- You should now see your ISO listed on the CD/DVD Images tab of the Virtual Media Manager. Click OK.
Ok, now let’s set up the guest virtual machine within VirtualBox.
- In the main VirtualBox window, click the New button.
- Click Next to start the wizard.
- Type a name for your new virtual machine in the Name box. I called mine Windows 7. Choose Microsoft Windows in the Operating System box, and Other Windows in the Version box. Click Next.
- Next we need to decide how much memory to give to the guest operating system. The minimum requirements for Windows 7 recommend 1 gig of memory. But my host machine has only 2 gig installed, and I didn’t want to give Windows 7 half of that, so I decided to give it only 512MB. Windows 7 was a little sluggish, but usable. Use your own judgment when deciding how much to give your guest operating system. When you’ve adjusted the memory how you like it, click Next.
- Now we need to create a virtual hard drive for the new guest operating system. Click the New button to create one.
- Now click Next, make sure Dynamically expanding storage is selected, then click Next.
- Now we need to choose the location of the virtual disk. The default location is C:\Documents and Settings\username\.VirtualBox\HardDisks, and the default size is 20GB. The minimum suggested hard drive size for Windows 7 is 16GB, so 20GB is plenty to get it installed and mess around with it a little. If the size and location are good for you, click Next.
- Click Finish. This completes the virtual drive creation wizard and returns us to the virtual machine wizard.
- You’ll see the drive we just created listed. Click Next.
- Click Finish. You’re, well, finished!
This gets the virtual machine created with some basic hardware settings.
Most of these settings are fine, but we need to enable the sound and tell it to mount the Windows 7 ISO you downloaded.
- Click on Audio in the right pane. When the window opens, check the Enable Audio box, and choose Windows DirectSound. Click OK.
- Click CD/DVD-ROM in the right pane. Check Mount CD/DVD Drive, then choose ISO Image File. Make sure the ISO we added to the Media Manager is chosen here. Click OK.
These settings will get us up and running with a CD drive and sound. There are a lot of other settings we could have a look at here, and you can go look at those on your own, but this is all we’re going to work with here.
Now our virtual guest machine is finally ready. So now go ahead and Choose Windows 7 in the left pane and click the Start button.
If you’ve installed Windows Vista in the past, the Windows 7 install procedure will look very familiar. If you’ve not installed Vista and have experience only installing Windows XP, then you’re in for a pleasant surprise. Installing Windows 7 requires very little user interaction.
First, you’ll be asked for language information, then the installation type.
Choose Custom here. On the next screen you should see only one drive and all of it should be unallocated. This is the virtual drive we created earlier. Just click the next button.
Now comes the longest part of the installation, so sit back, enjoy your beverage of choice, and wait. Later on you’ll be asked for your time zone, user name, password, and key. Provide all of those, then in a few minutes you’ll be rewarded with a fish.
When you see this fish, you’re done installing. This is the Windows 7 desktop. Feel free to mess around a little and check things out. After you look around a bit, you’ll no doubt notice that there is no network, no sound, you can’t install the VirtualBox Guest Additions, and your mouse gets trapped in the virtual machine window. Press the right CTRL key to get it out of there.
To solve these problems, we’ll need to install the VirtualBox Guest Additions. But wait! Didn’t I just say we can’t install them? We can install them, but the installer is not compatible with Windows 7, but it IS compatible with Windows XP. So We’ll just run it in compatibility mode.
- If your mouse is currently stuck in the guest window, press the right CTRL key to get it unstuck.
- Now click Devices in the menu bar, and choose Mount CD/DVD-ROM, and then choose CD/DVD-ROM Image.
- This should look familiar. Choose VBoxGuestAdditions.iso, then click the Select button.
- The AutoPlay window should open at this point. Choose to open the folder and view files.
- Right-click the VBoxWindowsAdditions file and choose properties.
- In the Properties window, go to the Compatibility tab.
- Check the Run this program in compatibility mode for: box, then choose Windows XP (Service Pack 2) in the box below it. CLick OK.
- That should put us back at at the screenshot above. Now you can double-click the VBoxWindowsAdditions file to run it.
- Click Yes to allow the changes.
- Click next to begin the installation wizard.
- Click Agree then click Install.
- After a few seconds, you’ll be asked if you want to install the Sun display drivers. Check the box for Always trust software from “Sun Microsystems, Inc.” and click Install.
- After a few more seconds the installation will be finished. Click Finish to restart your virtual machine.
You’ll notice you still don’t have sound or network, but at least you can smoothly move your mouse back and forth between the guest and host operating systems. To get the sound and network working, we’ll need to install the drivers by hand. Don’t worry, it’s not hard at all.
- Click the Windows button in the bottom left of the virtual machine window, then right-click on Computer and choose Properties.
- On the left sidebar of this window, choose Device Manager.
You should see two items under Other Devices, and both should have the yellow exclamation point beside them. They should be the ethernet controller and the multimedia audio controller.
- Right-click on Ethernet Controller and choose Update Driver Software.
- Choose Browse my computer for driver software.
- Click the Browse button and choose the drive with the VirtualBox Guest Additions.
Click the OK button, then click Next. After a few seconds the driver will install.
Now that the network driver is installed, we only need to wait a few seconds to install the sound driver. One of the cool (Or scary, depending on how you look at it) things about Windows 7 is that if some piece of hardware needs a driver, Windows 7 will just go out and look for it. In this case, it goes out to the internet, finds a driver for the Intel 82801AA AC’97 Audio Controller and installs it without any interaction from you. Kinda cool, huh?
So that’s it. In a nutshell, to get everything in Windows 7 working correctly in VirtualBox, you need to run the VirtualBox Guest Additions in Windows XP compatibility mode, manually install the network driver from that CD image, then sit back and wait for the sound driver to install.
If you have any questions or comments please feel free to leave them in the comments below!
- Article Type:
- Companies:
- Microsoft:
- SoftwareTypes:
- Tech:


Comments
Windows 7 x64
Had any trouble with installing Windows 7 x64 (as the guest)??? basically, NONE of the above steps worked :)
No 'errors' when trying to install the guest additions using the "compatibility" trick... they just don't function (ie: no mouse feature, ect...)
And worst of all... NO NETWORK... i can't get that adapter to install fer nuthin!!!!
questions? ideas? sad stories?
thanks,
jono
Using the CD drive in Windows 7
Hello!
Thanks for the clear explanation! So far everything is working beautifully, except that I cannot find my cd drive in Windows 7. I'm trying to install SoldWorks. The cd shows up of course on the Mac side of things, but I can't figure out how to add the cd drive to the virtual box side...
Maybe I'm being silly and overlooking something simple.
Thanks in advance for the help!
Christine
Result: Silliness
Ok, nevermind. A bit more playing around and I figured out that I just needed to mount my cd/dvd drive and the cd came up.
Thanks for the great post! What a help!
Windows 7 installation through cd
I have windows 7 cd and was trying to install it on virtualbox, i chose to boot from cd but it displays error message that can't read, system halted.
cd is bootable
Dear art, I thank you for
Dear art,
I thank you for this valuable page. It is very neat and clear..Thanks again
Win7and FAT32??
What's the best way to go about installing Win7 on V/box with FAT32 Files.I have an external drive that is NTFS could it be done with this??? or change FAT32 to NTFS?? or set up a new partition on host H/Drive with NTFS?? Which would be the easiest way to go about it.
Phill
I really have little idea of
I really have little idea of what I'm doing....
I attempted to set the hard drive image to my usb external hd and run the VM from their but during the installation of 7 on the unpacking phase it says the disk is full despite it being allocated 20 gigs on a external hd that has well over 200 gigs free.
I must have made an error somewhere, trying this again.
Apparently I was so clueless
Apparently I was so clueless to this I did not even check to make sure whether my External Harddrive was formated NTFS or not.
Trying the "old fashioned way for now" things seem to be progressing nicely although I am a bit worried as to how installing the drivers will go.
Adventure!
Audio and Video
And now I attempt to get my audio and video working...
To no success so far. Used Windows DirectSound at the beginning but when i attempted to update my drivers later with the guest addition image nothing was in there.
On the bright (or scary side) side windows 7 loaded up internet ready without me having to do a thing.
I had a Realtek Audio driver which im attempting to gather directly.
As for the video Nvidia 7900 512.
Necesito ayuda
Me gustaria saber como puedo conseguir la ISO de VirtualBox o el Cd para instalar las guests additions porque no puedo reproducir sonido en windows 7 . Por cierto virtualbox lo tengo instalado en windows xp. Por favor contesten rapido.
Virtual Box 2.2.2 with Guest Additions
Just updating... RC1 of Windows 7 with Virtual Box 2.2.2 doesn't need the trick to get the guest additions to work. it's all there native to
The newest RCx of Win7
The newest RCx of Win7 (which was publiced by Hungarian PC World magazine) doesn't detect sound at all. (AC'97 and SB 16) USB is very unstable in VB. If VB detected the USB device the guest Win7 works like a charm.
One of my two external HDD box, bluethooth and IR stick are unknown devices for VB 2.2.2. All of them are working perfectly under the host WinXP SP3. GuestAddition was installed automatically. Network worked without it. I tried out the out of box NAT and after it changed to bridged mode.
win 7
Only the 64bit w7 not work
You are hungarian?
driver issue
i have two questions why can't i install the graphic card driver(catalyst control center) i want instead of one virtualbox provided?? i mean my graphic card is ati4830,what can i do to make my ati4830 to work properly in windows7 beta on virtualbox??
another problem is there is only one cpu usage monitor figure in my task manager, although i have a duo-core cpu.
Memory size
Good you posted about using 512MB. My computer has 2GB RAM. I was trying to use 1GB for Win7beta, but the virtual machine kept stopping suddenly, and couldn't resume. I'm not sure, but I think that you gotta take seriously when VBox says "Memory assigned is over 50% of host memory" (I was using 1024MB for main memory and 16MB for video). Your post guided me on deciding upon using less memory than the minimum recommended. Thank you. And also thanx for guiding in the VB GuestAdditions. =)
Great!
Thanks for the comment Zeth! Happy we could help you!
Awesome thanks for the blog.
Awesome thanks for the blog. I can now run windows 7 on my ubuntu desktop to do uni work (visual studio, groove etc)
No audio hardware
I'm running ubuntu 8.10 64-bit as my host OS and using VirtualBox 2.1 I'm running Windows Vista Ultimate 64-bit as my guest OS. I'mm having an issue with getting audio output to work.
The machine is working great except for audio. When windows starts, there is a speaker with a red X next to it in the system tray signifying that there is no sound. I hover my mouse over it and get the message:
"No Audio Output Device is installed." This looks like virtualBox isn't providing a virtual audio card to the guest, so I started trying different controllers and drivers in the Audio settings.
I have tried every combination of the "Host Audio Driver" and "Audio Controller" fields and always end up with the same result upon running the guest OS, no hardware device is being seen.
Any ideas?
something of note
There is no "coreAudio" option for my Host Driver...which other people seem to say is the fix for my problem. I have PulseAudio, ALSA Audio Driver, OSS Audio Driver, and Null Audio Driver as my driver options. I have ICH AC97 and SoundBlaster 16 as my controller options. I have tried every combination with no effect.
Installed guest Win7 on Vbox
Correctly install without problem sound and network and 256bit color.
Choose Operating System as Microsoft Windows
Choose Version of Windows 2008.
*instead of version Windows 7
Audio:
Host Driver: Windows DirectSound
Controller: ICH AC97
Network adapter 1: Intel PRO/1000 MT Desktop (choose HOST interface)
Install Win7.
After that just install VBoxGuestAddition use autorun... simple...
Now u can full screen win7 have network have sound and not have problem of 256bit display.
sorry...
I know this isn't a windows 7 issue, as I'm using vista ultimate as my guest OS, but I'm at the end of my rope here and you seem knowledgeable.
I need audio working on the guest or it's useless to me. Any help would be greatly appreciated. Thanks :)
Hey, I tried installing
Hey,
I tried installing Windows 7 Beta on Virtualbox (Hosted on Windows XP Home SP3) and came across a couple of problems
1. No internet access no matter what I do ... the device manager does not have ethernet controller for the "Other Devices". Btw, during installation, I had set it up as "Home Network" and I have an Intel (R) Pro/1000 MT Desktop Adapter listed under the "Network Adaptors"
2.Can't share the folders no matter what I do ie click under Devices--> Shared Folders-->etc. Added a Folder Path Successfully, but not showing up on the computer.
3. No access to USB Devices on the Guest OS even if I enable USB controller, if I click to set up a filter with the USB device details, end up with the device captured and not released even after I check to release the device and shutdown the Guest OS and exit VirtualBox. The USB port is not usable until I reboot my computer.
Would appreciate some help solving these.
Shared Folders(#2) Resolved as well
Quoting comment found at http://blogs.sun.com/fatbloke/entry/windows_7_on_virtualbox
================================================================================
OMG Thank you soooo much. I was pulling my hair out over the shared folder issue. I had updated to the newest VBOX and was still not getting anywhere, it was the tip off that the shared folder showed up under Computer rather than Network that set me on the straight and narrow. If you get the newest VBOX and want to get the Shared folder to work, just Right-Click the Computer heading and Map Drive from there. All you need to do is leave the Drive letter as X: and in the blank below, instead of chosing a drop down, type: \\vboxsvr\share_folder_name of course replacing the share_folder_name with whatever you named the folder on your Host system.
Posted by draceena on January 24, 2009 at 10:50 AM GMT #
================================================================================
I'm happy!!!
brilliant
After several twickings and twackings this finally worked thanx u r a genius
Managed to solve #1 and
Managed to solve #1 and #3
For Internet Access (#1)
Make sure that machine is powered off, then go to VirtualBox control panel, change Network Adapter to Intel Pro/1000 MT Desktop, Host Interface, (Host Computer Network Adaptor eg Wireless Card etc)
For USB Device (#3)
If running full version of VirtualBox, there is a USB controller which allows any USB devices attached to the host to be seen by the guest OS. For the free version, enable USB Device in the VirtualBox control panel, and add device SPECIFIC filter via right-clicking on the icon with a green plus sign. Take care not to add a USB hub. When the machine is powered down, access is restored to the host.
Can't figure out Share Folders/Drive Mapping (#2). But so far, when I add an extra network adaptor with NAT instead of Host Interface, my internet access is cut-off, with Host Interface, the Wireless Card shows up instead of the PC, no luck at all!
No sound drivers offered from Windows Update/Used Realtek's site
I tried using Windows Update to get sound drivers for AC'97 support, but it didn't offer me any required, recommended or optional updates for the sound drivers. Instead I went to Realtek's site at http://www.realtek.com.tw/downloads/downloadsView.aspx?Langid=1&PNid=14&... and got them from there.
Accept the "these are generic drivers" check box, click Next. I chose the Vista Driver (32/64 bits) Driver only (ZIP file) from Site 2. (Site 1 was only giving about 20 Kb/sec to the US.) Ran Setup.exe and I'm good to go.
The sound does seem to be a little slow. The sounds from doing Windows ops seem to be a fraction of a second slower than I recall them. Playing a moving trailer in Windows Media Player seems to have slightly scratchy sound. Good enough for now, though.
Internet with Wi-fi
hi, I'm using windows 7 on my laptop and is there any way where i can connect my windows 7 to the internet using my WiFi through virtual box? im using windows vista 32...
No sound...
Hey great tutorial! It really helped me out! I tried installing on Virtual PC and it ran EXTREMELY slow, But its running like a charm on Virtual Box. There's only one problem. I don't have any sound. I don't even have a place for my speaker drivers in the device manager! I'm not extremely advanced in this area with computers and could really use some help.
Also...
I also cannot make my colors go to 32-bit. Its stuck at 24 bit and I don't know what to do here on Windows 7. Now I just feel like a noob........
Have you tried to install
Have you tried to install the guest additions in safe mode? I was having the same problem and this solved the issue for me (not sure why, but it did the trick. Maybe one of the gurus can explain) Also, make sure your host display settings are set up correctly. your VB display cannot be 32 bit scheme if your host display is set lower
Works Great!
Your tips helped me greatly! I now have Windows 7 with sound and internet on my desktop! Thanks!
Updating ethernet drivers
While trying to update the ethernet drivers, after selecting guest additions, all that shows up is D:\ and nothing happens. What did I do wrong.
Thanks, Bill
Hardware acceleration
I enabled 3D acceleration in Virtualbox and gave Windows 7 128MB of graphics RAM, but it does not seem to recognize the 3D support.
Apps such as "Chess Titans" will still display a notification saying there is no supported hardware acceleration. Also, yes, it is enabled in the advanced settings of the display in Windows 7.
From the manual, available
From the manual, available for download from the same page you downloaded VirtualBox from:
4.8 Hardware 3D acceleration (OpenGL)
Starting with version 2.1, the VirtualBox Guest Additions for Windows contain experimental hardware 3D support.
With this new feature, if an application inside your Windows guest uses 3D features through the OpenGL programming interfaces, these will not be emulated in software (which is slow), but instead VirtualBox will attempt to use your host's 3D hardware. This works for all supported host platforms (Windows, Mac, Linux, Solaris), provided that your host operating system can make use of your accelerated 3D hardware in the first place.
The 3D acceleration currently has the following limitations:
1. It is only available in Windows XP and 32-bit Vista guests with the Windows Guest Additions installed.
2. Only OpenGL acceleration is presently available in those guests; Direct3D is not yet supported and will be added in a future release.
3. Because the feature is experimental at this time, it is disabled by default and must be manually enabled in the VM settings (see chapter 3.7.1.2, "Advanced" tab, page 46).
Please see chapter 13, Known issues, page 182 also.
Technically, VirtualBox implements this by installing an additional hardware 3D driver inside your Windows guest when the Guest Additions are installed. This driver acts as an OpenGL hardware driver and reports toWindows that the (virtual) hardware is capable of 3D hardware acceleration. When an application in the Windows guest requests hardware acceleration through the OpenGL programming interfaces, these are sent to the host through a special communication tunnel implemented by VirtualBox, and then the host performs the requested 3D operation via the host's OpenGL programming interfaces.
cant install sound driver
hello.........
i installed windows 7 on VP its workiing fine and also the guest addition
but somehow the sound is not working
i went to the device manager and update driver for multimedia driver and it searches in the internet and says that it cannot find the driver.
somebody help me
Go to windows update as the
Go to windows update as the article says and download the audio update!
installing win 7
hello,
I've download the windows 7 beta 64-bit, and I'm trying to install it in virtual box amd64 2.1 on vista premium 64-bit.
However Vbox refuses to access the iso i created of win 7 it just keeps coming up with the message "no bootable media"
I've tried creating the iso in a udf format,iso9660 and burning an iso to a dvd.
All of which get me no where. Please help me.
thank you in advance
oh nevermind
its always the last thing you think i.e. all i had to do to get it to work was select the download of win 7. No idea why i thought i had to make it in to an iso
I can't find the
I can't find the VBoxGuestAdditions.iso under CD/DVD-ROM Image option. I downloaded the guest.iso file and its now on desktop, where do i need to move it to so i can continue with the procedure.
Btw, thanks so much for writing this and keeping active with users
Nevermind I figured that
Nevermind I figured that out; just had to add it from the desktop. Thanks for the writeup
The guest additions should
The guest additions should be included with the VirtualBox install file you downloaded. You shouldn't need to download them separately.
Can't get internet connection to work
Thanks for the great tutorial! Everything worked fine for me, except I can't seem to get the internet connection up. I'm using the Intel Pro driver. It seems to only be getting a local connection. My host system is XP SP3. Any advice?
Figured it out
I figured it out. Had to change the setting under Network in the main interface from 'NAT' to Host Interface.
NAT should have worked, but
NAT should have worked, but if you got it working then I guess the problem is solved!
64 bit problem solved - somewhat
I solved the problem by keeping the 64 bit version of virtualbox and the 32 bit version of windows instead - I didn't want to reload both. It worked, but I'm a little puzzled why 64 didn't work with 64. Anyway, problem solved and thanks for your help!
Oops
Sorry, I guess I should have read all of the comments before I posted my reply above.
It is strange that it won't run the 64 bit version of Windows. I wish I had some more insight into it, but I don't use virtual box.
If I recall correctly,
If I recall correctly, Virtualbox emulates a 32-bit processor. Even on 64-bit hardware.
Keith is right
Thanks Keith, you're right. I found this chart on Virtualbox.org:
http://www.virtualbox.org/wiki/VBox_vs_Others
that says 64 bit guest OS is planned, but not currently supported.
Vmware Server supports it though, and that's free as well.
That link seems to be old
That link seems to be old data. Check out the change log for the current version: http://www.virtualbox.org/wiki/Changelog
If I understand this right, you can run a 64 bit guest OS as long as you have a processor that supports VT-x or AMD-V, even if the host OS is 32 bit.
BIOS
I did run into an issue where I had to go into the BIOS of a machine and turn on the Hypervisor or virtualization support. I wonder if that's the issue. Of course, that was with Hyper-V.