Other:macOS下使用Proxmox VE中內建的SPICE功能

brew安裝virt-viewer

brew tap jeffreywildman/homebrew-virt-manager
brew install virt-viewer

到Download資料夾跑剛下載好的vv檔(要快)

remote-viewer pve-spice.vv

第一次跑因為x86程式的關係會編譯比較久(七彩球會轉不停)
virt-viewer跳出需要密碼就代表已超過vv檔使用時效

### 設定雙擊vv檔執行virt-viewer
- 打開macOS應用程式中的Automator選擇"應用程式"後搜尋"shell"拖拉"執行Shell工序指令"至右邊工作流程的內容
- 打開macOS內建的終端機輸入

which remote-viewer

- 返回路徑 /opt/homebrew/bin/remote-viewer 後輸入至"執行Shell工序指令"的內容

/opt/homebrew/bin/remote-viewer "$@"

- 將傳導輸入切換至"作為引數使用"後將此Shell工序指令儲存為pve-spice-launcher,位置:應用程式;檔案格式:應用程式
- 於下載的pve-spice.vv檔右鍵選擇取得資訊,於資訊窗口中"打開檔案的應用程式"下選擇pve-spice-launcher並套用"全部更改"
- 自此雙擊pve-spice.vv檔即可開啟virt-viewer
### 設定Chrome自動執行vv檔
- 下載檔案後在Chrome的近期下載紀錄中右鍵pve-spice.vv選擇"一律開啟這類檔案"
### 設定Firefox自動執行vv檔
- 在Firefox設定中"一般","應用程式"區塊下Firefox應如何處理其他檔案?選擇"詢問要直接開啟還是儲存檔案" (接下的步驟不再贅述)

#### 參考資料
https://gist.github.com/tomdaley92/789688fc68e77477d468f7b9e59af51c
https://ravada.readthedocs.io/en/latest/docs/mac_clients.html

阅读剩余
THE END