r/virtualbox • u/normandantzig • Apr 24 '20
Help How do I fix error when installing Ubuntu on virtualbox?
I am running Virtualbox 6.16 on windows 10. I have been trying to install Ubuntu for a couple of weeks from several isos. I can boot into the install program, but it always fails at some point. I get an error which doesn't make sense.
The error Ubuntu gave was:
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 ...
Specifics:
Win10(2004, build 19041.208)
Ubuntu Versions (20.04, 19.10, 18.04)
The isos works on live machines.
1
u/ErnestoGrimes Apr 24 '20
Are you sure your virtual disk is large enough, store you storing the images on an external disk or network drive?
1
u/normandantzig Apr 24 '20
I have 25 Gb for the virtual disk.
1
u/ErnestoGrimes Apr 24 '20
25gb is the minimum suggested for 20.04 you may want to try something larger. When I get a chance ill try it myself with 25 gb and see if it works.
Also check how much free space you have on the drive where the vm is stored, just because it let you create a 25gb disk does not mean there is enough space to hold a full disk, the file will grow as the space is used.
1
u/normandantzig Apr 24 '20 edited Apr 24 '20
150 gb free. Will try bigger. eddit: No luck with larger drive. Do the hdd/ cd controllers need to be changed? I am using defaults.
1
u/Hiiek May 10 '20 edited May 10 '20
I resolved this error by setting the drive to fixed rather than dynamically allocated. It took a few minutes for VirtualBox to complete the process of creating the fixed drive, then the installation was able to proceed without error.
EDIT*
It may have also been disabling the installation of 3rd party software that fixed this.
1
1
u/wint_rmute Jul 04 '20 edited Jul 04 '20
I too was running into this exact issue -- super confusing, as the Ubuntu ISOs verified fine.
Curiously, I don't even have Hyper-V installed -- but do have the Windows Features enabled for the hypervisor platform and virtual machines..
Turning them off fixed the problem.
1
u/normandantzig Jul 04 '20
Curiously, I don't even have Hyper-V installed -- but do have the Windows Features enabled for the hypervisor platform and virtual machines..
Thanks for sharing. I have completely given up on virtualbox / win10 / WSL2 combo. I am waiting for WSL GPU Win 10 to get stable and more features.
I do hope at somepoint virtualbox is able to work with Hyper-V.1
u/wint_rmute Jul 05 '20
It is disappointing -- especially since on Windows 10 Home, one can't actually run Hyper-V fully, so there's no other way to really run virtual machines
1
u/normandantzig Jul 05 '20
I keep checking on Virtual Box's monthly release. "Maybe it will work this time... Damn. Still no" I will say, it needs to fail more gracefully. It needs to stright up break instead of the weird partial working BS it does.
1
u/wint_rmute Jul 04 '20
But then even after installing, the VM ran unreliably -- weird checksum failures when downloading packages
1
u/tcallred Jun 22 '20
Hello good people. I have been having this exact same problem and it won't help if I increase the disk size or set it to fixed size. Also, my machine isn't running hyper-v. I've been having a lot of strange issues with vbox since updating. Is there maybe a bug in the current version?
1
u/Proud_Water Jun 28 '20
Perhaps, this would help:
https://petri.com/how-to-disable-hyper-v-completely-in-windows-10
1
u/DarkoA7 Jul 24 '20 edited Jul 28 '20
I think this is most likely a bug in VirtualBox 6, in my case Hyper-V is also enabled and runs Ubuntu 20.04 just fine, but VirtualBox does not.
Edit #1: it is also happening under Hyper-V, but the bug manifests differently. While installations goes fine, later software updater crashes and reports strange error to logout (later I cannot login back, unless I hard reset machine). So, it could be related to all three or just Ubuntu.
Edit #2: It seems that Hyper-V Ubuntu 20.04 version has issues only when isntalled via Quick tool, e.g. when I install it manually in gen2 container from official .iso file, then it works pretty stable.
1
u/zukeen Nov 17 '24
I have fixed this by checking "preallocate disk space" option in VM disk settings when creating a new VM, rather than letting virtualbox dynamically size it as needed.
3
u/SquareVehicle Apr 26 '20
FWIW I'm getting the exact same error. Using VirtualBox 6.1.6 and Ubuntu 20.04. Verified the checksum is correct for the ISO.
I notice during the initial install disk check it does say "errors found in 1 files", which doesn't make sense since the SHA256 checksum is correct and I'm reading the .iso directly from the harddrive since it's a virtual machine. Tried downloading the ISO several different times with the same result.
My theory is maybe there's a bug in VirtualBox? I should see if I can find an older version to install.