Merge pull request #27989 from geekpi/translating

translated
This commit is contained in:
geekpi 2022-11-23 08:40:04 +08:00 committed by GitHub
commit 58bb78c608
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 108 additions and 108 deletions

View File

@ -1,108 +0,0 @@
[#]: subject: "How to Enable and Access USB Drive in VirtualBox"
[#]: via: "https://www.debugpoint.com/enable-usb-virtualbox/"
[#]: author: "Arindam https://www.debugpoint.com/author/admin1/"
[#]: collector: "lkxed"
[#]: translator: "geekpi"
[#]: reviewer: " "
[#]: publisher: " "
[#]: url: " "
How to Enable and Access USB Drive in VirtualBox
======
Heres a precise guide on how you can enable USB in Oracle VirtualBox.
![][1]
When you work in a Virtual machine environment, the USB is usually plugged into the host system. But it is a little difficult to access that USB content from the guest system.
In VirtualBox, you need to install some extensions and enable some settings to access USB in. Heres how.
This article assumes that you have already installed VirtualBox and also installed some Linux distribution or operating system inside it.
If not, check out the [articles here][2].
### Enable USB in VirtualBox 7.0
#### Install VirtualBox Extension Pack
* Open the VirtualBox download page and download the VirtualBox Extension pack for all supported platforms using [this link][3].
![Download the extension pack][4]
* Then Click on `File > Tools > Extension Pack Manager.`
* Click on the `Install` button in the toolbar and select the downloaded .vbox-extpak file.
* Hit `Install`. Accept the terms, and give the admin password for the installation.
![install extension pack manager][5]
![install extension pack manager after accepting terms][6]
* After successful installation, you can see it in the installed list.
* Restart your host system. Restarting is mandatory.
#### Enable USB in the guest box
* Plugin the USB stick into your host system which you want to access from the guest virtual machine.
* Start VirtualBox and right-click on the VM name where you want to enable USB. Select Settings.
![Launch settings for the virtual machine][7]
* On the left pane, click on USB. Then select the controller version. For example, you can select USB 3.0. Then click on the small plus icon to add a USB filter.
* In this list, you should see your USB stick name (which you plugged in). For this example, I can see my Transcend Jetflash drive, which I plugged in.
* Select it and press OK.
![Select the USB stick][8]
* Now, start your virtual machine. Open the file manager, and you should see the USB is enabled and mounted on your virtual machine.
* In this demonstration, you can see the Thunar file manager of my [Arch-Xfce][9] virtual machine is showing the contents of my USB stick.
![Enabling USB and accessing contents from VirtualBox][10]
### Usage notes
Now, here are a couple of things you should remember.
* When you plug in the USB in the host system, keep it mounted. But do not open or access any file before launching the virtual machine.
* Once you start your virtual machine, the USB will be unmounted in the host system and auto-mounted in the guest system, i.e. your virtual machine.
* After you finish with a USB stick, ensure to eject or unmount it inside a virtual machine. Then it will be accessible again inside your host system.
### Wrapping Up
VirtualBox is a powerful utility and provides easy-to-use features to extensively set up your Virtual Machines. The steps are straightforward, and make sure your USB stick is detected properly in the host system to work.
Also, remember that USB stick detection via extension pack is not related to VirtualBox guest addition. They are completely unrelated and provide separate functions.
Finally, let me know if this guide helps you in the comment box.
--------------------------------------------------------------------------------
via: https://www.debugpoint.com/enable-usb-virtualbox/
作者:[Arindam][a]
选题:[lkxed][b]
译者:[CoWave-Fall](https://github.com/CoWave-Fall)
校对:[校对者ID](https://github.com/校对者ID)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出
[a]: https://www.debugpoint.com/author/admin1/
[b]: https://github.com/lkxed
[1]: https://www.debugpoint.com/wp-content/uploads/2022/10/usb-vbox-1024x576.jpg
[2]: https://www.debugpoint.com/tag/virtualbox
[3]: https://www.virtualbox.org/wiki/Downloads
[4]: https://www.debugpoint.com/wp-content/uploads/2022/10/Download-the-extension-pack.jpg
[5]: https://www.debugpoint.com/wp-content/uploads/2022/10/install-extension-pack-manager.jpg
[6]: https://www.debugpoint.com/wp-content/uploads/2022/10/install-extension-pack-manager-after-accepting-terms.jpg
[7]: https://www.debugpoint.com/wp-content/uploads/2022/10/Launch-settings-for-the-virtual-machine.jpg
[8]: https://www.debugpoint.com/wp-content/uploads/2022/10/Select-the-USB-stick.jpg
[9]: https://www.debugpoint.com/xfce-arch-linux-install-4-16/
[10]: https://www.debugpoint.com/wp-content/uploads/2022/10/Enabling-USB-and-accessing-contents-from-VirtualBox.jpg

View File

@ -0,0 +1,108 @@
[#]: subject: "How to Enable and Access USB Drive in VirtualBox"
[#]: via: "https://www.debugpoint.com/enable-usb-virtualbox/"
[#]: author: "Arindam https://www.debugpoint.com/author/admin1/"
[#]: collector: "lkxed"
[#]: translator: "geekpi"
[#]: reviewer: " "
[#]: publisher: " "
[#]: url: " "
如何在 VirtualBox 中启用和访问 USB 驱动器
======
这是有关如何在 Oracle VirtualBox 中启用 USB 的指南。
![][1]
当你在虚拟机环境中工作时USB 通常插入主机系统。但是从访客系统访问 USB 内容有点困难。
在 VirtualBox 中,你需要安装一些扩展并启用一些设置才能访问 USB。方法如下。
本文假设你已经安装了 VirtualBox并且还在其中安装了一些 Linux 发行版或操作系统。
如果没有,请查看[此处的文章][2]。
### 在 VirtualBox 7.0 中启用 USB
#### 安装 VirtualBox 扩展包
* 打开 VirtualBox 下载页面并从[此链接][3]下载适用于所有支持平台的 VirtualBox 扩展包。
![下载扩展包][4]
* 然后单击 `文件 > 工具 > 扩展包管理器`
* 单击工具栏中的`安装`按钮并选择下载的 .vbox-extpak 文件。
* 点击`安装`。接受条款,并为安装提供管理员密码。
![安装扩展包管理器][5]
![接受条款后安装扩展包管理器][6]
* 安装成功后,可以在已安装列表中看到。
* 重启主机系统。重启是强制性的。
#### 在客户机中启用 USB
* 将 U 盘插入你的宿主机系统,你希望从虚拟机中访问该系统。
* 启动 VirtualBox 并右键单击要启用 USB 的 VM 名称。选择设置。
![虚拟机的启动设置][7]
* 在左窗格中,单击 USB。然后选择控制器版本。例如你可以选择 USB 3.0。然后单击小加号图标添加 USB 过滤器。
* 在此列表中,你应该看到你的 U 盘名称(你插入的)。对于这个例子,我可以看到我插入的 Transcend Jetflash 驱动器。
* 选择它并按 OK。
![选择 U 盘][8]
* 现在,启动你的虚拟机。打开文件管理器,你应该会看到 USB 已启用并挂载到你的虚拟机上。
* 在此演示中,你可以看到我的 [Arch-Xfce][9] 虚拟机的 Thunar 文件管理器正在显示我的 U 盘中的内容。
![启用 USB 并从 VirtualBox 访问内容][10]
### 使用说明
现在,这里有几件事你应该记住。
* 当你在主机系统中插入 USB 时,请保持挂载状态。但在启动虚拟机之前不要打开或访问任何文件。
* 启动虚拟机后USB 将在主机系统中卸载并自动挂载到客户机系统中,即你的虚拟机。
* 使用完 U 盘后,确保在虚拟机中将其弹出或卸载。然后它将能再从你的宿主机系统内访问。
### 总结
VirtualBox 是一个功能强大的程序,提供易于使用的功能来设置的你虚拟机。这些步骤很简单,并确保你的 U 盘在主机系统中被正确检测到以正常工作。
另外,请记住,通过扩展包检测 U 盘与 VirtualBox 客户端增强包无关。它们完全不相关并提供独立的功能。
最后,如果本指南对你有帮助,请在评论栏中告诉我。
--------------------------------------------------------------------------------
via: https://www.debugpoint.com/enable-usb-virtualbox/
作者:[Arindam][a]
选题:[lkxed][b]
译者:[geekpi](https://github.com/geekpi)
校对:[校对者ID](https://github.com/校对者ID)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出
[a]: https://www.debugpoint.com/author/admin1/
[b]: https://github.com/lkxed
[1]: https://www.debugpoint.com/wp-content/uploads/2022/10/usb-vbox-1024x576.jpg
[2]: https://www.debugpoint.com/tag/virtualbox
[3]: https://www.virtualbox.org/wiki/Downloads
[4]: https://www.debugpoint.com/wp-content/uploads/2022/10/Download-the-extension-pack.jpg
[5]: https://www.debugpoint.com/wp-content/uploads/2022/10/install-extension-pack-manager.jpg
[6]: https://www.debugpoint.com/wp-content/uploads/2022/10/install-extension-pack-manager-after-accepting-terms.jpg
[7]: https://www.debugpoint.com/wp-content/uploads/2022/10/Launch-settings-for-the-virtual-machine.jpg
[8]: https://www.debugpoint.com/wp-content/uploads/2022/10/Select-the-USB-stick.jpg
[9]: https://www.debugpoint.com/xfce-arch-linux-install-4-16/
[10]: https://www.debugpoint.com/wp-content/uploads/2022/10/Enabling-USB-and-accessing-contents-from-VirtualBox.jpg