Astrophysics Research CentreQueen's University Belfast • School of Mathematics & Physics |
Setting up a Linux system in VirtualBoxThese notes tell you how to quickly install a CentOS 5 virtual machine on your Macintosh, using the free Virtualbox package. A disk image has been prepared with a basic OS installation, and access to your Mac file system, and you can then add software as needed. Initial setupCopy the disk image file over to your Mac from the /home/rsir/vbox/ area on the Linux systems - use MacFusion or plain sftp. It will have a name like CentOS_53_32bit.vdi. Create a folder on your Mac - for example in Documents - and place the .vdi file there. These instructions assume you have moved the .vdi file to ~/Documents/VirtualBox/ Note that these drive image files are quite large, and each time you run VirtualBox it's likely the image will be changed in some manner. It would be sensible to omit the folder where you store your Virtualbox disk images from Time Machine backups, otherwise Time Machine will rapidly fill your backup disk. You can still back up the drive images using SuperDuper, which should provide an adequate level of security provided you are not making constant changes to the virtual machine setup. Configure VirtualBoxLaunch the VirtualBox application, and click on the New button which is in the top left of the window. A Wizard dialog box will appear to guide you. Click Next to continue.
Running Linux, and Mac file accessThe VM is setup with only a root account, so it will be necessary to configure a regular user account. Robert or Ian can provide assistance with this, and for security the default root password must be changed too. The system is set to share your Mac IP address, so it does not need additional network configuration. Robert or Ian can also assist with installing any software which you may need on the VM, as well as show you how to update the OS. You have full read/write access to the files on your Mac using the folder sharing set up earlier. Just cd /machome and you will be in your Mac home area. This will let you operate on files without having to copy them into the 'home' area on the Linux virtual hard drive. It also allows you to delete your Mac files with a misplaced rm command, so exercise caution! |
Quick Links
|