在virtual box的share folder中创建android source
在virtual box的share folder中创建android source。
过程很简单,但是碰到一个问题,在repo init的时候一直报错“OSError: [Errno 30] Read-only file system”。原因是因为VB为了安全期间禁止在share folder上创建symbol link。通过如下手段fix:
1. 在host machine上找到VBoxManage(osx在/usr/bin下面)
2. 执行VBoxManage setextradata "VM name" VBoxInternal2/SharedFoldersEnableSymlinksCreate/sharename 1
“VM name”是虚拟机的名字
sharename是share folder的名字
重启虚拟机搞定。
参考:
http://www.virtualbox.org/manual/ch04.html#sharedfolders