Archive for the ‘virtual box’ Category

VirtualBox Error: “ahci-0-0″ (rc=VERR_DISK_FULL)”

January 10, 2012 3 comments

I’ve installed Windows 7 on VirtualBox (Ubuntu host) and when I start the machine I get this error:

Disk full

The error message is this:

An error has occurred during virtual machine execution! The error details are shown below. You may try to correct the error and resume the virtual machine execution.

The I/O cache encountered an error while updating data in medium "ahci-0-0" (rc=VERR_DISK_FULL). Make sure there is enough free space on the disk and that the disk is working properly. Operation can be resumed afterwards.

Severity:   Non-Fatal Error

I thought it was the VirtualBox’s vdi hard disk drive that was full, but it was much easier. Just a “df -h” and I realized that my host disk was full!

Categories: virtual box Tags: ,

Install Windows 7 on VirtualBox – Status: error 0xc0000225

November 14, 2011 80 comments

When I try to install Windows 7 on Virtual Box 4.1, I get this error:

Windows failed to start. A recent hardware or software change might be the cause. To fix this problem:


Status: 0xc0000225

Info: An unexpected error ahs occurred.

VirtualBox - Windows 7 error

Status: 0x0000225

To fix it, stop the virtual machine, go to Settings -> System and check “Enable IO APIC”

How to resize a disk in VirtualBox 4.1 (ubuntu host/windows XP guest)

October 3, 2011 7 comments

In my previous post ( I discussed about resizing a virtual hard disk in VirtualBox 3.2.

Now, in the newer version of VirtualBox we have no “Create new virtual disk” option in the virtual device manager.

To resize a disk in VirtualBox is now much more easier… although you’ll have to use the command line.

First, list all of the virtual disks installed:

$ VBoxManage list hdds
UUID:        b8f8a160-d751-4a98-af16-5b6bd7174099
Parent UUID: base
Format:      VDI
Location:    /var/VirtualBox/HardDisks/WindowsXP.vdi
State:       created
Type:        normal
Usage:       WindowsXP (UUID: 6e027563-4bea-47e3-966e-067e3b563048)

That’s my 20GB hard disk drive.To resize it to 30GB:

$ VBoxManage modifyhd /var/VirtualBox/HardDisks/WindowsXP.vdi --resize 30720

And now, choose your application to extend the old partition to the new size.

It’s very easy with a LiveCD and GParted. Just choose Resize/Move and apply the changes.

An applause for VirtualBox, because in previous versions this was a little bit frustrating.

And don’t forget to read the documentation:

How to resize a disk in VirtualBox (ubuntu host/windows XP guest)

April 28, 2011 3 comments

I have Virtual Box 3.2.12 installed on ubuntu 10.10. I have several guest OSes, and one of them is a Windows XP installed on a 8 GB virtual hard disk. This size has become too small and I want to resize it (I created dinamically but I need now more space than it’s 8GB).

This are the steps to resize it. I’ll try to make a complete guide with screenshots to be as clear as possible:

  • Create a new virtual disk (dinamically expanding storage). In my case 20GB would be ok.
  • Set your windows virtual machine to have the new disk image as it’s second hard disk (Settings -> Storage)

Adding the secondary disk

  • Get a bootable linux CD and boot the virtual machine from the CD
  • Open GParted
  • Select the first partition (the one which has data): /dev/sda1

GParted, first partition is sda1

  • Select Partition -> Copy
  • Select the second disk (/dev/sdb) that still is unformatted, and click to select the unallocated partition.
  • Select Partition -> Paste and this dialog appears. Choose Advanced to create an msdos partition table:

GParted sdb partition - create a msdos partition table

  • This seems to do nothing, but it creates the partition table to the new disk. So  repeat the copy-paste and you’ll get this dialog:

GParted - pasting the partition to the new disk

  • Resize the size slider to its maximum size and click Paste.
  • Apply the pending operations:

GParted - copying sda1 to sdb

  • When all operations are completed this dialog appears:

GParted - all pending operations sucessfully completed

  • Assign the boot flag to this new partition (/dev/sdb1): Partition -> Manage flags:

GParted - assign the boot flag to the new partition

  • Exit GParted and poweroff the VM
  • Go to Settings -> Storage again and remove the old (smaller) disk (right click on the disk)

Remove the first disk

  • Assign the big disk to the IDE Primary Master (right pane)
  • Power on the VM, a checkdisk is performed because of the new disk assignment, and finally you have the new disk on your Windows guest machine.

Virtualbox: Ubuntu 10.10 Host – No USB support

November 4, 2010 Leave a comment

Yesterday I upgraded to Ubuntu 10.10 from Ubuntu 10.4

Since then I have problems to attach a USB device to my guest Vboxes operating systems (ubuntu and win).

I finally find the solution via this postin the virtual box forums:

Just run this and reboot:

sudo usermod -aG vboxusers <your username>
Categories: ubuntu, virtual box Tags: , ,