
osx 호스트에서 실행되는 VirtualBox 우분투 게스트가 있습니다. 웹을 검색하여 비슷한 문제에 대한 솔루션을 구현했지만 문제를 해결하는 데 도움이 된 것은 없습니다.
휴대폰을 연결하면 우분투가 자동으로 장치를 마운트합니다. USB 드라이브(Kanguru SS3 32GB)를 연결하면 드라이브가 마운트되지 않습니다. VM 설정에 하나의 프로세서만 사용하고 있습니다. VirtualBox에는 "USB 장치" 메뉴에서 사용 가능한 장치가 선택되어 있지만 /media/ 폴더가 비어 있고 드라이브가 자동 마운트되지 않습니다.
그래서 지금은 무엇을 해야할지 모르겠습니다. 과도한 것 같지만 VirtualBox를 제거/다시 설치해야 합니까? 게스트 OS가 하나의 USB 장치를 마운트하고 다른 하나는 마운트하지 않는 이유는 무엇입니까?
답변1
Ubuntu가 게스트 추가 USB 처리기의 파일 시스템 유형이나 제한 사항 외에 하나의 USB와 다른 USB를 비교하는 이유가 확실하지 않습니다.
제가 사용하는 솔루션은 USB 드라이브(또는 파티션)를 OSX 볼륨으로 마운트한 다음 VirtualBox를 통해 Ubuntu에서 액세스하는 것입니다. 즉, USB 드라이브를 Ubuntu에 직접 장착하는 것과 비교하면 약간 우회적입니다. 그러나 이 접근 방식에는 추가 이점이 있습니다. OSX와 Ubuntu 모두 동일한 드라이브를 볼 수 있으며 이를 사용하여 호스트와 게스트 간에 데이터를 쉽게 공유할 수 있습니다.
Ubuntu 및 OSX에서 USB 파티션을 자주 사용하는 경우 파티션을 대소문자를 구분해야 합니다. 선택적인 보너스는 파티션을 암호화하는 것입니다.
단계:
OSX: Mount the partition normally in Finder.
OSX typically automounts a USB drive to /Volumes ... Example: /Volumes/MyUsbPartition.
See also: http://osxdaily.com/2013/05/13/mount-unmount-drives-from-the-command-line-in-mac-os-x/
OSX: Share that volume via VirtualBox Manager
Open VirtualBox
Add '/Volumes/MyUsbPartition' as a ShareFolder (with full access).
I enable "Auto Mount" and "Make Permanent" but if only mounting it termporarily, don't make it permanent.
This means the "shared folder" will appear automatically in Ubuntu as /media/sf_MyUsbOsxPartition (permissions: user:root, group:vboxsf).
NOTE: Requires "Guest Extensions". See selected answer for http://askubuntu.com/questions/22743/how-do-i-install-guest-additions-in-a-virtualbox-vm
Summary: Ubuntu APT install virtualbox-guest-additions-iso (places ISO in /usr/share/virtualbox).
Mount this as a CD (sudo mount /usr/share/virtualbox/VBoxGuestAdditions.iso /mnt)
Run the install (./VBoxLinuxAdditions.run)
Ubuntu:
Login as your normal user (example: "MySelf")
Add user to the vboxsf group (usermod -aG vboxsf MySelf; # Or edit /etc/groups directly)
Only need to do this once since will remain for future cases
이 시점에서 드라이브는 OSX 또는 Ubuntu에서 직접 액세스할 수 있습니다.
단점은 VirtualBox에서 공유 폴더로 추가하는 추가 단계입니다. 이것은 일반적으로 내 사용 사례에서 심각한 단점은 아니지만 마일리지가 다를 수 있습니다.