intial commit
This commit is contained in:
19
test.py
Normal file
19
test.py
Normal file
@@ -0,0 +1,19 @@
|
||||
from asyncio import run
|
||||
from pathlib import Path
|
||||
|
||||
from pyvmm.machine_model import load_from_yaml
|
||||
from pyvmm.image_manager import ensure_image_present
|
||||
from pyvmm.context import VmmContext
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
from pprint import pprint
|
||||
|
||||
with open('example-vm.yaml') as f:
|
||||
vms = load_from_yaml(f)
|
||||
pprint(vms)
|
||||
|
||||
print()
|
||||
|
||||
ctx = VmmContext(vmm_root=Path('./.vmm'), vmm_spec=vms, native_arch='x86_64')
|
||||
run(ensure_image_present(vms.images[0], ctx))
|
||||
Reference in New Issue
Block a user