<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Zé on Medium]]></title>
        <description><![CDATA[Stories by Zé on Medium]]></description>
        <link>https://medium.com/@zegugacezinha?source=rss-3fe4a9ea66cd------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*iYNBPsY57LVBMBnlEFOBBA.jpeg</url>
            <title>Stories by Zé on Medium</title>
            <link>https://medium.com/@zegugacezinha?source=rss-3fe4a9ea66cd------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 03:18:32 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@zegugacezinha/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Sharing folder with VirtualBox and host OS: vboxsf mounting failed]]></title>
            <link>https://medium.com/@zegugacezinha/sharing-folder-with-virtualbox-and-host-os-vboxsf-mounting-failed-ce68717e77f2?source=rss-3fe4a9ea66cd------2</link>
            <guid isPermaLink="false">https://medium.com/p/ce68717e77f2</guid>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[mounting-failed]]></category>
            <category><![CDATA[folder-sharing]]></category>
            <category><![CDATA[virtualbox]]></category>
            <category><![CDATA[vboxsf]]></category>
            <dc:creator><![CDATA[Zé]]></dc:creator>
            <pubDate>Thu, 15 Feb 2018 23:17:50 GMT</pubDate>
            <atom:updated>2018-02-15T23:39:46.961Z</atom:updated>
            <content:encoded><![CDATA[<p>Recently I had a couple of trouble trying to share a folder with host OS and a Virtual Machine using VirtualBox (I was using Windows as host and Ubuntu Server 17.10.1 as guest VM) — this is very usefull especially when you use a shared volume between a docker container and its host OS. But I won’t speak about containers in this post.</p><p>After trying solve this problem using different approaches that I found in differents sources (blogs, stackoverflow, and so on) I was able to put together different ways and finally get the solution.</p><p>The first thing that I have tried was ‘Insert Guest Additions CD Image’, that we normally do this via Devices &gt; Insert Guest Additions CD Image. But that did not worked for me and the following error message was displayed:</p><blockquote>Unable to insert the virtual optical disk <strong>C:\Program Files\Oracle\VirtualBox\VBoxGuestAdditions.iso</strong> into the machine <strong>Ubuntu Server</strong>.</blockquote><blockquote>Could not mount the media/drive <strong>‘C:\Program Files\Oracle\VirtualBox\VBoxGuestAdditions.iso’</strong> (VERR_PDM_MEDIA_LOCKED).</blockquote><p>So, instead of use the image contained in VirtualBox I installed VBoxGuestAdditions through aptitude using the following commands:</p><blockquote><strong>sudo apt-get install virtualbox-guest-dkms</strong></blockquote><p>and</p><blockquote><strong>sudo apt-get install linux-headers-virtual</strong></blockquote><p>After this, I added a new shared folder in my Ubuntu’s virtual machine settings via Settings &gt; Shared Folders &gt; Add new shared folder. After defined the folder name (in my case I named this folder ‘shared’ — keep the folder name, because you’ll need this soon) and path, and choosed ‘Auto-mount’ and ‘Make permanent’ options, finally I was able to mount the shared folder in the guest VM:</p><blockquote><strong>sudo mount -t vboxsf shared ~/whatever/</strong></blockquote><p>and… Booyah! The folder was mounted in <strong>whatever </strong>folder in my user’s home directory.</p><p>One thing that I made and I recommend that you also do is put this line in your bash_profile file to set this command to run automatically when the VM starts.</p><p>References:</p><ol><li><a href="https://www.virtualbox.org/manual/ch04.html">Chapter 4. Guest Additions</a></li><li><a href="http://www.giannistsakiris.com/2008/04/09/virtualbox-access-windows-host-shared-folders-from-ubuntu-guest/">VirtualBox: access Windows-host shared folders from Ubuntu-guest</a></li><li><a href="https://www.howtogeek.com/187703/how-to-access-folders-on-your-host-machine-from-an-ubuntu-virtual-machine-in-virtualbox/">How to Access Folders on Your Host Machine from an Ubuntu Virtual Machine in VirtualBox</a></li><li><a href="https://superuser.com/questions/1268741/virtualbox-ubuntu-guest-additions-not-installing-modprobe-vboxsf-failed">VirtualBox Ubuntu Guest Additions not installing : modprobe vboxsf failed</a></li><li><a href="https://stackoverflow.com/questions/28328775/virtualbox-mount-vboxsf-mounting-failed-with-the-error-no-such-device">VirtualBox: mount.vboxsf: mounting failed with the error: No such device</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ce68717e77f2" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>