Định nghĩa máy là file JSON đọc trực tiếp được, và mỗi cài đặt có khóa dấu
chấm.
1vm config dev # the whole definition
1vm get dev # list every available key
1vm get dev network.mode # read one
1vm set dev network.mode nat
Cài đặt được xác thực khi đặt, không phải lúc boot — giá trị không hợp lệ
fail ngay kèm lý do thay vì lúc 3 giờ sáng khi start. Nơi engine hỗ trợ đổi
trên máy đang chạy thì áp dụng live; không thì lần boot sau. Thay đổi phần
cứng trên máy đang chạy bị từ chối trừ khi cài đặt nói rõ.
Machine
| Key | Notes |
|---|
cpuCount | Virtual CPUs |
memory | e.g. 8GiB |
diskSize | A ceiling; the disk is sparse |
macAddress | The guest's MAC |
clipboardSharing | Both directions. Linux needs spice-vdagent; macOS guests cannot |
rosetta | x86 translation in a Linux guest, Virtualization.framework only |
Network
| Key | Notes |
|---|
network.mode | nat, host-only, or bridged:en0 |
portForwards.add | e.g. tcp:2222:22 |
portForwards.remove | Same form |
Shared folders
| Key | Notes |
|---|
sharedFolders.add | tag=projects path=~/Projects |
sharedFolders.remove | By tag |
Graphics
| Key | Notes |
|---|
graphics.resolution | Guest display size |
graphics.displays | Number of heads |
graphics.hiDPI | Retina scaling |
graphics.acceleration | Where the engine and guest support it |
Input
| Key | Notes |
|---|
input.commandKey | What ⌘ sends to the guest |
input.optionKey | What ⌥ sends |
input.translateMacShortcuts | Map Mac shortcuts to guest equivalents |
input.translateOptionArrows | Word-wise cursor movement |
input.captureSystemShortcuts | Let the guest take system shortcuts |
input.matchHostKeyboardLayout | Follow the Mac's layout |
input.keyboardProfile | Keyboard model presented to the guest |
input.mouse | Pointer device type |
input.releaseChord | The keys that release keyboard capture |
SSH
| Key | Notes |
|---|
ssh.access | Enable or disable Mac-to-guest SSH |
ssh.disable | Turn it off |
ssh.users | Which guest users are reachable |
ssh.hostPort | Host-side port |
ssh.alias | Name used in ~/.ssh/config |
ssh.identity / ssh.identityFile | Key selection |
ssh.passwordAuthentication | Allow password auth |
Ghi chú về cài đặt unavailable
Tùy chọn Mac hoặc engine đã chọn không hỗ trợ vẫn hiện và bị vô hiệu kèm
lý do thay vì biến mất. Tùy chọn biến mất không dạy gì; tùy chọn giải thích
cho biết engine khác hoặc Mac mới có đổi câu trả lời không.