{"id":6502,"date":"2019-08-23T10:24:33","date_gmt":"2019-08-23T14:24:33","guid":{"rendered":"https:\/\/carleton.ca\/scs\/?page_id=6502"},"modified":"2022-02-23T12:29:23","modified_gmt":"2022-02-23T17:29:23","slug":"transferring-files-to-and-from-virtual-machines","status":"publish","type":"page","link":"https:\/\/carleton.ca\/scs\/tech-support\/virtual-machines\/transferring-files-to-and-from-virtual-machines\/","title":{"rendered":"Transferring Files to and from Virtual Machines"},"content":{"rendered":"<h2>Transferring Files to and from Virtual Machines<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\" \/><\/h2>\n<p>This page provides information on transferring files between different types of virtual machines provided by the SCS. It is often useful to be able to transfer files between the <strong>guest<\/strong> machine and the <strong>host<\/strong> machine. On this page, you will find instructions for the following methods:<\/p>\n<p><a href=\"#shared-folder\" aria-label=\"Learn about creating a shared folder on VirtualBox\">Creating a Shared Folder in VirtualBox<\/a><br \/>\n<a href=\"#shared-folder-lab\" style=\"margin-left:25px;\">Shared Folders on SCS Lab Computers using Course VMs<\/a><br \/>\n<a href=\"#shared-folder-personal\" style=\"margin-left:25px;\">Shared Folders on Personal Computers<\/a><br \/>\n<a href=\"#drag-and-drop\">Dragging and Dropping Files in VirtualBox<\/a><br \/>\n<a href=\"#nextcloud\">Managing Files with NextCloud<\/a><br \/>\n<!--\n \t\n\n<li><a href=\"#rsync\">Using <code>rsync<\/code> to Sync with SCS Account<\/a><\/li>\n\n\n--><\/p>\n<h3 id=\"shared-folder\">Creating a Shared Folder in VirtualBox<\/h3>\n<p>A shared folder is a folder that makes its files available on both the guest machine <em>and<\/em> the host machine <strong>at the same time<\/strong>. Creating a shared folder between the guest and the host allows you to easily manage files that should be present on both machines. The course virtual machines are ready to use shared folders right away, but if you are using the virtual machine on your personal computer, then you will need to specify which folder to use as shared storage.<\/p>\n<h4 id=\"shared-folder-lab\">Shared Folders on SCS Lab Computers using Course VMs<\/h4>\n<p>If you are using a course VM on a lab computer, it is likely that a shared folder has already been set up for you. On the desktop of your course VM, you should notice a folder titled <em>SharedFolders<\/em>. Inside this folder, you will find any folders that have been shared between the course VM and lab computers.<\/p>\n<p>You should see two folders that have already been configured for you: <strong>Z_DRIVE<\/strong> and <strong>Temp<\/strong>. <!-- fill out with info on using the lab PC --><\/p>\n<p><em>Z_DRIVE<\/em> gives you access to your <a href=\"https:\/\/carleton.ca\/scs\/scs-windows\/\">Windows Account <code>Z:\\<\/code> drive<\/a>. This is storage that is persistent to your SCS account and available as a network drive on the lab computers.<\/p>\n<p><em>Temp<\/em> gives you access to the folder found at <code>D:\\temp<\/code> on the lab computer. Files stored in this folder are local to the machine, meaning that they can be accessed <strong>faster<\/strong>\u00a0but will <strong>delete<\/strong> from the system when you log out.<\/p>\n<p>If you are working with data that you will need to use again, use the <em>Z_DRIVE<\/em> for your shared folder. If you need a faster read\/write speed, use the <em>Temp<\/em> folder, but remember to back up your files, or they will be deleted when you log off the computer.<\/p>\n<h4 id=\"shared-folder-personal\">Shared Folders on Personal Computers<\/h4>\n<p>If you are using your own personal machine, you will need to configure VirtualBox to look in the right place for your shared files.<\/p>\n<ul>\n<li><a class=\"ccms__fancybox\" href=\"https:\/\/www.youtube.com\/watch?v=htU2wyopj6w\" data-caption=\"Setting up a shared folder on VirtualBox (Windows)\">Video Tutorial (Windows)<\/a><\/li>\n<li><a class=\"ccms__fancybox\" href=\"https:\/\/carleton.ca\/scs\/?p=6809&amp;window=true\" data-type=\"iframe\" data-caption=\"Setting up a shared folder on VirtualBox\">Quick Start Guide<\/a><\/li>\n<\/ul>\n<p>First, click on the guest machine you intend to share files with. From there, you can select the guest <em>Settings<\/em> and navigate to <em>Shared Folders<\/em> on the left side menu. To create a new shared folder, either click the <em>New Folder<\/em> icon on the right menu <strong>or<\/strong> right-click the empty list of shared folders and click <em>Add Shared Folder.<\/em> From here, there are six options:<em><br \/>\n<\/em><\/p>\n<ul>\n<li><strong>Folder Path: <\/strong>The folder name on the <strong>host <\/strong>machine. Click the drop-down menu and navigate to the folder you would like to share.<\/li>\n<li><strong>Folder Name:<\/strong> This is the name of the folder as it will appear on the <strong>guest<\/strong> machine.<\/li>\n<li><strong>Read-Only: <\/strong>If you check read-only, the <strong>guest<\/strong> machine will be unable to write changes to the folder. This is valuable when you only want to send files <em>to<\/em> the virtual machine, but do not want to risk having the files modified by the guest.<\/li>\n<li><strong>Auto-Mount: <\/strong>When any external storage is connected to a computer, it must be <em>mounted<\/em> in order to be used. It is recommended that you turn on auto-mounting unless you are familiar with the process of mounting a drive yourself.<\/li>\n<li><strong>Mount Point:<\/strong> Unless you already know about mount points, leave this blank.<\/li>\n<li><strong>Make Permanent: <\/strong>If you check this, the shared folder will be a permanent <strong>machine folder<\/strong>. If it is not checked, the folder will not be shared after a shutdown.<\/li>\n<\/ul>\n<p>On the course virtual machines, when you load into the desktop, you should see a folder labelled <em>SharedFolders<\/em>. In there, you will see any folders that are currently mounted and being shared.<\/p>\n<h3 id=\"drag-and-drop\">Dragging and Dropping Files in VirtualBox<\/h3>\n<p>If you only need to transfer a few files quickly, you can simply drag and drop the files in. On the top bar of the running guest machine, click on <em>Devices &gt; Drag and Drop<\/em> and make sure that <em>Bidirectional<\/em> is selected. This means that you will be able to drag files from the host to the guest and from the guest to the host. Once bidirectional drag and drop is checked, you should be able to begin dragging and dropping files.<\/p>\n<p><strong>NOTE: <\/strong>Sometimes when dragging files <strong><em>into<\/em> the course VM<\/strong>, you may not be able to drag them into the file browser directly. If you encounter this issue, you should drag your files onto the <em>Desktop<\/em> and move the files around from there. You should see the cursor change when it is ready to drop files.<\/p>\n<p>You can also drag files from the guest machine into the host. To do this, simply open the file browser on the host to where you would like to drop the files and drag the files from the virtual machine into the file browser of the host. File transfers should be pretty quick; if the virtual machine seems stuck when transferring, simply cancel the transfer and try again.<\/p>\n<h3 id=\"nextcloud\">Managing Files with NextCloud<\/h3>\n<p>On any virtual machine, including VirtualBox, VMWare, or the virtual machines hosted on the <a href=\"https:\/\/carleton.ca\/scs\/technical-support\/scs-open-stack\/\">SCS OpenStack<\/a>, you can access the <a href=\"https:\/\/carleton.ca\/scs\/technical-support\/nextcloud\/\">SCS NextCloud<\/a> services to move files between multiple machines and your <a href=\"https:\/\/carleton.ca\/scs\/scs-windows\/\">SCS Windows Account storage<\/a>. NextCloud offers you all of your SCS storage in one remote location, similar to how you might use other file hosting services like Dropbox or Google Drive. Before trying to use NextCloud, you should check that you can access the service by <a href=\"https:\/\/share.scs.carleton.ca\/\">logging in here<\/a>.<\/p>\n<p>If you can access the NextCloud services, you can browse the various file storage services available to you:<\/p>\n<ul>\n<li><strong>Linux Home:<\/strong> These are the files from your <a href=\"https:\/\/carleton.ca\/scs\/technical-support\/linux\/\">SCS Linux Account<\/a><\/li>\n<li><strong>Windows Home:<\/strong> These are the files from your <a href=\"https:\/\/carleton.ca\/scs\/scs-windows\/\">SCS Windows Account<\/a> and your lab <code>Z:\\<\/code> drive.<\/li>\n<li><strong>NextCloud: <\/strong>In addition to the other storage accounts provided to you by the SCS, you can also upload up to 20GB of files directly to NextCloud.<\/li>\n<\/ul>\n<p>With NextCloud, you can upload your files from any machine with an internet connection and download them onto any other machine with an internet connection. For example, you can move project files off of your virtual machine, onto the NextCloud storage, and then download them on your personal laptop. Alternatively, you can upload files from your personal PC onto the NextCloud storage, place them into the <em>Windows Home<\/em> folder, and access those files from either the lab <code>Z:\\<\/code> drive or download them on a virtual machine like VirtualBox or OpenStack.<\/p>\n<h4>Uploading Files to NextCloud from a Lab Computer<\/h4>\n<p>If you would like to upload files from a lab computer, the easiest way to do this is to place the files you would like to transfer into your <code>Z:\\<\/code> drive. These files will be automatically backup into your NextCloud storage under the <em>Windows Home<\/em> folder. After that, you can move them into the main NextCloud storage or choose to keep them in your <code>Z:\\<\/code>drive.<\/p>\n<h4>Uploading Files to NextCloud from a VM or Other PC<\/h4>\n<p>If you would like to upload files from either a VM or any other computer, you can log in to the NextCloud service using any of the available interfaces, such as the <a href=\"https:\/\/share.scs.carleton.ca\/\">web interface<\/a>. Press the &#8220;+&#8221; icon in the top left of the file browser and select <em>Upload<\/em> <em>File<\/em>. From here, you can choose to keep it in the main NextCloud storage, move it into your Windows Account storage (the <em>Windows Home<\/em> folder), or into your Linux Account storage (the <em>Linux Home <\/em>folder).<\/p>\n<h4>Downloading NextCloud Files to a VM or Other PC<\/h4>\n<p>Once your files are uploaded, you will be able to download those files onto any machine, which can connect to NextCloud. First, log in to your preferred NextCloud interface (e.g. the <a href=\"https:\/\/share.scs.carleton.ca\/\">web interface<\/a>). Navigate to the folder which contains the files you would like to download. Once you are in the target folder, click the checkbox next to each file you would like to download. Above the file listing, you should notice the context bar changing to tell you how many files you have selected and a button labelled <em>Actions<\/em>. Click <em>Actions &gt; Download<\/em>.<\/p>\n<p>If you selected a single file, it will prompt you to confirm the download. If you have chosen more than one file, NextCloud will place all of the selected files into a <em>zip archive<\/em>. Before you can use the files, you will need to extract them from the archive. Once you have downloaded your file or extracted your archive, you are ready to use your files on your machine.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Transferring Files to and from Virtual Machines This page provides information on transferring files between different types of virtual machines provided by the SCS. It is often useful to be able to transfer files between the guest machine and the host machine. On this page, you will find instructions for the following methods: Creating a [&hellip;]<\/p>\n","protected":false},"author":38,"featured_media":0,"parent":463,"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>Transferring Files to and from Virtual Machines - School of Computer Science<\/title>\n<meta name=\"description\" content=\"Transferring Files to and from Virtual Machines This page provides information on transferring files between different types of virtual machines provided\" \/>\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\/transferring-files-to-and-from-virtual-machines\/\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"7 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\/transferring-files-to-and-from-virtual-machines\/\",\"url\":\"https:\/\/carleton.ca\/scs\/tech-support\/virtual-machines\/transferring-files-to-and-from-virtual-machines\/\",\"name\":\"Transferring Files to and from Virtual Machines - School of Computer Science\",\"isPartOf\":{\"@id\":\"https:\/\/carleton.ca\/scs\/#website\"},\"datePublished\":\"2019-08-23T14:24:33+00:00\",\"dateModified\":\"2022-02-23T17:29:23+00:00\",\"description\":\"Transferring Files to and from Virtual Machines This page provides information on transferring files between different types of virtual machines provided\",\"breadcrumb\":{\"@id\":\"https:\/\/carleton.ca\/scs\/tech-support\/virtual-machines\/transferring-files-to-and-from-virtual-machines\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/carleton.ca\/scs\/tech-support\/virtual-machines\/transferring-files-to-and-from-virtual-machines\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/carleton.ca\/scs\/tech-support\/virtual-machines\/transferring-files-to-and-from-virtual-machines\/#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\":\"Transferring Files to and from Virtual Machines\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/carleton.ca\/scs\/#website\",\"url\":\"https:\/\/carleton.ca\/scs\/\",\"name\":\"School of Computer Science\",\"description\":\"Carleton 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":"Transferring Files to and from Virtual Machines - School of Computer Science","description":"Transferring Files to and from Virtual Machines This page provides information on transferring files between different types of virtual machines provided","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\/transferring-files-to-and-from-virtual-machines\/","twitter_misc":{"Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/carleton.ca\/scs\/tech-support\/virtual-machines\/transferring-files-to-and-from-virtual-machines\/","url":"https:\/\/carleton.ca\/scs\/tech-support\/virtual-machines\/transferring-files-to-and-from-virtual-machines\/","name":"Transferring Files to and from Virtual Machines - School of Computer Science","isPartOf":{"@id":"https:\/\/carleton.ca\/scs\/#website"},"datePublished":"2019-08-23T14:24:33+00:00","dateModified":"2022-02-23T17:29:23+00:00","description":"Transferring Files to and from Virtual Machines This page provides information on transferring files between different types of virtual machines provided","breadcrumb":{"@id":"https:\/\/carleton.ca\/scs\/tech-support\/virtual-machines\/transferring-files-to-and-from-virtual-machines\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/carleton.ca\/scs\/tech-support\/virtual-machines\/transferring-files-to-and-from-virtual-machines\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/carleton.ca\/scs\/tech-support\/virtual-machines\/transferring-files-to-and-from-virtual-machines\/#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":"Transferring Files to and from Virtual Machines"}]},{"@type":"WebSite","@id":"https:\/\/carleton.ca\/scs\/#website","url":"https:\/\/carleton.ca\/scs\/","name":"School of Computer Science","description":"Carleton 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\/6502"}],"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\/38"}],"replies":[{"embeddable":true,"href":"https:\/\/carleton.ca\/scs\/wp-json\/wp\/v2\/comments?post=6502"}],"version-history":[{"count":5,"href":"https:\/\/carleton.ca\/scs\/wp-json\/wp\/v2\/pages\/6502\/revisions"}],"predecessor-version":[{"id":14169,"href":"https:\/\/carleton.ca\/scs\/wp-json\/wp\/v2\/pages\/6502\/revisions\/14169"}],"up":[{"embeddable":true,"href":"https:\/\/carleton.ca\/scs\/wp-json\/wp\/v2\/pages\/463"}],"wp:attachment":[{"href":"https:\/\/carleton.ca\/scs\/wp-json\/wp\/v2\/media?parent=6502"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}