Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
vms:python:django [2015/08/07 17:11]
admin [Using a Shared Folder to Host your Projects]
vms:python:django [2017/04/14 01:05] (current)
admin [Using a Shared Folder to Host your Projects]
Line 25: Line 25:
 ----- -----
 ===== Debian VM ===== ===== Debian VM =====
-We'll start with a [[debian|Debian template]].\\+We'll start with a [[..:debian|Debian template]].\\
 Then: Then:
 <​code>​ <​code>​
Line 59: Line 59:
 > nano /​etc/​hostname > nano /​etc/​hostname
 > nano /etc/hosts > nano /etc/hosts
-> reboot 
 </​code>​ </​code>​
  
Line 76: Line 75:
  
 === Put your public rsa key for login === === Put your public rsa key for login ===
-(From your workstation)+(From the host system)
 <​code>​ <​code>​
 > ssh-copy-id -i root@<​host.ip.address>​ > ssh-copy-id -i root@<​host.ip.address>​
 </​code>​ </​code>​
  
-=== Upgrade system & install ​sudo ===+You might want to reboot the VM at this point and login through a terminal instead of using the VirtualBox restricted screen. 
 + 
 +=== Install ​sudo ===
 As root: As root:
 <​code>​ <​code>​
-> apt-get update 
-> apt-get upgrade 
 > apt-get install sudo > apt-get install sudo
 </​code>​ </​code>​
Line 166: Line 165:
 === Creating a shared folder for your development environment === === Creating a shared folder for your development environment ===
 ----- -----
-You have to create a **shared folder** for your VM, then "​prepare"​ it for correct symlinks operations from your **host** computer command line:\\ +You have to create a **shared folder** for your VM, then "​prepare"​ it for correct symlinks operations from your **host** computer command line: See [[vms:​webdev:​apache#​create_the_shared_www_folders|Create VirtualBox shared folder]] in this wiki.
-[[http://​wiki.strategicz.com/​vhyper/​doku.php?​id=vms:​webdev:​apache#​create_the_shared_www_folders]]+
  
 Test-mount your shared folder: Test-mount your shared folder:
Line 190: Line 188:
 > sudo mount -a > sudo mount -a
 </​code>​ </​code>​
 +
 +<WRAP center round tip 100%>
 +If the system crashes at boot time, you probably need to have the ''​vboxsf''​ module to be loaded early, before the mounting of file systems.
 +Simply add a line containing ''​vboxsf''​ to ''/​etc/​modules''​ and reboot, this should fix the problem.
 +
 +Another solution is to set ''​noauto''​ in ''/​etc/​fstab''​ and manually mount drives in ''/​etc/​rc.local'',​ but other services are launched beforehand...
 +</​WRAP>​
 +
  
 <WRAP center round important>​ <WRAP center round important>​