Virtualization: Running VirtualBox on a Windows 7 laptop – Windows 2008 R2 Server guest

Using VirtualBox as hypervisor on a laptop eases usage of WLAN and USB on the guest OS.

This post is based on using VirtualBox 3.1.6 on Windows 7 (64 bit) with Windows 2008 R2 server, 64 bit, Standard edition.

Out of the box Windows 7 installed drivers for the WLAN in my laptop (with CPU i7 720) and for the full HD resolution video card. Nice.

After installing VirtualBox, you can start it and take it on a testdrive.

  • First take a look at FileSettings
    • General:
      VirtualBox-Setttings-General
      Tip: Change the folders to a drive other than where the host OS is installed. In that way you can reinstall the host and still keep the guests.
    • Input:
      VirtualBox-Setttings-Input
    • Network:
      VirtualBox-Setttings-Network
      Press the screw-driver button to see details:
      Virtual Network card
      This is a Virtual Network card that can connect to the VM’s.
      A DHCP server can assign IP addresses to the VM’s Virtual Network DHCP server
      The host OS now has three network cards:

      • LAN
      • WLAN
      • Virtual
    • Host network cards
  • Time to add a guest. From menu choose MachineNew.
    • Enter a name and choose an OS. This only preconfigures VirtualBox with some settings for the guest OS. It does not install any OS.
      VBox-Choose OS
    • Set needed memory
      VBox -  Memory
    • Create one or more virtual hard disks.
      Virtual HD for VM
    • Put the Virtual HD on another drive than the host
      HD place and size
    • Now a virtual PC shell has been created

      Notice: The Network card chosen must be of type Intel for Windows in the guest to automaticly find a driver.
    • If you click on System you will see IO APIC enablad, which is needed for 64 bit Windows.
      VM - Settings - System - Motherboard
    • You will also need to add a DVD drive under Storage.
  • Now install an OS in the guest.
    • Enter a Windows 2008 R2 disk in the DVD drive and start the guest.
      Install OS - Choose keyboard
    • 17 GB is recommended for Windows 2008 R2, but it actually only takes up 6.5 GB in the VHI
    • Choose a password for local administrator
      Choose psw for admin
  • Checking the guest
    • Network
      Guest Netwotk card
      The VBox Host-Only Ethernet adapter (in the host) acts like a router, where the virtual IP address 192.168.56.1 will connect to the virtual IP address 10.0.2.2.
      Seen from the guests the host will have IP Address 10.0.2.2 and 192.168.56.1. Also its WLAN or LAN card address can be used.
      Seen from the host the guest will have IP Address 10.0.2.15 – or whatever address it was given by VBox DHCP on the host.
      The Internet is reached through  10.0.2.2 for the guests.
    • When you connect to \\10.0.2.2 from the guest you must logon as a user on the host
      Logon to host
      Notice 3 IP adresses go to the same server – the host:
      3 IP's - same server
    • The above share SharedFolder has been manually set up on the host.
      VBox has a shared folder feature, but it does not work, when Windows 7 is the host, which is why you must create a share on the host manually.
    • You can reach the internet from the guest through the WLAN on the host out of the box.
      Internet from guest through WLAN
  • Notes
    • The above network has been setup with the guest VM using type NAT
      NAT
      There are following alternatives:

      • NAT – Private network for workstations. Invisible from outside unless you set up port forwarding.
      • Bridged Adapter – Creates a host-to-guest port through a physical card.
      • Internal Network – Connects VMs in a private net.
      • Host-Only Adapter – Host and VMs can communicate.
  • Links

 

The End

Advertisements

One Comment

Add yours →

  1. It seems that we can’t use ISO image to do the install. Who wants to burn DVD just to do a virtual install??

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: