User Tools

Site Tools


operating_systems:apple:virtualbox

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
operating_systems:apple:virtualbox [2015/10/29 10:57] sbolayoperating_systems:apple:virtualbox [2015/10/29 11:30] sbolay
Line 20: Line 20:
 </code> </code>
   - After this installation, you may want to make one more snapshot   - After this installation, you may want to make one more snapshot
 +
 +===== Sharing folders Between Mac and Linux =====
 +  - On your Mac OS X host, get your user id:<code>
 +$ id
 +uid=501(sbolay) gid=20(staff) groups=20(staff),12(everyone),61(localaccounts),66(_uucp),79(_appserverusr),80(admin),81(_appserveradm),98(_lpadmin),399(com.apple.access_ssh),33(_appstore),100(_lpoperator),204(_developer),395(com.apple.access_ftp),398(com.apple.access_screensharing)
 +</code>
 +  - Get your user and group id on Debian<code>
 +sbolay@debian:~$ id
 +uid=1000(sbolay) gid=1000(sbolay) groups=1000(sbolay),24(cdrom),25(floppy),29(audio),30(dip),44(video),46(plugdev),108(netdev),111(scanner),115(bluetooth)
 +</code>
 +  - reboot your VM and at login prompt, press ctrl+cmd F1 and login as root
 +  - Convert the user id on Debian following the Mac one and add the user to the vboxsf group<code>
 +# usermod -u 501 sbolay
 +# usermod -a -G vboxsf sbolay
 +</code>
 +  - Reboot and login
 +  - You can now share your Host folders from Devices -> Shared Folders -> ... (e.g. /Users/sbolay)
 +  - Reboot and you should see your mounted folder in /media/sf_... (e.g. /media/sf_sbolay)
 +
 +<note important>The initial user was >= 1000, and this is necessary to show up in GDM Login Screen.
 +If your new ID is <1000, then your username will not show up in the GDM Login Screen and you will have to follow the link "Not listed?" and write your login!</note>
 +
 +
operating_systems/apple/virtualbox.txt · Last modified: 2015/10/29 11:31 by sbolay