Now that you have a virtual machine created, it needs an operating system. Just follow these simple steps:
- With your virtual machine selected from the side panel, click the “Settings” button
- Click the “storage” option
- Click the “add attachment button” and then choose CD/DVD device”
- You can then select an ISO to create a virtual drive. Alternatively, you can mount your physical drive and use a normal boot disk
- Select “System” from the side panel and make sure the boot order is set to boot from your CD drive and then click OK
- Click “Start” to boot your virtual machine from the disk
- Install your operating system as you normally would on an actual machine
Once your OS is installed, you can remove the virtual drive and run your virtual server however you like, even in headless mode. Optionally, you can save the virtual machine image and use it as a template for any future VMs you want to create based on the same pattern. We will explain more about this process in a separate post.
You now have a fully-functional test server that you can play around with and do no harm to your real server or your host computer.
- How to Setup a Test Server in VirtualBox: Part 1
- Test Your Server OS with VirtualBox
- How to Install CentOS in VirtualBox
- How to Connect to a Virtualbox VM Via SSH (Part 2)
- How to Run Virtualbox in “Headless” Mode