Creating a Virtual Box Virtual Machine

Tested On

Steps

  1. Download an iSO. Following are a few iSOs.

NOTE: the rest of the tutorial will follow how to install

CentOS 7 Installation

This section is identical to CentOS 6, CentOS 7, CentOS 8 installation.

  1. Download an iSO and save it to ~/Docuements/VirtualBox/iSOs/

  2. Open Virtual Box and select new.

  3. Select Name… then hit next:

  4. Select amount of ram you want to on your machine. I will give mine about 8 gb of ram. Then hit next:

  5. Select Create a virtual hard disk now then click create

  6. Select VDI VirtualBox Disk Image. Then click Expert Mode

  7. After clicking expert mode a new window will appear. Set the size to atleast 50 gb. Then click Create.

  8. Select Dynamically Allocated then click next

  9. Give set amount of storage. I set my VMs 50 gb then click create

  10. You should now have a new machine created:

  11. Start the machine

  12. Select a startup disk. This is asking for the ISO you downloaded earlier. click on the folder icon to choose

  13. Select add ISO and choose the ISO file you downloaded earlier. It should be at ~/Docuements/VirtualBox/iSOs/<ISO FILE> after choosing select start

  14. Choose install CentOS

  15. When VirtualBox is capturing your mouse and keyboard presses, you can hit the right control keyboard button to stop keyboard and mouse capture.

  16. Choose a language:

  17. Choose an installation destination:

  18. Go to network and hostname to set up an internet connection on the Virtual Machine

  19. Turn on the ethernet connection. This will allow the VM to use the Your local computer’s internet connection.

  20. Begin install

  21. Set Root Password: as a demo I made the admin password: TrialSystems

  22. Set Username and password of a user account and give yourself admin privileges

  23. Once done loading, click on finish configuration.

  24. It will load a bit

  25. After the load, click on Reboot

  26. If the installed CentOS does not run, then open the machine’s settings and eject the iso.

  27. First boot will ask you to accept license.

  28. Accept EULA:

  29. First boot Finish Configuration:

  30. After a short load you should be greeted with the login screen:

  31. Make sure you can login. Congradulations! Now Add guest additions which pretty much improves the Virtual Machine’s performance

Ubuntu Desktop 20.04 Installation

This section is identical to other Ubuntu installations.

  1. Navigate to the Ubuntu website and locate the iso you want to downlaod. Ubuntu downloads

  2. Download an iSO and save it to ~/Docuements/VirtualBox/iSOs/

  3. Open Virtual Box and select new.

  4. Select Name… then hit next:

  5. Select amount of ram you want to on your machine. I will give mine about 8 gb of ram. Then hit next:

  6. Select Create a virtual hard disk now then click create

  7. Select VDI VirtualBox Disk Image. Then click Expert Mode

  8. After clicking expert mode a new window will appear.

    Give set amount of storage. I set my VMs 50 gb

    Select Dynamically Allocated

    then click create

  9. You should now have a new machine created:

  10. Start the machine

  11. Select a startup disk. This is asking for the ISO you downloaded earlier. click on the folder icon to choose

  12. Select add ISO and choose the ISO file you downloaded earlier. It should be at ~/Docuements/VirtualBox/iSOs/<ISO FILE> after choosing select start

  13. Hit start:

  14. Wait for first boot loading.

  15. Choose install CentOS

  16. Choose a keyboard layout:

  17. Choose software updates and other software to install.

    Hit continue

    Note: If you check install third-party software. You may get an the following error later during the installation. So, leave it unchecked.

    errno-5-input-output-error-when-trying-to-install

  18. Choose install type.

    Click Install now

  19. Click continue to write changes

  20. Choose timezone

  21. Create user

  22. Wait for the install.


TODO: THIS SECTION IS NOT COMPLETE

  1. It will load a bit

  2. After the load, click on Reboot

  3. If the installed CentOS does not run, then open the machine’s settings and eject the iso.

  4. First boot will ask you to accept license.

  5. Accept EULA:

  6. First boot Finish Configuration:

  7. After a short load you should be greeted with the login screen:

  8. Make sure you can login. Congradulations! Now Add guest additions which pretty much improves the Virtual Machine’s performance

Handling: Error 5

https://askubuntu.com/questions/65830/errno-5-input-output-error-when-trying-to-install

https://forums.virtualbox.org/viewtopic.php?f=6&t=98259

VIEW DISABLE HYPER V Section

Journal