Machine definition JSON file ہے جو براہِ راست پڑھ سکتے ہیں، اور ہر setting
کا dotted key ہے۔
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
Settings set کرتے وقت validate ہوتے ہیں، boot پر نہیں — invalid value فوری
fail reason کے ساتھ، 3am start پر نہیں۔ Engine running machine پر live
change support کرے تو apply live؛ ورنہ next boot۔ Running machine پر hardware
changes refuse unless setting explicitly کہے۔
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 |
Unavailable settings پر نوٹ
Mac یا chosen engine support نہ کرے options visible اور disabled with a
reason رہتے ہیں، disappear نہیں۔ غائب option کچھ نہیں سikhاتا؛ وضاحت
والا بتاتا ہے different engine یا newer Mac جواب بدل دے گا۔