16

I'm trying to set up Ubuntu 20.04 on Oracle VirtualBox 6.1.6. During the installation, I got the following error message:

The installer encountered an error copying files to the hard disk:

[Errno 5] Input/output error

This is often due to a faulty CD/DVD disk or drive, or a faulty hard disk.  
It may help to clean the CD/DVD, to burn the CD/DVD at a lower speed,   
to clean the CD/DVD drive lens (cleaning kits are often available from  
electronics suppliers), to check whether the hard disk is old and in   
need of replacement, or to move the system to a cooler environment.

I downloaded the file from the official Ubuntu website and multiple times, but none of the files works. I also verified the iso using echo "e5b72e9cfe20988991c9cd87bde43c0b691e3b67b01f76d23f8150615883ce11 *ubuntu-20.04-desktop-amd64.iso" | shasum -a 256 --check, but it doesn't do anything.

karel
  • 122,292
  • 133
  • 301
  • 332
Simon
  • 163

5 Answers5

25

I had this issue as well after I had enabed hyper-v on windows 10.

To fix it I, made sure I disabled hyper-v by doing the following.

  1. Open 'Turn Windows features on or off' (search for that in the start menu)
  2. Untick hyper-v, Windows hypervisior platform and virtual machine platform.
  3. Start the command prompt as an administrator. (type cmd in the start menu, right click 'command prompt' and select 'run as administrator')
  4. Run the following command bcdedit /set hypervisorlaunchtype off

After a restart it seemed to install and work.

Credit to u/SquareVehicle on r/virtualbox who suggested the bcdedit command

3

I faced the same issue. I used VirtualBox 6.1.14 and tried to install Ubuntu 20.04. The issue disappeared when I updated VirtualBox to the 6.1.16 version.

Viktor
  • 131
0

The second line of your code reminds me of the follwing:

Ubuntu 20.04 install media (.iso) normally checks itself at boot, unless you type a command to abort this health-check behaviour.

If what you typed came up at this point (I never experienced it myself), my guess is that your .iso might be corrupted. You can hash-check it yourself against the web-stated unique number to see if it is healthy.

Good practice is to download .iso's with bittorrent, because that way the integrity gets automatically checked when ready; also little easier.

Martin
  • 1
0

This might be unusual, however my problem was fixed by enabling Hyper-V. This was after hours of looking for solutions regarding Ubuntu 20 and Virtualbox 6.1. Tweaked many settings and finally decided to go against the most common advice and turn on Hyper-V (Win10).

-1

You can use VirtualBox 5.2 instead.

I installed VirtualBox 5.2 and then I was able to install Ubuntu 20.04 on my mac. I had the same issue with VirtualBox 6.1.

Eliah Kagan
  • 119,640
PeterM
  • 1