Linux - Install on Windows 7 Virtual Machine using VirtualBox

   Information
Microsoft Virtual PC is my choice to run Windows virtual machines. However, installing Linux on Virtual PC is not something I would recommend. Main reason is the lack of integration elements; Virtual PC integration components are designed to run well on XP, Vista and 7 virtual machines. For Linux, Virtual PC does not (at least at this moment) offer any integration components.

VirtualBox integration components are called Guest Additions. They install and run well also in any Linux distro. That's why I recommended creating Linux virtual machines in VirtualBox.

I am using Ubuntu 10.10 to make this tutorial. At the moment it is the most Windows like Linux distro available, a safe bet for a beginner to start experimenting Linux.

For more advanced Linux users I recommend using Novell SUSE 11.3 which is a commercial Linux distribution, free to test, or its free counterpart OpenSUSE 11.3. The setup procedure in VirtualBox is exactly the same.

Microsoft Virtual PC, Oracle VirtualBox and VMware Player are at the moment the best free virtualization applications. All have their pros and cons, I'm not going to put them in any order here. Let's just say I'm using Microsoft Virtual PC for all my XP and Vista virtual machines, and VirtualBox for older Windows and Linux machines.

You can download these virtualization applications here:
Microsoft: Virtual PC
Oracle: VirtualBox
VMware: WMware Player

OK, let's start. First, download and install VirtualBox using the link above. Then download latest Ubuntu Linux ISO image here: Download | Ubuntu


Part 1: Create a new virtual machine for Ubuntu

  1. Launch VirtualBox
  2. Click New:
    .
    Linux_in_VirtualBox_1.png

    .
  3. This opens New Virtual Machine Wizard. Click Next:
    .
    Linux_in_VirtualBox_2.png

    .
  4. Give your new virtual machine a name, choose the right OS and version. These are automatically selected if VirtualBox can determine it from the name you gave. Click Next:
    .
    Linux_in_VirtualBox_3.png

  5. Set the amount of RAM you want to assign to Ubuntu. For running a Linux vm (virtual machine), 512 MB is enough. You can assign as much as you want to, maximum being about 512 MB less of your host computer's RAM. Keep in mind though that RAM used by a running vm is away from the RAM Windows can use; assigning more RAM can make your vm run faster and better but at the same time make your Windows crawl so slowly even the vm halts. My recommendation is always leave at least 2 GB for Windows, or if you have under 4 GB of RAM only give maximum of 1 GB to a vm. Click Next:
    .
    Linux_in_VirtualBox_4.png

    .
  6. VirtualBox asks now if you want to create a new vhd (virtual hard disk), or use existing vhd. Choose Create new and click Next:
    .
    Linux_in_VirtualBox_5.png

    .
  7. New Virtual Disk Wizard starts. Click Next:
    .
    Linux_in_VirtualBox_6.png

    .
  8. Click Next to accept Dynamically expanding storage:
    .
    Linux_in_VirtualBox_7.png

    .
    Dynamically expanding vhd means that although the guest consideres the HD being the size given (max value), host Windows only uses as much space on HD as is actually needed; a 20 GB dynamic vhd where only 4 GB is used is seen by Windows host as a 4 GB vhd file, not as a 20 GB file, but the guest OS sees the same vhd file as a 20 GB hard disk with 16 GB free. I recommend 8 to 12 GB for Ubuntu.
  9. You can now accept the default location where VirtualBox offers to save the vhd, or change the location by clicking the small folder symbol. Default save folders are Your_Username\.VirtualBox (VirtualBox 3.2 and older) or Your_Username\VirtualBox VMs (from version 4 Beta). You can also change the original size of vhd here. Click Next:
    .
    Linux_in_VirtualBox_8.png

    .
  10. Click Finish to end New Virtual Disk Wizard:
    .
    Linux_in_VirtualBox_9.png

    .
    [*]Click Finish to end New Virtual Machine Wizard:
    .
    Linux_in_VirtualBox_10.png

    .
    [*]Now choose the virtual machine you just created and click Settings:
    .
    Linux_in_VirtualBox_11.png

    .
    [*]Choose Storage from the left pane, CD/DVD from under the title IDE controller, and click the small CD symbol on the right:
    .
    Linux_in_VirtualBox_12.png

    .
    [*]Now you need to tell VirtualBox which install media you want to use. You can assign any of the host system's CD/DVD drives to vm , or an ISO image to act as a CD/DVD drive. For now, you want to use the Ubuntu ISO you downloaded earlier. Browse to its location, choose it and click Open:
    .
    Linux_in_VirtualBox_13.png

    .
    [*]Now choose Display from the left pane, assign the maximum 128 MB video RAM to virtual machine's emulated video card:
    .
    Linux_in_VirtualBox_14.png

    .
    [*]Next you need to setup network controller. Click Network on the left pane, choose Enable Network Adapter, choose Bridged Adapter, and choose your host computer's network adapter from drop down list:
    .
    Linux_in_VirtualBox_15.png

    .
    [*]
    Click OK to save edited settings:
    .
    Linux_in_VirtualBox_16.png

    .

Part 2: Install Ubuntu on a virtual machine
  1. Choose Ubuntu vm, click Start:
    .
    Linux_in_VirtualBox_17.png

    .
  2. When vm starts, it shows you the first screen of Ubuntu setup. Choose the language you want from over 60 languages, or wait 30 seconds for English to be selected:
    .
    Linux_in_VirtualBox_18.png

    .
  3. Ubuntu starts now in so called Live Mode. Double click Install Ubuntu icon:
    .
    Linux_in_VirtualBox_19.png

    .
  4. Once again, choose your installation language:
    .
    Linux_in_VirtualBox_20.png

    .
  5. Choose Download updates while installing. You might also want to install Fluendo MP3 plugin offered for better audio features. Click Forward:
    .
    Linux_in_VirtualBox_21.png

    .
  6. Choose Erase and use the entire disk. Notice please, we are now talking about the virtual hard disk we created earlier, not the actual hd on your host computer. In other words, this does not mean your HD with Windows on it will be erased ;) Click Forward:
    .
    Linux_in_VirtualBox_22.png

    .
  7. Click Install Now:
    .
    Linux_in_VirtualBox_23.png

    .
  8. Choose your time zone:
    .
    Linux_in_VirtualBox_24.png

    .
  9. Choose your preferred keyboard layout. To avoid confusion, I recommend choosing the same you are using on your host computer's Windows. Click Forward:
    .
    Linux_in_VirtualBox_25.png

    .
  10. Tell Ubuntu your name, choose the computer name and set up a password. Click Forward:
    .
    Linux_in_VirtualBox_26.png

    .
  11. Installation starts, you have now some 20+ minutes for a coffee break, or you can watch a presentation about Ubuntu by clicking those arrow symbols on left and right:
    .
    Linux_in_VirtualBox_27.png

    .
  12. When installation is finished, you have to unmount (deattach) Ubuntu ISO image before reboot. Before clicking Restart Now, Open Devices menu from vm window, click CD/DVD devices, choose Unmount CD/DVD Device:
    .

    Linux_in_VirtualBox_29.png

    .
  13. Click Restart Now:
    .
    Linux_in_VirtualBox_28.png

    .
  14. When Ubuntu has booted, click your username to open a password prompt. Type your password, click Log In:
    .
    Linux_in_VirtualBox_30.png


    .
    Linux_in_VirtualBox_31.png

    .
  15. To fully integrate Ubuntu vm to your Windows 7 desktop, to allow networking and for instance cross platform copy & paste, you need to install VirtualBox Guest Additions. Click Devices menu, choose Install Guest Additions:
    .
    Linux_in_VirtualBox_32.png


    .
  16. If the CD/DVD icon appears on the desktop, right click it and choose Open With Autorun Prompt:
    .
    Linux_in_VirtualBox_33.png


    .
  17. If the CD/DVD icon does not appear on desktop (happens sometimes), open Ubuntu's Places menu, and choose VBOXADDITIONS. Choose then Open Autorun Prompt from VBOXADDITIONS window:
    .
    Linux_in_VirtualBox_34.png


    .
    Linux_in_VirtualBox_36.png


    .
  18. Choose Run to start Guest Additions setup:
    .
    Linux_in_VirtualBox_35.png

    .
  19. You must now enter the administrative password. It is the same you chose for your account, so enter it now:
    .
    Linux_in_VirtualBox_37.png

    .
  20. When Guest Additions are set up, you must press Return (Enter) to close the window:
    .
    Linux_in_VirtualBox_38.png

    .
  21. Restart Ubuntu:
    .
    Linux_in_VirtualBox_39.png

    .
  22. After reboot, you are ready to go:
    .
    Linux_in_VirtualBox_40.png
That's it. Made easy by Windows 7 and a virtualizaton application.


Kari
 
Last edited:
Then you better start anew.
 

My Computer

Computer Manufacturer/Model Number
HP, Dell, Gateway, Toshiba - 4 laptops and 2 desktops
OS
Vista, Windows7, Mint Mate, Zorin, Windows 8
CPU
from 1.6GHz Duo to i7
Monitor(s) Displays
2x HP w2207
Hard Drives
5x HDD, 7x SSD, 12x Externals
Keyboard
with trackball - no mices
Mouse
Trackball mice
Internet Speed
DSL 6000
this tutorial is awesome! I actually just put Ubuntu on one of my empty internal HDD's last night and it's pretty kool. This was my first experience w/ a linux based PC, it's definitely not noob friendly like windows haha. First thing that came to mind was Mac when I saw the machine boot up lol. I would like to give Red Hat a try as well, so i will probably just create a VM for it :geek:
 

My Computer

Computer Manufacturer/Model Number
Custom Box
OS
Windows 7 Professional x64
CPU
AMD Phenom II X4 980 Black Edition @ 4.1Ghz
Motherboard
ECS Elite Group IC780M-A V2.0
Memory
8GB Crucial DDR2 PC5300
Graphics Card(s)
Asus Radeon HD 5450
Sound Card
On Board
Monitor(s) Displays
Dual Monitor Setup
Hard Drives
60GB OCZ Vertex 3 SSD,
320GB, 250GB, & Dual 160GB HDD's
PSU
Cooler Master eXtreme Power Plus 500w
Case
Cooler Master Elite 310
Cooling
Dual 120mm Cooler Master Case Fans
Keyboard
Logitech...
Mouse
Microsoft Mouse 4000
Internet Speed
Super Fast

My Computer

Computer Manufacturer/Model Number
HP, Dell, Gateway, Toshiba - 4 laptops and 2 desktops
OS
Vista, Windows7, Mint Mate, Zorin, Windows 8
CPU
from 1.6GHz Duo to i7
Monitor(s) Displays
2x HP w2207
Hard Drives
5x HDD, 7x SSD, 12x Externals
Keyboard
with trackball - no mices
Mouse
Trackball mice
Internet Speed
DSL 6000
this tutorial is awesome! I actually just put Ubuntu on one of my empty internal HDD's last night and it's pretty kool. This was my first experience w/ a linux based PC, it's definitely not noob friendly like windows haha. First thing that came to mind was Mac when I saw the machine boot up lol. I would like to give Red Hat a try as well, so i will probably just create a VM for it :geek:
Thank you, Tom! Good to know this still helps users. I just should find the time and update it, new versions of both VirtualBox and Ubuntu are out and the tut a bit outdated.

Try Mint. That will probably alienate you less. http://linuxmint.com/
+1.

Linux mint is a good choice for Linux beginners and more advanced users alike who feel Ubuntu is not for them.

Kari
 

My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
HP ENVY 17-1150eg
OS
Windows 10 Pro x64 EN-GB
CPU
1.6 GHz Intel Core i7-720QM Processor
Memory
6 GB
Graphics Card(s)
ATI Mobility Radeon HD 5850 Graphics
Sound Card
Beats sound system with integrated subwoofer
Monitor(s) Displays
17" laptop display, 22" LED and 32" Full HD TV through HDMI
Screen Resolution
1600*900 (1), 1920*1080 (2&3)
Hard Drives
Internal: 2 x 500 GB SATA Hard Disk Drive 7200 rpm
External: 2TB for backups, 3TB USB3 network drive for media
Cooling
As Envy runs a bit warm, I have it on a Cooler Master pad
Keyboard
Logitech diNovo Media Desktop Laser (bluetooth)
Mouse
Logitech Performance Mouse MX
Internet Speed
50/10 Mbps VDSL
Antivirus
Windows Defender 4.3.9431.0
Browser
Maxthon 3.5.2., IE11
For some reason, my USB doesnt work in Ubuntu. It's not recognized. I've searched on the internet but no luck so far.
 

My Computer

Computer Manufacturer/Model Number
Dell Inspiron E 1505
OS
Windows 7 Professional 32 Bit
CPU
Genuine Intel(R) CPU T2080 @ 1.73GHz 1.73 GHz
Motherboard
DELL
Memory
2GB
Graphics Card(s)
ATI Mobility Radeon X1400
Sound Card
High Definition Audio Device
Screen Resolution
1280 by 800
Hard Drives
136 GB
Recovery 10 GB
See picture
 

Attachments

  • 2012-02-23_2352.png
    2012-02-23_2352.png
    39.2 KB · Views: 225

My Computer

Computer Manufacturer/Model Number
HP, Dell, Gateway, Toshiba - 4 laptops and 2 desktops
OS
Vista, Windows7, Mint Mate, Zorin, Windows 8
CPU
from 1.6GHz Duo to i7
Monitor(s) Displays
2x HP w2207
Hard Drives
5x HDD, 7x SSD, 12x Externals
Keyboard
with trackball - no mices
Mouse
Trackball mice
Internet Speed
DSL 6000
It works now. THANKS a lot!!!!
 

My Computer

Computer Manufacturer/Model Number
Dell Inspiron E 1505
OS
Windows 7 Professional 32 Bit
CPU
Genuine Intel(R) CPU T2080 @ 1.73GHz 1.73 GHz
Motherboard
DELL
Memory
2GB
Graphics Card(s)
ATI Mobility Radeon X1400
Sound Card
High Definition Audio Device
Screen Resolution
1280 by 800
Hard Drives
136 GB
Recovery 10 GB
You are welcome.
 

My Computer

Computer Manufacturer/Model Number
HP, Dell, Gateway, Toshiba - 4 laptops and 2 desktops
OS
Vista, Windows7, Mint Mate, Zorin, Windows 8
CPU
from 1.6GHz Duo to i7
Monitor(s) Displays
2x HP w2207
Hard Drives
5x HDD, 7x SSD, 12x Externals
Keyboard
with trackball - no mices
Mouse
Trackball mice
Internet Speed
DSL 6000
Where is share folder?
 

My Computer

OS
Windows 7 Ultimate x64
CPU
Intel i5 2500k @ 3,3GHz
Motherboard
ASROCK P67 Pro3
Memory
16GB
Graphics Card(s)
nVIDIA GeForce GTX560
Monitor(s) Displays
Samsung 2032bw
Screen Resolution
1680x1050
Have a look here
 

Attachments

  • 2012-03-02_1802.png
    2012-03-02_1802.png
    50.7 KB · Views: 233

My Computer

Computer Manufacturer/Model Number
HP, Dell, Gateway, Toshiba - 4 laptops and 2 desktops
OS
Vista, Windows7, Mint Mate, Zorin, Windows 8
CPU
from 1.6GHz Duo to i7
Monitor(s) Displays
2x HP w2207
Hard Drives
5x HDD, 7x SSD, 12x Externals
Keyboard
with trackball - no mices
Mouse
Trackball mice
Internet Speed
DSL 6000
I'm trying to set up a wireless connection in Ubuntu 10.04 but it doesnt seem to work. I have vboxaddition 4.1.22_80657 installed and so when I go to System>Administration>Hardware Drivers, it says No proprietary drivers are in use on this system.

Wired internet works for me. I've tried setting up wireless through a VPN connection, but it doesnt show up after I configure it.
 

My Computer

Computer Manufacturer/Model Number
Dell Inspiron E 1505
OS
Windows 7 Professional 32 Bit
CPU
Genuine Intel(R) CPU T2080 @ 1.73GHz 1.73 GHz
Motherboard
DELL
Memory
2GB
Graphics Card(s)
ATI Mobility Radeon X1400
Sound Card
High Definition Audio Device
Screen Resolution
1280 by 800
Hard Drives
136 GB
Recovery 10 GB
I have another question: How can I use the virtual images from a different Windows user account? Meaning, how and what can I load the virtual images into Oracle VM virtualbox so I can run it from another windows user account?
 

My Computer

Computer Manufacturer/Model Number
Dell Inspiron E 1505
OS
Windows 7 Professional 32 Bit
CPU
Genuine Intel(R) CPU T2080 @ 1.73GHz 1.73 GHz
Motherboard
DELL
Memory
2GB
Graphics Card(s)
ATI Mobility Radeon X1400
Sound Card
High Definition Audio Device
Screen Resolution
1280 by 800
Hard Drives
136 GB
Recovery 10 GB
I have another question: How can I use the virtual images from a different Windows user account? Meaning, how and what can I load the virtual images into Oracle VM virtualbox so I can run it from another windows user account?
The installation of an OS into vBox is like installing on a real PC. Dumping an image from another system into vBox will not work.

Reasons are drivers and the activation.
 

My Computer

Computer Manufacturer/Model Number
HP, Dell, Gateway, Toshiba - 4 laptops and 2 desktops
OS
Vista, Windows7, Mint Mate, Zorin, Windows 8
CPU
from 1.6GHz Duo to i7
Monitor(s) Displays
2x HP w2207
Hard Drives
5x HDD, 7x SSD, 12x Externals
Keyboard
with trackball - no mices
Mouse
Trackball mice
Internet Speed
DSL 6000
I actually upgraded the Virtual box version to 4.2.6. And even after installing vbox additions in ubuntu, I am not able to use the Internet. It says wired connection off - you are now disconnected. I click on eth0 and I get this message.
 

My Computer

Computer Manufacturer/Model Number
Dell Inspiron E 1505
OS
Windows 7 Professional 32 Bit
CPU
Genuine Intel(R) CPU T2080 @ 1.73GHz 1.73 GHz
Motherboard
DELL
Memory
2GB
Graphics Card(s)
ATI Mobility Radeon X1400
Sound Card
High Definition Audio Device
Screen Resolution
1280 by 800
Hard Drives
136 GB
Recovery 10 GB
Have you checked VirtualBox network settings? See tutorial Part 1 step 16.
 

My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
HP ENVY 17-1150eg
OS
Windows 10 Pro x64 EN-GB
CPU
1.6 GHz Intel Core i7-720QM Processor
Memory
6 GB
Graphics Card(s)
ATI Mobility Radeon HD 5850 Graphics
Sound Card
Beats sound system with integrated subwoofer
Monitor(s) Displays
17" laptop display, 22" LED and 32" Full HD TV through HDMI
Screen Resolution
1600*900 (1), 1920*1080 (2&3)
Hard Drives
Internal: 2 x 500 GB SATA Hard Disk Drive 7200 rpm
External: 2TB for backups, 3TB USB3 network drive for media
Cooling
As Envy runs a bit warm, I have it on a Cooler Master pad
Keyboard
Logitech diNovo Media Desktop Laser (bluetooth)
Mouse
Logitech Performance Mouse MX
Internet Speed
50/10 Mbps VDSL
Antivirus
Windows Defender 4.3.9431.0
Browser
Maxthon 3.5.2., IE11
Have you checked VirtualBox network settings? See tutorial Part 1 step 16.

I finally got it working. I tinkered with the network settings. Since, I'm using the Internet with the LAN cable, I set adapter 1 as the Broadcom Integrated controller and adapter 2 as my wireless adapter. It's working now. :party:
 

My Computer

Computer Manufacturer/Model Number
Dell Inspiron E 1505
OS
Windows 7 Professional 32 Bit
CPU
Genuine Intel(R) CPU T2080 @ 1.73GHz 1.73 GHz
Motherboard
DELL
Memory
2GB
Graphics Card(s)
ATI Mobility Radeon X1400
Sound Card
High Definition Audio Device
Screen Resolution
1280 by 800
Hard Drives
136 GB
Recovery 10 GB
Hi Monkeyman, welcome to the Seven Forums.

With Ubuntu 12 (both 12.04 and 12.10) it seems you need to turn ACPI off before installing. Do as told here:
  1. When on opening screen, press F6 to open Other Options menu. Highlight acpi=off with arrow keys, select it by pressing Enter, press ESC to exit menu:
    .
    Ubuntu_1.png
    .
  2. Now select Try Ubuntu without installing and press Enter. Do not care about possible error messages at this stage, just wait:
    .
    Ubuntu_2.png
    .
  3. When on Live Ubuntu desktop, select Install Ubuntu and installation begins:
    .
    Ubuntu_3.png
Notice that this can be a painfully slow procedure. Did three test installs today, on three different hosts, and average time needed was 3 minutes from above mentioned step 1 to step 2, and over 4 minutes from step 2 to step 3. Installation itself might also take a while.

Good luck.

Kari
 
Last edited:

My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
HP ENVY 17-1150eg
OS
Windows 10 Pro x64 EN-GB
CPU
1.6 GHz Intel Core i7-720QM Processor
Memory
6 GB
Graphics Card(s)
ATI Mobility Radeon HD 5850 Graphics
Sound Card
Beats sound system with integrated subwoofer
Monitor(s) Displays
17" laptop display, 22" LED and 32" Full HD TV through HDMI
Screen Resolution
1600*900 (1), 1920*1080 (2&3)
Hard Drives
Internal: 2 x 500 GB SATA Hard Disk Drive 7200 rpm
External: 2TB for backups, 3TB USB3 network drive for media
Cooling
As Envy runs a bit warm, I have it on a Cooler Master pad
Keyboard
Logitech diNovo Media Desktop Laser (bluetooth)
Mouse
Logitech Performance Mouse MX
Internet Speed
50/10 Mbps VDSL
Antivirus
Windows Defender 4.3.9431.0
Browser
Maxthon 3.5.2., IE11
Helpful but ...

There are a number of things which need to be updated to the current version of Virtual Box (4.2.12). Several of the screens don't match and someone who isn't able to think a bit outside the box isn't going to make it. For example, the current version doesn't have a "Devices" menu option for installing the guest additions. Instead, from the manager, select Settings, Storage, IDE, and use the tool to select the ISO which you have to download separately from http://downloads.virtualbox.org/virtualbox/4.2.12/
 

My Computer

OS
Windows 7 Ultimate 64
Thanks for heads up. As so many other things, also VBox has changed since writing this tutorial almost two and a half years ago.

As i have moved to Windows 8 and the Hyper-V is today the only virtualization platform I am using, I need to install the latest VBox and then some Linux virtual machines in order to get new screenshots and edit instructions. I will do it. It might not be today but anyway in the near future.

Kari
 

My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
HP ENVY 17-1150eg
OS
Windows 10 Pro x64 EN-GB
CPU
1.6 GHz Intel Core i7-720QM Processor
Memory
6 GB
Graphics Card(s)
ATI Mobility Radeon HD 5850 Graphics
Sound Card
Beats sound system with integrated subwoofer
Monitor(s) Displays
17" laptop display, 22" LED and 32" Full HD TV through HDMI
Screen Resolution
1600*900 (1), 1920*1080 (2&3)
Hard Drives
Internal: 2 x 500 GB SATA Hard Disk Drive 7200 rpm
External: 2TB for backups, 3TB USB3 network drive for media
Cooling
As Envy runs a bit warm, I have it on a Cooler Master pad
Keyboard
Logitech diNovo Media Desktop Laser (bluetooth)
Mouse
Logitech Performance Mouse MX
Internet Speed
50/10 Mbps VDSL
Antivirus
Windows Defender 4.3.9431.0
Browser
Maxthon 3.5.2., IE11
Kari, thank you for this detailed post. I have read the tutorial and almost all comments. My installtion works fine. However, I could not set the internet connection right. The conection icon says the connection is established, but when I open firefox, no webpage could be loaded. Any idea?
The host is Wins Home Premium x64, the VMbox is 4.2.12, and the Ubuntu is 12.04.2.
Thanks in advance!
 

My Computer

Computer type
PC/Desktop
OS
Windows 7 Home Premium 64 bit
Back
Top