[精讚] [會員登入]
1352

使用virtualbox每次都忘記的事情

share folder from win host to linux guest vm

分享此文連結 //n.sfs.tw/12647

分享連結 使用virtualbox每次都忘記的事情@外行中的外行
(文章歡迎轉載,務必尊重版權註明連結來源)
2019-10-23 15:57:46 最後編修
2018-08-23 23:12:55 By jung
 

很久沒發文,就是為了要把這件每次都忘記的事記下來!!!

由於bitvise不知為何在我的win10 home edition當掉了@@

只好回到putty+filezilla,可是一個很大的問題,filezilla讀不到我在linux下編譯後要上傳遠端主機的檔案等等

於是samba不管用,又回到virtualbox的share folder機制

然後,在windows host分享了資料夾給ubuntu vm如果你沒做這個動作就悲劇了,資料夾在linux guest vm裡就是沒有存取權限,看得到吃不到GG

想了好久,每次裝linux vm一定要做的事,就是:

sudo usermod -aG vboxsf $(whoami)

然後登出再登入,或reboot

就是為了把linux一般使用者加入wheel管理權

一定要記得做,切記!

 

在ubuntu host則是要用

sudo usermod -aG vboxusers $USER

如果是要讓虛擬機存取host端的vmdk等虛擬硬碟檔案,要再做

sudo usermod -aG disk $USER

 

END

你可能感興趣的文章

使用letsEncrypt替換docker容器內的nginx https憑證 using cerbot for nginx on oracle linux 9

在intellij IDEA解決檔案內容顯示為UTF-8字碼而不是中文的問題 how to show correct language content of file, instead of utf-8 encoded charactors

how to stop wildfly keeping standalone server log how to stop wildfly keeping standalone server log

testing gitlab and jenkins CI/CD on docker-1 在docker架設gitlab, jenkins 測試CI/CD pipeline第一章

openssl package update issue caused by cve-2022-2068 centos7 is at maintenance support phase2, only critical impact security issues will be patched

如何用git log功能產生有固定格式的commit紀錄 how to create a git commit history log file with custom format

隨機好文

proxmox5.x using duplicati as cloud backup strategy install duplicati program on Proxmox host for remote backup using google drive account

如何在ubuntu 18.04上設定一開機就啟動virtualbox某個vm a way to setup ubuntu18.04 for start vm on boot

在ubuntu18.04桌面版安裝中文注音輸入法 如何在ubuntu桌面使用新酷音注音輸入法

how to add physical disks into HP smart array through esxi interface 如何在磁碟陣列卡上加入新的硬碟-未完待續

testing gitlab and jenkins CI/CD on docker-1 在docker架設gitlab, jenkins 測試CI/CD pipeline第一章