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

Next revision
Previous revision
operating_systems:apple:virtualbox [2015/10/29 09:40] – created sbolayoperating_systems:apple:virtualbox [2015/10/29 11:31] (current) – [Sharing folders Between Mac and Linux] sbolay
Line 5: Line 5:
   - Create a new machine named e.g. "Debian" and run it.   - Create a new machine named e.g. "Debian" and run it.
   - Select the Net Install disk (e.g. debian-8.2.0-amd64-netinst.iso) and start the installation   - Select the Net Install disk (e.g. debian-8.2.0-amd64-netinst.iso) and start the installation
 +  - After the first successful login you may want to make your first snapshot
   - Login to the newly installed debian machine   - Login to the newly installed debian machine
-  - To install the Guest Additions, start a terminal and type :<code bash>+  - To install the Guest Additions, start a terminal and type :<code>
 $ su $ su
 # aptitude update && aptitude safe-upgrade # aptitude update && aptitude safe-upgrade
Line 12: Line 13:
 # m-a prepare # m-a prepare
 </code> </code>
-  - Click on Install Guest Additions… from the Devices menu. This will mount the disk in /media/cdrom and install the Guest Additions:<code bash>+  - Click on Install Guest Additions… from the Devices menu. This will mount the disk in /media/cdrom and install the Guest Additions:<code>
 # sh /media/cdrom/VBoxLinuxAdditions.run # sh /media/cdrom/VBoxLinuxAdditions.run
 </code> </code>
-  - And Finally, reboot your machine:<code bash>+  - And Finally, reboot your machine:<code>
 # reboot # reboot
 </code> </code>
 +  - 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(+fn)+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.1446111634.txt.gz · Last modified: 2015/10/29 09:40 by sbolay