{"id":8645,"date":"2021-01-28T14:38:45","date_gmt":"2021-01-28T19:38:45","guid":{"rendered":"https:\/\/carleton.ca\/scs\/?page_id=8645"},"modified":"2026-06-17T18:10:59","modified_gmt":"2026-06-17T22:10:59","slug":"virtual-machine-step-by-step-guide","status":"publish","type":"page","link":"https:\/\/carleton.ca\/scs\/tech-support\/virtual-machines\/virtual-machine-technical-support\/virtual-machine-step-by-step-guide\/","title":{"rendered":"Virtual Machine Step-by-Step Guide"},"content":{"rendered":"\n<section class=\"w-screen px-6 cu-section cu-section--white ml-offset-center md:px-8 lg:px-14\">\n    <div class=\"space-y-6 cu-max-w-child-5xl  md:space-y-10 cu-prose-first-last\">\n\n            <div class=\"cu-textmedia flex flex-col lg:flex-row mx-auto gap-6 md:gap-10 my-6 md:my-12 first:mt-0 max-w-5xl\">\n        <div class=\"justify-start cu-textmedia-content cu-prose-first-last\" style=\"flex: 0 0 100%;\">\n            <header class=\"font-light prose-xl cu-pageheader md:prose-2xl cu-component-updated cu-prose-first-last\">\n                                    <h1 class=\"cu-prose-first-last font-semibold !mt-2 mb-4 md:mb-6 relative after:absolute after:h-px after:bottom-0 after:bg-cu-red after:left-px text-3xl md:text-4xl lg:text-5xl lg:leading-[3.5rem] pb-5 after:w-10 text-cu-black-700 not-prose\">\n                        Virtual Machine Step-by-Step Guide\n                    <\/h1>\n                \n                                \n                            <\/header>\n\n                    <\/div>\n\n            <\/div>\n\n    <\/div>\n<\/section>\n\n\n\n<figure class=\"wp-block-image alignright\"><img loading=\"lazy\" decoding=\"async\" width=\"150\" height=\"150\" src=\"http:\/\/carleton.ca\/scs\/wp-content\/uploads\/sites\/260\/virtualbox150.png\" alt=\"virtualbox150\" class=\"wp-image-319\"\/><\/figure>\n\n\n\n<p>This <strong>step-by-step guide<\/strong> will show you how to set up a virtualization environment (called a <em>hypervisor<\/em>) on your computer that will allow you to run <strong>Virtual Machines<\/strong>. Most of our guides and technical support deals primarily with the <strong>VirtualBox<\/strong> hypervisor, which is a <em>free, multi-platform, open-source<\/em> tool. Other hypervisors may be used to run our Virtual Machines, such as <strong>VMware<\/strong>, which is available freely to SCS Computer Science Students and is supported with some documentation. Other hypervisors include <strong>KVM, Hyper-V, Parallels, etc.<\/strong>, but we do not provide technical support for those.<\/p>\n\n\n\n\n<div class=\"w-full max-w-xl mx-auto overflow-hidden bg-white rounded-lg shadow-lg cu-stackedlist cu-component not-contained not-prose\">\n    <h2 class=\"px-6 py-4 text-base font-semibold border-b rounded-t-lg md:text-xl bg-gray-50 text-cu-black-800\">\n        Table of Contents\n    <\/h2>\n    <div class=\"grid cu-scrollto cu-stackedlist--toc cu-stackedlist--1 md:grid-cols-1\">\n            <div class=\"space-y-1\">\n                    \n            <div class=\"pl-4 text-cu-red-700\">\n                <div class=\"flex gap-2 pb-3 text-base md:text-lg\">\n                    <span class=\"font-light text-cu-black-700\">\n                        1.\n                    <\/span>\n\n                    <a href=\"#prepare-computer\" class=\"font-medium hover:underline\">\n                        Step 1: Prepare your computer for Virtualization\n                    <\/a>\n                <\/div>\n\n                            <\/div>\n                    \n            <div class=\"pl-4 text-cu-red-700\">\n                <div class=\"flex gap-2 pb-3 text-base md:text-lg\">\n                    <span class=\"font-light text-cu-black-700\">\n                        2.\n                    <\/span>\n\n                    <a href=\"#install-hypervisor\" class=\"font-medium hover:underline\">\n                        Step 2: Install Hypervisor (Virtualization Tool)\n                    <\/a>\n                <\/div>\n\n                            <\/div>\n                    \n            <div class=\"pl-4 text-cu-red-700\">\n                <div class=\"flex gap-2 pb-3 text-base md:text-lg\">\n                    <span class=\"font-light text-cu-black-700\">\n                        3.\n                    <\/span>\n\n                    <a href=\"#import-virtualmachine\" class=\"font-medium hover:underline\">\n                        Step 3: Import a Virtual Machine\n                    <\/a>\n                <\/div>\n\n                            <\/div>\n                    \n            <div class=\"pl-4 text-cu-red-700\">\n                <div class=\"flex gap-2 pb-3 text-base md:text-lg\">\n                    <span class=\"font-light text-cu-black-700\">\n                        4.\n                    <\/span>\n\n                    <a href=\"#start-virtualmachine\" class=\"font-medium hover:underline\">\n                        Step 4: Start the Virtual Machine\n                    <\/a>\n                <\/div>\n\n                            <\/div>\n                    \n            <div class=\"pl-4 text-cu-red-700\">\n                <div class=\"flex gap-2 pb-3 text-base md:text-lg\">\n                    <span class=\"font-light text-cu-black-700\">\n                        5.\n                    <\/span>\n\n                    <a href=\"#using-virtualmachine\" class=\"font-medium hover:underline\">\n                        Step 5: Using the Virtual Machine\n                    <\/a>\n                <\/div>\n\n                            <\/div>\n                    \n            <div class=\"pl-4 text-cu-red-700\">\n                <div class=\"flex gap-2 pb-3 text-base md:text-lg\">\n                    <span class=\"font-light text-cu-black-700\">\n                        6.\n                    <\/span>\n\n                    <a href=\"#shutdown-virtualmachine\" class=\"font-medium hover:underline\">\n                        Step 6: Shut down the Virtual Machine\n                    <\/a>\n                <\/div>\n\n                            <\/div>\n            <\/div>\n\n    <\/div>\n<\/div>\n\n\n\n<p><strong>This guide is not intended<\/strong> to provide detailed steps for every item on every operating system. It is meant as a general guide, and you will have to <strong>google<\/strong> to find the procedure for your particular operating system and computer model.<\/p>\n\n\n\n<section class=\"w-screen px-6 cu-section cu-section--white ml-offset-center md:px-8 lg:px-14\">\n    <div class=\"space-y-6 cu-max-w-child-5xl  md:space-y-10 cu-prose-first-last\">\n\n        \n    \n    <dl class=\"cu-description cu-component-updated\">\n        \n    <div class=\"grid pt-4 pb-3 border-b accordion border-cu-black-100 md:pt-6 md:pb-5 first:border-t\">\n        <dt class=\"font-semibold not-prose\">\n            <button class=\"flex items-center justify-between w-full text-left accordion__button\" aria-expanded=\"false\" aria-controls=\"accordion-virtualization-terminology\">\n                <span class=\"flex-1 ml-auto text-left break-words whitespace-normal cu-icon\">\n                    <a href=\"https:\/\/carleton.ca\/scs\/tech-support\/virtual-machines\/virtual-machine-technical-support\/virtual-machine-step-by-step-guide\/#slideme-virtualization-terminology\">Virtualization Terminology<\/a>\n                <\/span>\n                <svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" fill=\"none\" viewbox=\"0 0 24 24\" stroke-width=\"1.5\" stroke=\"currentColor\" aria-hidden=\"true\" data-slot=\"icon\" class=\"w-5 h-5 ml-auto transition-transform rotate-0 accordion__icon text-cu-black-500\">\n                    <path stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M8.25 4.5l7.5 7.5-7.5 7.5\"><\/path>\n                <\/svg>\n            <\/button>\n        <\/dt>\n        <dd class=\"p-0 mt-0 cu-prose cu-prose-first-last accordion__content md:p-0 md:mt-0\" hidden=\"\" id=\"accordion-virtualization-terminology\">\n            \n\n<ul class=\"wp-block-list\">\n<li><strong>virtualization<\/strong>&nbsp;<em>\u2013 the underlying technology that allows a virtual operating system to be run as an application on your computer\u2019s operating system<\/em><\/li>\n\n\n\n<li><strong>hypervisor<\/strong>&nbsp;<em>\u2013 the virtualization application (such as&nbsp;<strong>VirtualBox<\/strong>&nbsp;or&nbsp;<strong>VMware<\/strong>) running on your&nbsp;<strong>host<\/strong>&nbsp;computer that allows it to run a&nbsp;<strong>guest<\/strong>&nbsp;virtual operating system<\/em><\/li>\n\n\n\n<li><strong>host<\/strong>&nbsp;<em>\u2013 the computer on which you are running the&nbsp;<strong>hypervisor<\/strong>&nbsp;application<\/em><\/li>\n\n\n\n<li><strong>guest<\/strong>&nbsp;<em>\u2013 a virtual operating system running within the&nbsp;<strong>hypervisor<\/strong>&nbsp;on your&nbsp;<strong>host<\/strong>&nbsp;computer. The&nbsp;<strong>virtual operating system<\/strong>&nbsp;term is synonymous with other terms such as&nbsp;<strong>Virtual Machine<\/strong>,&nbsp;<strong>VM<\/strong>&nbsp;and&nbsp;<strong>instance<\/strong><\/em><\/li>\n<\/ul>\n\n\n        <\/dd>\n    <\/div>\n\n\n    <\/dl>\n\n\n    <\/div>\n<\/section>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"prepare-computer\">Step 1: Prepare your computer for Virtualization<\/h2>\n\n\n\n<p>Before getting started with any <strong>hypervisor<\/strong>, there are a few things you will want to check on your <strong>host<\/strong> computer. Checking these before attempting to install and run your virtual machine reduces the chance that something will go wrong.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Enable Processor Virtualization:<\/strong> Ensure Virtualization is enabled on your computer. See the <a href=\"https:\/\/carleton.ca\/scs\/2019\/virtualbox-virtualization-error-intel-vt-d-vt-x-or-amd-v\/\">Virtualization Error (VT-d\/VT-x or AMD-V)<\/a> for troubleshooting support<\/li>\n\n\n\n<li><strong>Review File Sync Services<\/strong> for tools like <em>OneDrive, Nextcloud, DropBox Sync, iCloud, etc<\/em>. If you are using a data synchronization service, make sure it <strong>DOES NOT<\/strong> (or at least not frequently) synchronize the folder in which your <strong>hypervisor<\/strong> imports and installs the Virtual Machines. File sync services can cause a dramatic fall-off in performance for your entire system as these services try to synchronize these massive files that are getting updated constantly while you are using the Virtual Machines.<\/li>\n\n\n\n<li><strong>Sufficient Disk Space: <\/strong> Virtual Machines require a significant amount of Disk space (10 GB or more each is typical). Ensure you have sufficient space on your computer<\/li>\n\n\n\n<li><strong>Admin Privileges:<\/strong> Installing a <strong>hypervisor<\/strong> on a host in most cases requires admin privileges.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"install-hypervisor\">Step 2: Install Hypervisor (Virtualization Tool)<\/h2>\n\n\n\n<p>Installing a <strong>hypervisor<\/strong> on your <strong>host<\/strong> is usually quite simple. In most cases, the install program will ask only a couple of questions, such as where to install the <strong>hypervisor<\/strong> software.<\/p>\n\n\n\n<p><span style=\"color: red;\"><strong>WARNING:<\/strong><\/span> We only rigorously test our new Virtual Machines on up-to-date versions of <strong><em>VirtualBox<\/em><\/strong>. We encourage everyone to use that hypervisor if they can.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>VirtualBox Installation Instructions: <a title=\"Install VirtualBox\" href=\"https:\/\/carleton.ca\/scs\/2021\/install-virtualbox\/\">text<\/a> | <a class=\"ccms__fancybox\" title=\"Setting up VirtualBox\" href=\"https:\/\/www.youtube.com\/watch?v=cWcMQTa1yRo\" data-caption=\"Setting up VirtualBox\">video<\/a><\/strong><\/li>\n<\/ul>\n\n\n\n<p><span style=\"color: red;\"><strong>IMPORTANT:<\/strong><\/span> We encourage that you update your <strong>hypervisor<\/strong> <em>each term<\/em> if you are using new Virtual Machines, as they are often built using the most up-to-date <strong>hypervisor<\/strong> (typically <em>VirtualBox<\/em> for most SCS course Virtual Machines)<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"import-virtualmachine\">Step 3: Import a Virtual Machine<\/h2>\n\n\n\n<p>The first step is to download the Virtual Machine for your course from our <a title=\"Course Virtual Machines\" href=\"https:\/\/carleton.ca\/scs\/technical-support\/virtual-machines\/\">Course Virtual Machines<\/a> page. This will download a <strong>.ova<\/strong> file.<br>\nThe <strong>.ova<\/strong> file is actually a compressed (zipped) tarball of a Virtual Machine exported from <em>VirtualBox<\/em><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>VirtualBox VM Import Instructions: <a title=\"Import Virtual Machine into VirtualBox\" href=\"https:\/\/carleton.ca\/scs\/2021\/import-virtual-machine-into-virtualbox\/\">text<\/a> | <a class=\"ccms__fancybox\" title=\"Import Virtual Machine into VirtualBox\" href=\"https:\/\/youtu.be\/cWcMQTa1yRo?t=101\" data-caption=\"Importing a Virtual Machine\">video<\/a><\/strong><\/li>\n<\/ul>\n\n\n\n<p>Once the Virtual Machine has been imported, it will normally show up in the <strong>guest<\/strong> list within your <strong>hypervisor<\/strong> tool.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"start-virtualmachine\">Step 4: Start the Virtual Machine<\/h2>\n\n\n\n<p>To start up a Virtual Machine <strong>guest<\/strong>&nbsp;in most <strong>hypervisors,<\/strong> you simply click on the desired <strong>guest<\/strong> and click the <strong>Start<\/strong> button (<em>often double-clicking the guest icon will work as well<\/em>).<\/p>\n\n\n\n<p><span style=\"color: red;\"><strong>IMPORTANT:<\/strong><\/span> Some of our larger Virtual Machines can take <em>up to a minute<\/em> to start up the Linux operating system and show you the login screen. If the start-up is a lot slower, or if the performance when logged into the Virtual Machine Desktop or Shell is poor, then consult the <a href=\"https:\/\/carleton.ca\/scs\/tech-support\/troubleshooting-guides\/\">Trouble-Shooting<\/a> section below.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"using-virtualmachine\">Step 5: Using the Virtual Machine<\/h2>\n\n\n\n<p>How you use a Virtual Machine will depend on your course, so consult your TAs. Some useful things to know:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Sharing files between the guest and host: <\/strong>To learn about different ways of sharing files, check out <a href=\"https:\/\/carleton.ca\/scs\/technical-support\/virtual-machines\/transferring-files-to-and-from-virtual-machines\/\">this guide<\/a>.<\/li>\n\n\n\n<li><strong>Run a command with sudo (root) privileges:<\/strong> Open a terminal and type any command with <strong><code>sudo<\/code><\/strong> in front to run that command as root.<br><br>Example: <code>sudo apt-get install vim<\/code> &#8211; will install the vim text editor package on an Ubuntu Linux Virtual Machine<\/li>\n\n\n\n<li><strong>Find the IP address of your guest:<\/strong> Open a terminal and type <strong><code>ifconfig | more<\/code><\/strong> &#8211; The <em>| more<\/em> (pronounced &#8220;pipe more&#8221;) will &#8220;pipe&#8221; the output of the <code>ifconfig<\/code> command to the <code>more<\/code> command, which will show the results one page at a time, so it doesn&#8217;t scroll by before you see it all.<br><br>If you have a <strong>Host-Only Network IP address,<\/strong> you will see an IP of <strong>192.168.56.101<\/strong> (or something similar). Check the <a href=\"troubleshooting\">Trouble-Shooting<\/a> section below for more information about the <strong>Host-Only Network<\/strong>.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"shutdown-virtualmachine\">Step 6: Shut down the Virtual Machine<\/h2>\n\n\n\n<p>When you are done using a <strong>guest<\/strong> Virtual Machine, regardless of <strong>hypervisor<\/strong>, you need to <strong>shut it down properly<\/strong>. This can be done in <strong>three<\/strong> ways:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Press the shut down button found on the <strong>desktop, taskbar, or task menu<\/strong> of the <strong>guest operating system<\/strong><\/li>\n\n\n\n<li>Open a terminal and type the command: <strong><code>sudo shutdown -h now<\/code><\/strong><\/li>\n\n\n\n<li>In the <strong>guest window,<\/strong> click <em>Machine (menu) -&gt; ACPI Shut down<\/em> &#8211; This will simulate the power button being pressed<\/li>\n<\/ol>\n\n\n\n<p><strong><span style=\"color: red;\">WARNING:<\/span><\/strong> If you shut down a <strong>guest<\/strong> operating system any other way, such as by just pressing the <strong>&#8220;X&#8221;<\/strong> button on the <strong>guest window<\/strong> or <em>File (menu) -&gt; Close<\/em>, this can have unintended consequences. In some cases, this can be the same as pulling the power cord out of your desktop computer. This can result in hard drive errors depending on what the <strong>guest&#8217;s<\/strong> operating system was doing when you <em>killed<\/em> it.<\/p>\n\n\n\n<p><strong>NOTE:<\/strong> Some of our VMs can take as much as a minute to shut down depending on what the system was doing, please be patient.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This step-by-step guide will show you how to set up a virtualization environment (called a hypervisor) on your computer that will allow you to run Virtual Machines. Most of our guides and technical support deals primarily with the VirtualBox hypervisor, which is a free, multi-platform, open-source tool. Other hypervisors may be used to run our [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"parent":3949,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"_cu_dining_location_slug":"","footnotes":"","_links_to":"","_links_to_target":""},"cu_page_type":[],"class_list":["post-8645","page","type-page","status-publish","hentry"],"acf":{"cu_post_thumbnail":""},"_links":{"self":[{"href":"https:\/\/carleton.ca\/scs\/wp-json\/wp\/v2\/pages\/8645","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/carleton.ca\/scs\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/carleton.ca\/scs\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/carleton.ca\/scs\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/carleton.ca\/scs\/wp-json\/wp\/v2\/comments?post=8645"}],"version-history":[{"count":4,"href":"https:\/\/carleton.ca\/scs\/wp-json\/wp\/v2\/pages\/8645\/revisions"}],"predecessor-version":[{"id":24858,"href":"https:\/\/carleton.ca\/scs\/wp-json\/wp\/v2\/pages\/8645\/revisions\/24858"}],"up":[{"embeddable":true,"href":"https:\/\/carleton.ca\/scs\/wp-json\/wp\/v2\/pages\/3949"}],"wp:attachment":[{"href":"https:\/\/carleton.ca\/scs\/wp-json\/wp\/v2\/media?parent=8645"}],"wp:term":[{"taxonomy":"cu_page_type","embeddable":true,"href":"https:\/\/carleton.ca\/scs\/wp-json\/wp\/v2\/cu_page_type?post=8645"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}