  {"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":"2021-10-05T10:40:50","modified_gmt":"2021-10-05T14:40:50","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":"<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.<br \/>\n<img decoding=\"async\" loading=\"lazy\" class=\"size-full wp-image-319 alignright\" src=\"http:\/\/carleton.ca\/scs\/wp-content\/uploads\/virtualbox150.png\" alt=\"virtualbox150\" width=\"150\" height=\"150\" \/><br \/>\n<a href=\"#prepare-computer\">Step 1: Prepare your computer for Virtualization<\/a><br \/>\n<a href=\"#install-hypervisor\">Step 2: Install Hypervisor (Virtualization Tool)<\/a><br \/>\n<a href=\"#import-virtualmachine\">Step 3: Import a Virtual Machine<\/a><br \/>\n<a href=\"#start-virtualmachine\">Step 4: Start the Virtual Machine<\/a><br \/>\n<a href=\"#using-virtualmachine\">Step 5: Using the Virtual Machine<\/a><br \/>\n<a href=\"#shutdown-virtualmachine\">Step 6: Shut down the Virtual Machine<\/a><\/p>\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<div class=\"slideme\"><dl class=\"slideme__list\"><dt class=\"slideme__term\"><a href=\"#slideme-virtualization-terminology\" aria-expanded=\"false\" aria-controls=\"slideme-virtualization-terminology\" class=\"slideme__heading slideme__trigger\">Virtualization Terminology<\/a><\/dt><dd class=\"slideme__description\" id=\"slideme-virtualization-terminology\" aria-hidden=\"true\"><p><\/p>\n<ul>\n<li><strong>virtualization<\/strong> <em> &#8211; the underlying technology that allows a virtual operating system to be run as an application on your computer&#8217;s operating system<\/em>\n<li><strong>hypervisor<\/strong> <em> &#8211; the virtualization application (such as <strong>VirtualBox<\/strong> or <strong>VMware<\/strong>) running on your <strong>host<\/strong> computer that allows it to run a <strong>guest<\/strong> virtual operating system<\/em><\/li>\n<li><strong>host<\/strong> <em> &#8211; the computer on which you are running the <strong>hypervisor<\/strong> application<\/em><\/li>\n<li><strong>guest<\/strong> <em> &#8211; a virtual operating system running within the <strong>hypervisor<\/strong> on your <strong>host<\/strong> computer. The <strong>virtual operating system<\/strong> term is synonymous with other terms such as <strong>Virtual Machine<\/strong>, <strong>VM<\/strong> and <strong>instance<\/strong><\/em><\/li>\n<\/ul>\n<p><\/p><\/dd><dl><\/div>\n\n<h2 id=\"prepare-computer\">Step 1: Prepare your computer for Virtualization<\/h2>\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<ul>\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<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<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<li><strong>Admin Privileges:<\/strong> Installing a <strong>hypervisor<\/strong> on a host in most cases requires admin privileges.<\/li>\n<\/ul>\n<h2 id=\"install-hypervisor\">Step 2: Install Hypervisor (Virtualization Tool)<\/h2>\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<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<ul>\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<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<h2 id=\"import-virtualmachine\">Step 3: Import a Virtual Machine<\/h2>\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<ul>\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<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<h2 id=\"start-virtualmachine\">Step 4: Start the Virtual Machine<\/h2>\n<p>To start up a Virtual Machine <strong>guest<\/strong>\u00a0in 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<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<h2 id=\"using-virtualmachine\">Step 5: Using the Virtual Machine<\/h2>\n<p>How you use a Virtual Machine will depend on your course, so consult your TAs. Some useful things to know:<\/p>\n<ul>\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<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 \/>\nExample: <code>sudo apt-get install vim<\/code> &#8211; will install the vim text editor package on an Ubuntu Linux Virtual Machine<\/li>\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 \/>\nIf 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<h2 id=\"shutdown-virtualmachine\">Step 6: Shut down the Virtual Machine<\/h2>\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<ol>\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<li>Open a terminal and type the command: <strong><code>sudo shutdown -h now<\/code><\/strong><\/li>\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<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<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":15,"featured_media":0,"parent":3949,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_relevanssi_hide_post":"","_relevanssi_hide_content":"","_relevanssi_pin_for_all":"","_relevanssi_pin_keywords":"","_relevanssi_unpin_keywords":"","_relevanssi_related_keywords":"","_relevanssi_related_include_ids":"","_relevanssi_related_exclude_ids":"","_relevanssi_related_no_append":"","_relevanssi_related_not_related":"","_relevanssi_related_posts":"","_relevanssi_noindex_reason":"","_mi_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"footnotes":"","_links_to":"","_links_to_target":""},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Virtual Machine Step-by-Step Guide - School of Computer Science<\/title>\n<meta name=\"description\" content=\"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\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/carleton.ca\/scs\/tech-support\/virtual-machines\/virtual-machine-technical-support\/virtual-machine-step-by-step-guide\/\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/carleton.ca\/scs\/tech-support\/virtual-machines\/virtual-machine-technical-support\/virtual-machine-step-by-step-guide\/\",\"url\":\"https:\/\/carleton.ca\/scs\/tech-support\/virtual-machines\/virtual-machine-technical-support\/virtual-machine-step-by-step-guide\/\",\"name\":\"Virtual Machine Step-by-Step Guide - School of Computer Science\",\"isPartOf\":{\"@id\":\"https:\/\/carleton.ca\/scs\/#website\"},\"datePublished\":\"2021-01-28T19:38:45+00:00\",\"dateModified\":\"2021-10-05T14:40:50+00:00\",\"description\":\"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\",\"breadcrumb\":{\"@id\":\"https:\/\/carleton.ca\/scs\/tech-support\/virtual-machines\/virtual-machine-technical-support\/virtual-machine-step-by-step-guide\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/carleton.ca\/scs\/tech-support\/virtual-machines\/virtual-machine-technical-support\/virtual-machine-step-by-step-guide\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/carleton.ca\/scs\/tech-support\/virtual-machines\/virtual-machine-technical-support\/virtual-machine-step-by-step-guide\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/carleton.ca\/scs\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Technical Support\",\"item\":\"https:\/\/carleton.ca\/scs\/tech-support\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Virtual Machines\",\"item\":\"https:\/\/carleton.ca\/scs\/tech-support\/virtual-machines\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Virtual Machine Technical Support\",\"item\":\"https:\/\/carleton.ca\/scs\/tech-support\/virtual-machines\/virtual-machine-technical-support\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"Virtual Machine Step-by-Step Guide\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/carleton.ca\/scs\/#website\",\"url\":\"https:\/\/carleton.ca\/scs\/\",\"name\":\"School of Computer Science\",\"description\":\"ÐÓ°ÉÔ­´´ University\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/carleton.ca\/scs\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Virtual Machine Step-by-Step Guide - School of Computer Science","description":"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","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/carleton.ca\/scs\/tech-support\/virtual-machines\/virtual-machine-technical-support\/virtual-machine-step-by-step-guide\/","twitter_misc":{"Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/carleton.ca\/scs\/tech-support\/virtual-machines\/virtual-machine-technical-support\/virtual-machine-step-by-step-guide\/","url":"https:\/\/carleton.ca\/scs\/tech-support\/virtual-machines\/virtual-machine-technical-support\/virtual-machine-step-by-step-guide\/","name":"Virtual Machine Step-by-Step Guide - School of Computer Science","isPartOf":{"@id":"https:\/\/carleton.ca\/scs\/#website"},"datePublished":"2021-01-28T19:38:45+00:00","dateModified":"2021-10-05T14:40:50+00:00","description":"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","breadcrumb":{"@id":"https:\/\/carleton.ca\/scs\/tech-support\/virtual-machines\/virtual-machine-technical-support\/virtual-machine-step-by-step-guide\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/carleton.ca\/scs\/tech-support\/virtual-machines\/virtual-machine-technical-support\/virtual-machine-step-by-step-guide\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/carleton.ca\/scs\/tech-support\/virtual-machines\/virtual-machine-technical-support\/virtual-machine-step-by-step-guide\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/carleton.ca\/scs\/"},{"@type":"ListItem","position":2,"name":"Technical Support","item":"https:\/\/carleton.ca\/scs\/tech-support\/"},{"@type":"ListItem","position":3,"name":"Virtual Machines","item":"https:\/\/carleton.ca\/scs\/tech-support\/virtual-machines\/"},{"@type":"ListItem","position":4,"name":"Virtual Machine Technical Support","item":"https:\/\/carleton.ca\/scs\/tech-support\/virtual-machines\/virtual-machine-technical-support\/"},{"@type":"ListItem","position":5,"name":"Virtual Machine Step-by-Step Guide"}]},{"@type":"WebSite","@id":"https:\/\/carleton.ca\/scs\/#website","url":"https:\/\/carleton.ca\/scs\/","name":"School of Computer Science","description":"ÐÓ°ÉÔ­´´ University","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/carleton.ca\/scs\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"}]}},"acf":{"banner_image_type":"none","banner_button":"no"},"_links":{"self":[{"href":"https:\/\/carleton.ca\/scs\/wp-json\/wp\/v2\/pages\/8645"}],"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\/15"}],"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":11414,"href":"https:\/\/carleton.ca\/scs\/wp-json\/wp\/v2\/pages\/8645\/revisions\/11414"}],"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"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}