簡體   English   中英

將參數傳遞給VirtualBox MacOS終端

[英]Passing Arguments to VirtualBox MacOS Terminal

嘗試將一些參數傳遞到MacOS VirtualBox VM上的終端(來自Windows 10主機)。 我可以讓終端正確啟動,但參數不起作用。

"C:\\Program Files\\Oracle\\VirtualBox\\VBoxManage.exe" guestcontrol "MacOS High Sierra New" run "/Applications/Utilities/Terminal.app/Contents/MacOS/Terminal" --username justin --password password --wait-stdout --"/c echo test"

我錯過了一面旗幟嗎? 另外,如果有更好的方法在VM中運行shell命令,我會全力以赴。 謝謝!

經過大約8個小時嘗試不同的事情后,終於讓它工作了:

VBoxManage guestcontrol "vmname" run /bin/sh --username usr --password pass --verbose --wait-stdout --wait-stderr -- -c "echo test"

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM