/ html / wiki / hypervisor / virtualbox / shared_folder.html
shared_folder.html
 1  <!DOCTYPE html>
 2  <html lang="de">
 3     <head>
 4        <meta charset="UTF-8" />
 5        <meta name="viewport" content="width=device-width, initial-scale=1.0" />
 6        <meta http-equiv="onion-location" content="http://bopbopl6lohkl2rts3ltesjnag4hzs4jrx2h6k6etgq5xasbpqekzlqd.onion" />
 7        <title>BOP Wiki: Adding a shared folder in VirtualBox VM</title>
 8        <link rel="stylesheet" href="/assets/stylesheet.css" />
 9        <link rel="icon" type="image/x-icon" href="/assets/img/favicon.png">
10     </head>
11     <body>
12        <header>
13           <!-- --------------------------------------------------------------------------------------------------------------------------------- -->
14           <script src="/assets/js/navbar-OpenClose.js"></script>
15           <script src="/assets/js/lightbox.js"></script>
16            <script src="/assets/js/copyCodeButton.js"></script>
17           <link rel="stylesheet" href="/resources/js-libraries/highlightJS/atom-one-dark.min.css">
18           <script src="/resources/js-libraries/highlightJS/highlight.min.js"></script>
19           <script src="/resources/js-libraries/highlightJS/highlightjs-line-numbers.min.js"></script>
20           <script>hljs.highlightAll();</script>
21           <script>hljs.initLineNumbersOnLoad();</script>
22           <!-- --------------------------------------------------------------------------------------------------------------------------------- -->
23           <div class="branding">
24              <button class="toggle-btn-navbar" id="navbarOpenButton">☰</button>
25              <a href="/">
26              <img class="logo" src="/assets/img/logo.png">
27              </a>
28              <div class="typing-animation">BytesOfProgress</div>
29           </div>
30        </header>
31        <div id="navbarContainer" class="navbar-container">
32           <iframe class="navbar-iframe" src="/assets/navbar/navbar.html" frameBorder= "0"></iframe>
33        </div>
34        <main>
35           <article class="blog-post">
36              <header class="post-header">
37                 <h1 class="post-title">Adding a shared folder in VirtualBox VM</h1>
38              </header>
39           </article>
40           <nav class="breadcrumb">
41              <a href="/">Home</a>
42              <span class="divider">›</span>
43              <a href="/wiki/">Wiki</a>
44              <span class="divider">›</span>
45              <a href="/wiki/hypervisor/hypervisor.html">Hypervisor</a>
46              <span class="divider">›</span>
47              <a href="/wiki/hypervisor/virtualbox/virtualbox.html">Virtualbox</a>
48              <span class="divider">›</span>
49              <span class="current">Adding a shared folder in VirtualBox VM</span>
50           </nav>
51           <section class="post-content">
52              <h2>Adding a Shared Folder in VirtualBox VM</h2>
53              <p>This method is tested on Debian 11, but should work on all Debian-based systems.</p>
54              <p>You should have already created a folder on your host system and set it as a shared folder inside the VirtualBox GUI. Now, how do we access the directory from the guest system?</p>
55              <h2>Step-by-Step Guide</h2>
56              <p>Follow these steps to set up a shared folder on your VirtualBox guest system:</p>
57              <ol>
58                 <li>
59                    <strong>Install Required Packages:</strong>
60                    <p>On the guest system, run the following command:</p>
61                    <blockquote>$ sudo apt install lsb-release -y</blockquote>
62                 </li>
63                 <li>
64                    <strong>Add the Backports Repository:</strong>
65                    <p>Run the command to add the backports repository:</p>
66                    <blockquote># echo "deb http://deb.debian.org/debian $(lsb_release -cs)-backports main contrib" | tee /etc/apt/sources.list.d/backports.list</blockquote>
67                 </li>
68                 <li>
69                    <strong>Install the Fasttrack Archive Keyring:</strong>
70                    <p>Install the required keyring to authenticate backports:</p>
71                    <blockquote>$ sudo apt install fasttrack-archive-keyring -y</blockquote>
72                 </li>
73                 <li>
74                    <strong>Update the Package List:</strong>
75                    <p>Update your system's package list:</p>
76                    <blockquote>$ sudo apt update</blockquote>
77                 </li>
78                 <li>
79                    <strong>Install VirtualBox Guest Additions:</strong>
80                    <p>For a Desktop Environment that uses X11, install the following package:</p>
81                    <blockquote>$ sudo apt install virtualbox-guest-x11 -y</blockquote>
82                    <p>If you don't need X11 (e.g., for a headless installation), you can install only the CLI utilities:</p>
83                    <blockquote>$ sudo apt install virtualbox-guest-utils -y</blockquote>
84                 </li>
85              </ol>
86              <h2>Conclusion</h2>
87              <p>Once the required packages are installed, you should be able to access the shared folder from your guest system. This method is simpler than mounting a virtual CD-ROM and should work smoothly on most Debian-based systems.</p>
88           </section>
89           <footer class="post-footer">
90              <a href="/wiki/hypervisor/virtualbox/virtualbox.html" class="cta-button">← Back</a>
91           </footer>
92        </main>
93     </body>
94  </html>