{"id":4304,"date":"2012-02-15T16:39:54","date_gmt":"2012-02-15T21:39:54","guid":{"rendered":"http:\/\/jianmingli.com\/wp\/?p=4304"},"modified":"2012-11-12T20:37:25","modified_gmt":"2012-11-13T01:37:25","slug":"oracle-virtualbox-setup-share-folder","status":"publish","type":"post","link":"https:\/\/jianmingli.com\/wp\/?p=4304","title":{"rendered":"Oracle VirtualBox: Setup Share Folder"},"content":{"rendered":"<div class='toc wptoc'>\n<h2>Contents<\/h2>\n<ol class='toc-odd level-1'>\n\t<li>\n\t\t<a href=\"#On_the_Windows_Machine\">On the Windows Machine<\/a>\n\t\t<ol class='toc-even level-2'>\n\t\t\t<li>\n\t\t\t\t<a href=\"#Create_Shared_Folder\">Create Shared Folder<\/a>\n\t\t\t<\/li>\n\t\t<\/ol>\n\t<li>\n\t\t<a href=\"#On_the_Oracle_VM_VirtualBox_Manager\">On the Oracle VM VirtualBox Manager<\/a>\n\t\t<ol class='toc-even level-2'>\n\t\t\t<li>\n\t\t\t\t<a href=\"#Create_a_VM_Shared_Folder_and_Point_to_Windows_Shared_Folder\">Create a VM Shared Folder and Point to Windows Shared Folder<\/a>\n\t\t\t<\/li>\n\t\t\t<li>\n\t\t\t\t<a href=\"#Manually_Map_Shared_Folder_From_VM_Linux\">Manually Map Shared Folder From VM Linux<\/a>\n\t\t\t<\/li>\n\t\t\t<li>\n\t\t\t\t<a href=\"#Auto_Mount\">Auto Mount<\/a>\n\t\t\t<\/li>\n\t\t<\/ol>\n\t<li>\n\t\t<a href=\"#Test\">Test<\/a>\n\t<\/li>\n<\/ol>\n<\/ol>\n<\/div>\n<div class='wptoc-end'>&nbsp;<\/div>\n<p>This is the instruction from my friend and colleague <strong>Peter Scalise<\/strong>. I reformatted it and added screen shots.<\/p>\n<span id=\"On_the_Windows_Machine\"><h2>On the Windows Machine<\/h2><\/span>\n<span id=\"Create_Shared_Folder\"><h3>Create Shared Folder<\/h3><\/span>\n<p>* Create the shared folder on the Windows side to be shared with VM, e.g. <strong>c:\\vmshare<\/strong><br \/>\n* Right click on the newly created shared folder, e.g. <em>c:\\vmshare<\/em>, and select <em>Properties<\/em><br \/>\n* Select the &#8220;<em>Sharing<\/em>&#8221; tab<br \/>\n* Click the button &#8220;<em>Advanced Sharing<\/em>&#8221;<\/p>\n<span id=\"\"><h6><a href=\"https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2012\/02\/vmshare_adv.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2012\/02\/vmshare_adv.jpg\" alt=\"\" title=\"vmshare_adv\" width=\"374\" height=\"484\" class=\"aligncenter size-full wp-image-4306\" srcset=\"https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2012\/02\/vmshare_adv.jpg 374w, https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2012\/02\/vmshare_adv-231x300.jpg 231w\" sizes=\"auto, (max-width: 374px) 100vw, 374px\" \/><\/a><\/h6><\/span>\n<p>* Enable the &#8220;<em>Share this folder<\/em>&#8221; checkbox<br \/>\n* Enter &#8220;<strong>vmshare<\/strong>&#8221; in the &#8220;<em>Share Name:<\/em>&#8221; field<\/p>\n<span id=\"_1\"><h6><a href=\"https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2012\/02\/vmshare_adv2.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2012\/02\/vmshare_adv2.jpg\" alt=\"\" title=\"vmshare_adv2\" width=\"366\" height=\"368\" class=\"aligncenter size-full wp-image-4307\" srcset=\"https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2012\/02\/vmshare_adv2.jpg 366w, https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2012\/02\/vmshare_adv2-150x150.jpg 150w, https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2012\/02\/vmshare_adv2-298x300.jpg 298w\" sizes=\"auto, (max-width: 366px) 100vw, 366px\" \/><\/a><\/h6><\/span>\n<p>* Click the &#8220;<em>Permissions<\/em>&#8221; button and grant <em>read access<\/em> to &#8220;<em>Everyone<\/em>&#8221;<\/p>\n<span id=\"_2\"><h6><a href=\"https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2012\/02\/vmshare_adv_share.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2012\/02\/vmshare_adv_share.jpg\" alt=\"\" title=\"vmshare_adv_share\" width=\"374\" height=\"455\" class=\"aligncenter size-full wp-image-4308\" srcset=\"https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2012\/02\/vmshare_adv_share.jpg 374w, https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2012\/02\/vmshare_adv_share-246x300.jpg 246w\" sizes=\"auto, (max-width: 374px) 100vw, 374px\" \/><\/a><\/h6><\/span>\n<p>* Click <em>OK <\/em>buttons to exit<\/p>\n<span id=\"On_the_Oracle_VM_VirtualBox_Manager\"><h2>On the Oracle VM VirtualBox Manager<\/h2><\/span>\n<span id=\"Create_a_VM_Shared_Folder_and_Point_to_Windows_Shared_Folder\"><h3>Create a VM Shared Folder and Point to Windows Shared Folder<\/h3><\/span>\n<p>* Highlight the VM instance<br \/>\n* Navigate to <em>Machine\/Settings&#8230;\/Shared Folders<\/em><br \/>\n* Right click on &#8220;<em>Machine Folders<\/em>&#8221; and select <em>Add Shared Folder<\/em> to create a new shared folder<br \/>\n* In the &#8220;<em>Folder Path<\/em>&#8221; enter the full Windows path for the folder you shared in step above, in this case <strong>c:\\vmshare<\/strong>. Optionally, you can <em>browse <\/em>to the shared directory created previously.<br \/>\n* In the &#8220;<em>Folder Name<\/em>&#8221; enter one alpha-numeric string of text for share name. This can be arbitrary, but unlike the windows share name you will use this share name in a step below. For this example we will use &#8220;<strong>vmshare<\/strong>&#8221;<br \/>\n* Enable the &#8220;<em>Auto-mount<\/em>&#8221; option<br \/>\n* Enable the &#8220;<em>Make Permanent<\/em>&#8221; option<\/p>\n<span id=\"_3\"><h6><a href=\"https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2012\/02\/vmshare_vbox_settings.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2012\/02\/vmshare_vbox_settings.jpg\" alt=\"\" title=\"vmshare_vbox_settings\" width=\"306\" height=\"246\" class=\"aligncenter size-full wp-image-4309\" srcset=\"https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2012\/02\/vmshare_vbox_settings.jpg 306w, https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2012\/02\/vmshare_vbox_settings-300x241.jpg 300w\" sizes=\"auto, (max-width: 306px) 100vw, 306px\" \/><\/a><\/h6><\/span>\n<p>* Click <em>OK <\/em>to close the &#8220;<em>Add Share<\/em>&#8221; window<\/p>\n<span id=\"_4\"><h6><a href=\"https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2012\/02\/vmshare_vbox_settings_sharefolder.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2012\/02\/vmshare_vbox_settings_sharefolder.jpg\" alt=\"\" title=\"vmshare_vbox_settings_sharefolder\" width=\"653\" height=\"489\" class=\"aligncenter size-full wp-image-4310\" srcset=\"https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2012\/02\/vmshare_vbox_settings_sharefolder.jpg 653w, https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2012\/02\/vmshare_vbox_settings_sharefolder-300x224.jpg 300w\" sizes=\"auto, (max-width: 653px) 100vw, 653px\" \/><\/a><\/h6><\/span>\n<p>* Click <em>OK <\/em>to close the &#8220;Settings&#8221; window<\/p>\n<span id=\"Manually_Map_Shared_Folder_From_VM_Linux\"><h3>Manually Map Shared Folder From VM Linux<\/h3><\/span>\n<p>* Start the VM and use the running instance<br \/>\n* Open a Linux terminal and su as <strong>root <\/strong>user<br \/>\n* Create a directory to use as a mount point for the shared folder, for example, <strong>\/vmshare<\/strong><br \/>\n* Change permissions on directory just created: <strong>chmod 777 \/vmshare<\/strong><br \/>\n* Run the following command to mount the shared folder:<br \/>\n<strong>mount -t vboxsf linShare \/home\/vmshare<\/strong><br \/>\n* For example<\/p>\n<pre lang=\"bash\">\r\nsu -\r\nmkdir \/vmshare\r\nchmod 777 \/vmshare\r\nmount -t vboxsf vmshare \/vmshare\r\n<\/pre>\n<span id=\"Auto_Mount\"><h3>Auto Mount<\/h3><\/span>\n<p>* Shared folders are automatically mounted under directory <em>\/medea\/sf_sharefolder<\/em>, e.g. <em>\/media\/sf_vmshare<\/em>.<\/p>\n<span id=\"Test\"><h2>Test<\/h2><\/span>\n<p>* On Windows machine, drop a test file onto the <em>C:\\vmshare<\/em> directory<br \/>\n* On VM Linux instance, you should see the test file in the<em> \/vmshare<\/em> directory<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This is the instruction from my friend and colleague Peter Scalise. I reformatted it and added screen shots. On the Windows Machine Create Shared Folder * Create the shared folder on the Windows side to be shared with VM, e.g. &hellip; <a href=\"https:\/\/jianmingli.com\/wp\/?p=4304\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[1,123],"tags":[],"class_list":["post-4304","post","type-post","status-publish","format-standard","hentry","category-uncategorized","category-virtualbox"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p8cRUO-17q","_links":{"self":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/4304","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4304"}],"version-history":[{"count":7,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/4304\/revisions"}],"predecessor-version":[{"id":4312,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/4304\/revisions\/4312"}],"wp:attachment":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4304"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4304"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4304"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}