Docs · حوالہ

VM bundle

Machine ایک folder ہے۔ اندر کیا ہے، copy کرنا کیا safe ہے، اور commit کیا کریں۔

1VMTool machine database row یا opaque blob نہیں — .vm extension والا directory جو inspect، copy اور move کر سکتے ہیں۔

dev.vm/
  config.json         the definition — commit it
  disk.asif           primary disk, sparse
  snapshots/
    index.json
    a1c2/disk.asif

Default میں machines home directory library folder میں۔ ONEVM_HOME کہیں اور point کریں — external SSD — پوری library move۔

config.json

Machine definition: guest type، engine، CPU، memory، disk، network، shared folders، input اور graphics settings۔ Plain JSON، version control میں commit کریں اگر project alongside machine definition چاہیے۔

1vm config dev          # print it
1vm get dev             # list every dotted key

Definition disk سے الگ، colleague کو machine shape share کرنا kilobytes۔ وہ 1vm create چلا کر own guest install۔

The disk

Sparse — guest writes پر grow، upfront allocate نہیں — 256 GiB disk جس نے 9 GiB لکھا ~9 GiB occupy۔ File name engine formats مختلف؛ 1vm du library numbers honest report۔

Snapshots

snapshots/ tree۔ ہر snapshot APFS clone live disk blocks share جب تک diverge، fresh snapshot almost nothing add، du allocated on disk reclaimable distinguish۔

Copying a machine

Folder copy works — prefer 1vm clone same clone primitive instant bytes duplicate نہیں:

1vm clone dev test              # linked, shares blocks
1vm clone dev test --full       # independent copy
1vm archive dev                 # compress a stopped machine; run again to restore

Do not edit a running machine's files

Settings 1vm set سے validate live where engine support۔ Running machine config.json edit host guest disagree machine definition۔