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:
Hi Yangbin, welcome to the Seven Forums.

Check your virtual machine settings as told in step 16 in tutorial.

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
Thanks Kari!
I checked step 16 of the tutorial, but somehow it didn't work for me. Actually, I have even tried all options under 'Bridged adapter', none of them worked. Finally, I change 'bridged adapter' to 'NAT', which is the default option for network, and it works this time!
I'm using ubuntu to reply this now. So cool!
Appreciate your patience and time!
 

My Computer

Computer type
PC/Desktop
OS
Windows 7 Home Premium 64 bit
Thanks Kari!
I checked step 16 of the tutorial, but somehow it didn't work for me. Actually, I have even tried all options under 'Bridged adapter', none of them worked. Finally, I change 'bridged adapter' to 'NAT', which is the default option for network, and it works this time!
I'm using ubuntu to reply this now. So cool!
Appreciate your patience and time!

Awesome: both the tutorial and the way VirtualBox and Ubuntu work.

The above tip also got me connected:"change 'bridged adapter' to 'NAT'". Thanks, that saved me a lot of messing around.

I'd also add PAY PARTICULAR ATTENTION TO PART 2 STEP 12 i.e. "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:"

If, you miss this, like I did because I was too keen to get cracking, Ubuntu seems to freeze up and your mouse/trackpad fails to work inside the VirtualBox.

Yet again the old advice: IF ALL ELSE FAILS, READ THE INSTRUCTIONS.


Thanks to everyone concerned.

Martin
 

My Computer

Computer type
PC/Desktop
OS
Windows 7 64bit
Excellent and very helpful. Thanks for your time
 

My Computer

Computer type
PC/Desktop
OS
Win 7 64 bit
VirtualBox 4.3.6 r91406 & Linux Mint 16 Cinnamon64bit

Hangs on restart during install.

Host is the W7 pro 64bit in my system specs.

Guest is installed via linuxmint-16-cinnamon-dvd-64bit.iso
...from here: http://www.linuxmint.com/edition.php?id=144

0.png

1.png

2.png

3.png

4.png

5.png

6.png

7.png

8.png

9.png

10.png

11.png

12.png

13.png

14.png

15.png

16.png

17.png

18.png

19.png

20.png

21.png

22.png

23.png

Clicking on Restart Now in the screen above gives the screen below.

24.png


I can reset the VM by closing the window and selecting power off or via the menu machine/reset. Once I restart the VM all seems fine and updates install fine.

25.png

26.png

Resetting the VM just does not give me a warm feeling.

Any suggestions.

edit: I've tried default settings and settings that are closer to the tutorial... same issue.
 

My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
Employer provided Dell Latitude
OS
W7 Pro SP1 64bit
CPU
i7
Memory
8GB
Graphics Card(s)
Intel HD Graphics
Hard Drives
crappy SSD
Antivirus
Employer mandated Symantec Endpoint Protection
Browser
Pale Moon 64bit, IE11 64bit & Chrome 64bit
Sorry the delay. I'll download that same Mint edition and try to install it, will be back soon.
 

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
I seem to be completely unable to install Mint 16 x64 to VirtualBox. Whatever I do, whatever settings I choose, it freezes on splash screen at the beginning.
 

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
I'm having other troubles with this version of VirtualBox...
...so I think that I'll wait for a new release.

Thanks for your time on this.
 

My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
Employer provided Dell Latitude
OS
W7 Pro SP1 64bit
CPU
i7
Memory
8GB
Graphics Card(s)
Intel HD Graphics
Hard Drives
crappy SSD
Antivirus
Employer mandated Symantec Endpoint Protection
Browser
Pale Moon 64bit, IE11 64bit & Chrome 64bit
Quite interesting, though. Tried several times during past week or so, nothing seems to be working. Ubuntu OK, SuSE OK, Mint 16 a no go.

You could try if you could use one of the pre-installed Mint 16 VirtualBox images: LinuxMint | VirtualBoxImages.com
 

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
My Linux Mint VB/VM install works for the most part...
...it is just weird having to do a power reset during the last part of the install.

I just wanted it to show a person what it is like before I put it on an older laptop currently running XP.
 

My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
Employer provided Dell Latitude
OS
W7 Pro SP1 64bit
CPU
i7
Memory
8GB
Graphics Card(s)
Intel HD Graphics
Hard Drives
crappy SSD
Antivirus
Employer mandated Symantec Endpoint Protection
Browser
Pale Moon 64bit, IE11 64bit & Chrome 64bit
AWSOME WORK

THANK YOU VERY MUCH IT HELPS A LOT :)
 

My Computer

Computer type
PC/Desktop
OS
Windows 7 64-bit
Hello Kari I have the VB installed but am stuck at point 14 as I follow the insrtuctions but have no way of browsing to the stick I have Ubuntu save on.

I feel I have made a mistake somewhere but where I don't know can you please advise me as to what I have to do. In my pic is where I am stuck.

Just as I know will the VD open up Ubuntu in the same way as a dual boot would give ,me??
 

Attachments

  • VD.PNG
    VD.PNG
    17.5 KB · Views: 235

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Own build (new) Desk1 / Asus ROG Win 7 / Desk2 1st build
OS
Desk1 7 Home Prem / Desk2 10 Pro / Main lap Asus ROG 10 Pro 2 laptop Toshiba 7 Pro Asus P2520 7 & 10
CPU
Desk1 i5 3750K / Laptop i7 GTX 860M / Desk2 i5 2500
Motherboard
Desk1 Asus P877-V / Desk2 Gigabyte H67 UD3H / Laptop ?
Memory
Desk1 8GB (1866) / Desk2 16GB (1333) / Laptop 8Gb DDR3
Graphics Card(s)
Desk 1& 2NVidia GTX 650 & Laptops on board Intel
Sound Card
Desk 1 & 2 -XONAR DG Realtek High Def audio Laptop
Monitor(s) Displays
Desk 1 Benq HD 2450 / Desk2 Philips 24" / Laptop 17.5"
Screen Resolution
1920x1080 D1 & D2 & Laptop 1
Hard Drives
Desk1 Samsung 120GB 830 SSD
Asus ROG 256GB 850 Pro SSD
Desk2 Samsung 840 256 SSD
Toshiba 120GB EVO
PSU
Desk 1 Corsair HX 1050/ Laptop ? / Desk 2 Corsair HX 650
Case
Desk 1 Cooler HAF XM ? Toshiba laptop / Desk2 Coolermaster
Cooling
Fans on all Desk1 -2 Desk2 - all Coolermasters 5 Laptop ?
Keyboard
Desk 1 MS Sidewinder X6 Desk 2 MS Sidewinder X 4
Mouse
Desk 1&2 - Gigabyte MS 900 gamer - laptop - Logitec wireless
Internet Speed
ADSL2+
Other Info
One other Desktop (tester) and spare Toshba laptop both with SSD's
Running Kaspersky 2016 ISS on all machines config'd identically
Logitec audio stereo systems on each machine (x3)
Canon MG5250MFC
Router/modem TP-Link running WPA2SK
am stuck at point 14 as I follow the insrtuctions but have no way of browsing to the stick I have Ubuntu save on.
ICIT2LOL,

Am I correct in assuming you downloaded the Ubuntu iso file and then went the extra step of turning it into USB installation media? If so, that was unnecessary. You don't need physical installation media, you install directly from the iso.

In your screenshot, unattach "Host Drive D:" and instead "insert" the iso into the virtual CD/DVD drive.

Click the round plus symbol next to "Controller: IDE", then click "Choose disk", and navigate to the iso you downloaded. "OK" your way back out of everything, and you will have effectively loaded the virtual DVD image into your VM's virtual CD/DVD drive.

Now start your virtual machine and it should boot from the iso image. Take it from there to complete the install.
 

Attachments

  • vb1s.jpg
    vb1s.jpg
    21.7 KB · Views: 230
  • vb2s.jpg
    vb2s.jpg
    37 KB · Views: 242

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Dell Optiplex 7050
OS
Windows 7/8.1/10 multiboot
CPU
Intel Core i7-7700
Motherboard
Dell, Intel Q270 chipset
Memory
48GB (2x16GB Crucial DDR4-3200 + 2x8GB Hynix DDR4-2400)
Graphics Card(s)
Intel HD630 + AMD Radeon R7 450 PCIe
Monitor(s) Displays
Asus VC279 (27")
Screen Resolution
1920x1080
Hard Drives
Toshiba M.2 NVMe (256GB),
Samsung 960 Evo (500GB),
WD Red Plus 80EFBX (8TB)
Ok mat I will give it a go as I really would have preferred a dual boot on the drive itself. But will try again as the last dual boot crashed my tester machine and I don't wnat to wreck the current dedicated 7 machine I have running as Iam running out of machines:shock:
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Own build (new) Desk1 / Asus ROG Win 7 / Desk2 1st build
OS
Desk1 7 Home Prem / Desk2 10 Pro / Main lap Asus ROG 10 Pro 2 laptop Toshiba 7 Pro Asus P2520 7 & 10
CPU
Desk1 i5 3750K / Laptop i7 GTX 860M / Desk2 i5 2500
Motherboard
Desk1 Asus P877-V / Desk2 Gigabyte H67 UD3H / Laptop ?
Memory
Desk1 8GB (1866) / Desk2 16GB (1333) / Laptop 8Gb DDR3
Graphics Card(s)
Desk 1& 2NVidia GTX 650 & Laptops on board Intel
Sound Card
Desk 1 & 2 -XONAR DG Realtek High Def audio Laptop
Monitor(s) Displays
Desk 1 Benq HD 2450 / Desk2 Philips 24" / Laptop 17.5"
Screen Resolution
1920x1080 D1 & D2 & Laptop 1
Hard Drives
Desk1 Samsung 120GB 830 SSD
Asus ROG 256GB 850 Pro SSD
Desk2 Samsung 840 256 SSD
Toshiba 120GB EVO
PSU
Desk 1 Corsair HX 1050/ Laptop ? / Desk 2 Corsair HX 650
Case
Desk 1 Cooler HAF XM ? Toshiba laptop / Desk2 Coolermaster
Cooling
Fans on all Desk1 -2 Desk2 - all Coolermasters 5 Laptop ?
Keyboard
Desk 1 MS Sidewinder X6 Desk 2 MS Sidewinder X 4
Mouse
Desk 1&2 - Gigabyte MS 900 gamer - laptop - Logitec wireless
Internet Speed
ADSL2+
Other Info
One other Desktop (tester) and spare Toshba laptop both with SSD's
Running Kaspersky 2016 ISS on all machines config'd identically
Logitec audio stereo systems on each machine (x3)
Canon MG5250MFC
Router/modem TP-Link running WPA2SK
Back
Top