In the process of experimenting with CentOS I decided to virtualise the OS in order to make rollback and documentation of setup/administration processes easier.
Here is a brief outline of the steps required to install CentOS into a Parallels Desktop Virtual Machine:
- Launch Parallels Desktop
- Add a New Virtual Machine
- Install Windows or another OS from DVD or image file
- Use a browser to go to the list of CentOS mirrors
- Select the closest mirror to you and click HTTP
- Navigate to ../pub/centos/6.3/isos/x86_64/
- Download CentOS-6.3-x86_64-netinstall.iso
- Switch back to Parallels and Install from: Choose an image file…
- Select the saved copy of CentOS-6.3-x86_64-netinstall.iso
- Select More Linux > CentOS Linux
- Rename the VM to something sensible (eg “CentOS 6.3”)
- Don’t be tempted to “Customise settings before installation” at this point in order to, for example, give the VM the same number of CPUs and Memory as your production machines have
- If you do then later on you will probably be given a warning about not having enough RAM for a graphical configuration… and will be forced to continue with a more complicated text-based configuration
- Continue and the CentOS installer takes over from here
- Skip media tests
- English language
- US keyboard
- Installation Method: URL
- Accept default TCP/IP settings
- I always get a Network Error at this point on my first attempt
- Retry and it gets through the second time
- Type the full URL from your browser’s address bar, for example: http://mirror.internode.on.net/pub/centos/6.3/isos/x86_64/
- now replace isos with just os (the files you need at this stage are in a different directory)
- The installer retrieves the install.img
- The CentOS 6 configuration GUI should now kick in
- Basic Storage Devices
- Yes, discard any data
- Just Configure Network to check and make sure that eth0 will Connect Automatically — it should be the default and always has been as far as I can tell
- Select your nearest city for timezone purposes
- Enter a root password
- Use All Space
- Select the Basic Server set of software (more info) and do something else as it downloads and installs hundreds of packages
- Shut Down the VM
- Make changes to your VM’s configuration (using the cog in the bottom-right corner) to give it the same amount of Memory and number of CPUs as your production machines have.
- All done!
9 thoughts on “Installing CentOS in a Virtual Machine”
Thanks so much, this worked perfectly today with CentOS 6.3! I actually didn’t get the error you got in step F.
Glad it worked for you. 🙂
Over a year after your post, still works *to the letter*. Used your directions to install Centos 6.5 64 bit on Parallels 9. Chose Database Server, everything worked without a glitch, or a distraction. Thanks for sharing: the process is not in any way hyper-complex, but it has the usual default booby-traps typical of Linux, and your directions were complete enough to overcome them. I didn’t get network errors either. Cheers!
Thanks for sharing concise steps. Worked flawlessly for Centos 6.5 on parallels 9. No errors to report. Thank you!
Nice to know it still works. Thanks.
Have you ever created another partition with the CentOS install you created on Parallels?
Excellent process outline. Still holds up after almost 2 years. Installed CentOS 6.5 64-bit under Parallels 9. No problems, no errors. Thank you!
I’m not sure I understand the question. Do you mean to create another partition _within_ the CentOS install (whilst it it running) or clone the virtual partition to a physical one or something else entirely?