Ops
Search…
Hyper-V
Nanos can run on hyper-v.

Pre-requisites

Hyper-v is only supported on Windows 10 Enterprise, Pro and Education.
You need to enable the next Windows features:
After enabling the required windows features you may be able to manage virtual machines with ops commands from a wsl shell with administrator permissions.

Image Operations

Create Image

1
$ ops image create <elf_file|program> -i <image_name> -t hyper-v
Copied!

List Images

1
$ ops image list -t hyper-v
2
+------+--------------------------------------+---------+----------------+
3
| NAME | PATH | SIZE | CREATEDAT |
4
+------+--------------------------------------+---------+----------------+
5
| main | /home/xyz/.ops/vhdx-images/main.vhdx | 33.6 MB | 21 minutes ago |
6
+------+--------------------------------------+---------+----------------+
Copied!

Delete Image

1
$ ops delete image <image_name> -t hyper-v
Copied!

Instance Operations

Create Instance

1
$ ops instance create <image_name> -t hyper-v
Copied!

List Instances

1
$ ops instance list -t hyper-v
2
+------+---------+----------------+--------------+------+
3
| NAME | STATUS | CREATED | PRIVATE IPS | PORT |
4
+------+---------+----------------+--------------+------+
5
| main | running | 21 minutes ago | 192.168.1.75 | 8080 |
6
+------+--------------------------------------+---------+
Copied!

Delete Instance

1
$ ops instance delete main -t hyper-v
Copied!
Last modified 7mo ago