Docs · Tham chiếu

Tham chiếu cài đặt

Mọi khóa dấu chấm đọc bằng `1vm get` và đổi bằng `1vm set`.

Đị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

KeyNotes
cpuCountVirtual CPUs
memorye.g. 8GiB
diskSizeA ceiling; the disk is sparse
macAddressThe guest's MAC
clipboardSharingBoth directions. Linux needs spice-vdagent; macOS guests cannot
rosettax86 translation in a Linux guest, Virtualization.framework only

Network

KeyNotes
network.modenat, host-only, or bridged:en0
portForwards.adde.g. tcp:2222:22
portForwards.removeSame form

Shared folders

KeyNotes
sharedFolders.addtag=projects path=~/Projects
sharedFolders.removeBy tag

Graphics

KeyNotes
graphics.resolutionGuest display size
graphics.displaysNumber of heads
graphics.hiDPIRetina scaling
graphics.accelerationWhere the engine and guest support it

Input

KeyNotes
input.commandKeyWhat ⌘ sends to the guest
input.optionKeyWhat ⌥ sends
input.translateMacShortcutsMap Mac shortcuts to guest equivalents
input.translateOptionArrowsWord-wise cursor movement
input.captureSystemShortcutsLet the guest take system shortcuts
input.matchHostKeyboardLayoutFollow the Mac's layout
input.keyboardProfileKeyboard model presented to the guest
input.mousePointer device type
input.releaseChordThe keys that release keyboard capture

SSH

KeyNotes
ssh.accessEnable or disable Mac-to-guest SSH
ssh.disableTurn it off
ssh.usersWhich guest users are reachable
ssh.hostPortHost-side port
ssh.aliasName used in ~/.ssh/config
ssh.identity / ssh.identityFileKey selection
ssh.passwordAuthenticationAllow 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.