Tag Archives: VirtualBox

VirtualBox

VirtualBox โ€“ Install Ubuntu 13.04

To install Ubuntu 13.04 in a fresh VirtualBox image, create a VirtualBox image as described in the blog post on installing Ubuntu 11.04 in VirtualBox. Focus on the Prepare Ubuntu install in VirtualBox section.

In the latest versions of VirtualBox you can choose multiple types of virtual disks (.vdi , .vmdk , et cetera). This is most relevant if you want to share your image across multiple virtualization platforms. If you have no specific requirements go with the default.

Install Ubuntu 13.04 in VirtualBox

  • Go to the settings of the newly created VirtualBox image;
  • In the storage section add an IDE Controller pointing to the installation disk: ubuntu-13.04-desktop-i386.iso for 32 bit or ubuntu-13.04-desktop-amd64.iso for 64 bit;
  • Ensure that you have asigned the VBox image enough processing power and memory;
  • Boot the installation iso by starting the VirtualBox image;
  • Watch Ubuntu 13.04 booting;
  • Choose your language and install Ubuntu;
  • After Ubuntu prepared it’s install and checks some stuff for best results, click Continue to go on with the installation;
  • In a new VirtualBox image you can safely choose to erase all stuff on disk and install Ubuntu (it will use ext4 as a file system);
  • Select the created VBOX Harddisk to do so. Choose install now;
  • Choose the location while Ubuntu continues creating the file system in the background;
  • While Ubuntu keeps copying files choose your keyboard layout;
  • Choose your name, the computer’s name, your username and password. For additional security you choose to encrypt your home folder;
  • Restart the Virtual Machine and log in;

VirtualBox Guest additions

The screenshots in the gallery also show how to install the VirtualBox guest additions in Ubuntu 13.04. Check this post for more details to install Vbox guest additions to install the VirtualBox guest additions.

VirtualBox VERR_VMX_MSR_LOCKED_OR_DISABLED solved

VirtualBox Manager VERR_VMX_MSR_LOCKED_OR_DISABLEDWhile creating a Ubuntu 12.10 machine VirtualBox I ran into an error – VirtualBox VERR_VMX_MSR_LOCKED_OR_DISABLED – on my company issued HP ProBook. This halts the startup process of the virtual machine. You won’t be able to use it.

Here is the complete log and a screenshot:


Failed to open a session for the virtual machine Ubuntu 12.10.

VT-x features locked or unavailable in MSR. (VERR_VMX_MSR_LOCKED_OR_DISABLED).

Result Code: E_FAIL (0x80004005)
Component: Console
Interface: IConsole {db7ab4ca-2a3f-4183-9243-c1208da92392}

I remembered that there were issue were issues with HP bios from the VirtualBox FAQ using ENABLE VT-X/AMD-V:

some HP BIOSES have a glitch, When You ENABLE VT-X/AMD-V, You DISABLE it, so do try both ways.

VirtualBox Enable VT-x AMD-VSo the first solution I tried was to uncheck the box to ENABLE VT-X/AMD-V. That solved my problem. Now VirtualBox was able to start my Ubuntu machine. Check the screenshot how to disable (or enable the) VT-X/AMD-V setting.

Yep, I know this is against the advice I gave to improve VirtualBox performance. However I need it on this hardware to get my machines running…

VirtualBox improve virtual machine performance

VirtualBox improve virtual machine performanceVirtual Machines are a great way to test stuff or use valuable tools in a separate environment. Think of test driving an OS, like Ubuntu 12.04 or Windows 8. Other examples include using pre-build appliances to use Oracle SOA Suite and BPM or WebLogic Server and Java tools.

Improve VirtualBox appliance performance

These Virtual Machines can be quite demanding for resources on your PC or laptop. Fortunately there are ways to speed up VirtualBox appliances. Besides increasing the allocated CPU power and RAM there are a few less expected things you can do:

  • Create fixed size disks – A preallocated disk will have less fragmentation. Adding of files to the virtual disk will be faster (spaces is already reserved). The downside is that a fixed-size disk uses more space on your hard disk.
  • Exclude the Virtual Machine directory from the virus scanner – Scanning there from the host isn’t very useful either. So add this directory to the exclusion list.
  • Put the VirtualBox files on non-system disk – Put the VirtualBox files on a non-system disk. The virtual disk and your hosts’s OS won’t be competing to read from or write to these same disk.
  • Make shure the Intel VT-x and AMD-V setting is ON – These are processor extensions that improve virtualization performance.

VirtualBox – Install Ubuntu 12.04

VirtualBox Install Ubuntu 12.04To install Ubuntu 12.04 in a VirtualBox image, create a new VirtualBox image as described in the blog post on installing Ubuntu 11.04 in VirtualBox. In later versions of VirtualBox you can choose mutiple types of virtual disks (.vdi , .vmdk , et cetera). This is only relevant if you want to share you image across multiple virtualisation platforms.

Check the instructions to install Ubuntu 13.04 in VirtualBox.

Install Ubuntu 12.04

  • Go to the settings of the newly created VirtualBox image;
  • In the storage section add an IDE Controller pointing to the installation disk: ubuntu-12.04-desktop-amd64.iso;
  • Ensure that you have asigned the VBox image enough processing power and memory;
  • Boot the installation iso by starting the VirtualBox image;
  • Watch Ubuntu 12.04 booting;
  • Choose your language and install Ubuntu;
  • After Ubuntu prepared it’s install and checks some stuff for best results, click Continue to go on with the installation;
  • In a new VirtualBox image you can safely choose to erase all stuff on disk and install Ubuntu (it will use ext4 as a file system);
  • Select the created VBOX Harddisk to do so. Choose install now;
  • Choose the location while Ubuntu continues creating the file system in the background;
  • While Ubuntu keeps copying files choose your keyboard layout;
  • Choose your name, the computer’s name, your username and password. For additional security you can choose to encrypt your home folder;
  • Restart the Virtual Machine and log in;

VirtualBox Guest additions

Check this post on Vbox guest additions to install the VirtualBox guest additions.

.

How to VirtualBox overview

VirtualBoxIn this post we’ll share some VirtualBox resources that will help you to use Oracle virtualization product VirtualBox.

Installing an Operating System in VirtualBox

There are several great blog post on how to install an Operating System (OS) in VirtualBox. The install Ubuntu 11.04 in VirtualBox not only offers a good step by step guide to install Ubuntu (also check the more recent Ubuntu 12.04 ) , the steps also provide great insights when you want to install other operating systems. It is fairly easy to get from there to installing Windows8 in VirtualBox.

VirtualBox appliances and extending them

There are several great VirtualBox Appliances for Developers. Oracle offers for example both an appliance to test drive SOA Suite 11g and BPM 11g and a very recent appliance running WebLogic Server 12c , including a bunch of Java tools (including NetBeans, OEPE, Subversion, Hudson, Maven).

These VirtualBox Appliances can easily be extended for example with Oracle OSB as described in installing OSB on SOA Suite 11g appliance and extend SOA Suite appliance with Oracle Service Bus. The latter showing you how to extend the SOA domain and the first how to install OSB in a seperate domain.

Dealing with real world problems using VirtualBox

There a several examples on the web. I’d like to share three of them. The first shows you how to create a duplicate disk for use in an additional virtual machine. The second shows you how to update a Vagrant box.

On the side: Vagrant uses Oracleโ€™s VirtualBox to build configurable, lightweight, and portable virtual machines dynamically. It uses Chef or Puppet to provision them. Vagrant is used so other developers can get up and running in just a couple commands.

The third shows you how we solved VBOX_E_FILE_ERROR (0x80BB0004) :
VBoxManage.exe: error: Code VBOX_E_FILE_ERROR (0x80BB0004) โ€“ File not accessible or erroneous file contents (extended info not available)

Or how to solve VirtualBox VERR_VMX_MSR_LOCKED_OR_DISABLED (0x80004005)
Failed to open a session for the virtual machine Ubuntu 12.10.
VT-x features locked or unavailable in MSR. (VERR_VMX_MSR_LOCKED_OR_DISABLED).

Since Virtual Machines can be quite demanding for resources on your PC or laptop: Here are some hints to increase appliance performance in VirtualBox.

Have Fun!

VirtualBox Appliance for WLS development with Eclipse, Maven, and Hudson

With the Oracle Technet Virtual Developer Day coming up a great VirtualBox appliance came available. The developer day focusses on developing Java EE6 applications and Oracle WebLogic Suite 12c.

WebLogic Server 12.1.1 VirtualBox Appliance

The virtual machine contains:

  • Oracle Linux 5, JDK 1.6 +
  • Oracle WebLogic Server 12.1.1
  • Oracle Coherence 3.7
  • Oracle TopLink 12.1.1
  • Hudson 2.2
  • Subversion 1.4.2
  • Apache Maven 3.0.1
  • NetBeans IDE 7.1 RC2
  • Oracle Enterprise Pack for Eclipse 12.1.1 / Eclipse 3.7
  • Easter Egg: Introductory Labs for Oracle Coherence 3.7

All details on download and importing the appliance can be found on the VirtualBox instructions page. No need to say that the appliance has been released for development and testing purposes.

Labs

The image contains four Labs:

  • Total Oracle WebLogic Server Development with Eclipse, Maven, and Hudson
  • Hands on with an end-to-end Java EE6 Application
  • A Step-By-Step Guide to Oracle Coherence
  • Running the Coherence Examples Project in Eclipse

These can be found in the /home/oracle/labs/ directory. Web links to these Labs can be found here.

Installing Windows8 in VirtualBox

Wanted to do a quick blog on installing Windows8 in VirtualBox. However work and stuff came in the way and of course now there are multiple sites describing it now like this quite short on Oracle blogs, Life Hacker Guide and How-To Geek. Since especially the first ones lack some screenshots, I’ll share mine:

More info on installing an OS like Ubuntu 11.04 on VirtualBox can give you some background on the general process of creating a new VirtualBox image.

Virtual PC (0x80004005) doesn’t tolerate VMWare or VirtualBox

Since I had to test some webpages with IE6 (please don’t ask), I wanted to use Windows XP Mode on my Windows 7 laptop (actually run it in VMWare as described here). Microsoft provides virtual machines (vhd files) to run in Microsoft Virtual PC.

KB958559 fails with 0x80004005

Rolling back the update

Windows Virtual PC for Windows 7 is released as an update for Windows 7, and has the Knowledge Base Article ID of KB958559. So I tried to install it. That went actually pretty well until I had to reboot my laptop. At about 98% of the update process during the reboot it gave an error and rolled back the update. The log showed:

Installation failure: Windows failed to install the following update with error 0x80004005: Update for Windows KB958559

Digging into the support forums and blog posts on the subject, the most common working solution I found to the problem was to uninstall VMWare and/or VirtualBox. After the uninstall you can install Virtual PC without the error and after that reinstall VMWare and/or VirtualBox.

VirtualBox Solved VBOX_E_FILE_ERROR 0x80BB0004

Recently I wanted to share a VirtualBox Appliance with a colleague. So I tried to export the created appliance. Unfortunate this failed with a:

VBoxManage.exe: error: Code VBOX_E_FILE_ERROR (0x80BB0004) – File not accessible or erroneous file contents (extended info not available)

So I thought why not just copy it… Oh wait, first compact it to save some space and time using VBoxManage modifyvdi some.vdi compact:

>VBoxManage modifyvdi Windows7.vdi compact
0%...10%...20%...30%...40%...50%...60%...70%...80%...
Progress state: VBOX_E_FILE_ERROR
VBoxManage.exe: error: Code VBOX_E_FILE_ERROR (0x80BB0004) - File not accessible or erroneous file contents (extended info not available)

When I tried to copy or zip the file there were errors accessing it. Somehow the VirtualBox Appliance was still running fine. The files that make up the appliance weren’t locked.

Use CHKDSK

My laptop (the host of the appliance) is is running Windows7 and I decide to run chkdsk and found:

CHKDSK controleert de bestandsgegevens (stap 4 van 5)...
Leesfout met status 0xc0000185 op offset 0x17410c9000 voor 0x10000 bytes.
Leesfout met status 0xc0000185 op offset 0x17410d6000 voor 0x1000 bytes.
Er zijn beschadigde clusters in bestand 37907 met naam \Users\ppvdbeek\VIRTUA~2\Windows7\Windows7.vdi vervangen.

This is Dutch stating that there were bad sectors in the vdi file that had to be corrected. After that I could run the appliance, compact the disk and export the appliance successful.

On Linux you could use fsck (for “file system check”) in a similar case.

Installing JRockit on Ubuntu

This post will show you how to install JRockit on Ubuntu 11.04. In later posts this will be used to run both WebLogic Server and Oracle Service Bus (OSB).

First download the installer from the JRockit download page. Make sure that the .bin file is executable. You can use chmod +x filename to make the file executable.

The installation guide for JRockit can be obtained from the JRockit Documentation page.

  • Start the installer: ./jrockit-jdk1.6.0_24-R28.1.3-4.0.1-linux-x64.bin from the directory you download it or copied it to. Extracting can take some time.
  • Click Next on the Welcome screen.
  • Choose the product installation directory eg /oracle/jrockit-jdk1.6.0_24 and click Next
  • Check optional components if you need them and click Next
  • Watch the progress bar ๐Ÿ˜‰
  • The installation is complete so press Done.

The screenshots of the installation process are in this gallery: