###### tags: `computer organization` `hw` `thu` # CO-HW5 TrueNAS installation and setup ## 1. Install Virtualization software and get TrueNAS installed: i.e. 安裝隨便, 上面有寫字。  ## 2. Set network adapter to bridge mode so that Win10 can connect to the web server on it:  注意, 你adapter設成bridge mode後就代表這個虛擬機跟你現在在用的這台電腦在路由器下的地位相同了, 所以你如果是在實驗室或特定環境下測試的話, 請注意跟你的電腦一樣都要設定固定ip: 1. 開機選1: Network Interfaces ip, subnet mask 3. 開機選4: Default route gateway ## 3. Login with the password you set during the installation:   ## 4. Setup the RAID according the tutorial slides:    接下來就是等...  完成之後, 你的Raid形成的Pool就被掛載到你的`/mnt`路徑下了。 ## 5. 接下來就是打開分享並且掛載到目標的電腦上,有三種: ### a. SMB #### 打開Service  #### 設定使用者(登入用)     #### 使用SMB分享你剛建好的磁區   #### 在Win10上掛載   可以看到這個Share的名稱叫jsl,因為是前面SMB分享的時候設定的, 而不是因為使用者名稱。  #### 使用~    ### b. iSCSI #### 打開Service  #### 設定zvol    #### iSCSI設定 點右上角的Wizard      wtf?!     #### 設定Initiator     #### 打開入口      #### Win10掛載     中間隨便,下一步就好。   #### 使用~   ### NFS (Unix) #### 打開服務  #### 設定NFS     #### 於Linux/Unix系統上掛載NFS ##### i. Linux 因為我Linux跟Windows是同一台,我就不開虛擬機做了啊。 (反正老師有教學,虛擬機開下去照著打就好了) ##### ii. macOS(debug地獄) 一樣打mount指令,只是不用像Ubuntu一樣要裝nfs-common。 p.s. 要確認你在同一個區網下,我的VM因為開了bridge mode,所以跟我的筆電都在我家的router下。 ``` mkdir nfs sudo mount -t nfs 192.168.1.4:/mnt/TrueNAS_VirtualBox/jsl nfs ```  但是失敗了,所以我參考了這個網頁的解法: https://www.cyberciti.biz/faq/apple-mac-osx-nfs-mount-command-tutorial/ 但還是失敗了,所以我又找了這個網站的解法: https://www.reddit.com/r/osx/comments/qqbf1t/monterey_and_nfs_mounting/  但又失敗了:  後來我又找到了在Services的Actions的位置的選項:  1. 我把nfs版本強制改成了v4 - 他預設好像是v3,但是我前面的補丁在mac上改成了用v4。 2. 我改了路徑到jsl㡳下(原本只有到TrueNAS_VirtualBox) - 可能是我前面沒有設對。 然後我就成功了...(雖然可能只是因為我路徑沒設對,但現在1點了我超想睡,我現在也不想回去想到㡳哪個才是真正的原因XD)  也可以看到前面步驟建立的'啦啦啦.txt'。 試著新增個檔案看看:  也可以在TrueNAS裡面的shell確認到之前的檔案都有被確實寫入:  ## 結束,謝謝大家 
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up