Tuesday, January 13, 2015

virtualbox - Ubuntu installer failed while attempting to install in Virtual Box

I have created a virtual PC using Virtual Box. This machine has 4096 MB of RAM and a VDI virtual hard drive (dynamically allocated drive space).


I insert into the virtual disk drive the ISO image for Ubuntu 18.04, boot up the virtual PC, click "try Ubuntu", and then run the installer.


Once I get to the point where I click "install now", the installer lasts a few seconds then spits out the following message:


--------------------------------------------------


Installation Failed


The installer encountered an error while 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.


click here for screenshot


--------------------------------------------------


My question is: why would this be a disk read problem? There is no physical disk drive involved here, so it couldn't possibly be a faulty disk. How do I trouble shoot this? I'm not quite sure where to start.


After thinking it was a problem with the dynamically allocated VDI, I decided to try again and this time create a partition scheme manually (and put the boot loader on /dev/sda1 rather than /dev/sda) so that the installer wouldn't have to attempt to write to any block of the hard disk that hasn't been dynamically allocated yet. Screenshots of this scheme can be found here. The purpose of the unallocated space between the partition for root (/) and the partition for swap is so that the dynamically allocated disk file isn't any larger than necessary (I need to be able to back it up). If more space is needed, the first partition can be resized.

No comments:

Post a Comment

linux - How to SSH to ec2 instance in VPC private subnet via NAT server

I have created a VPC in aws with a public subnet and a private subnet. The private subnet does not have direct access to external network. S...