2022-08-09 16:55:54 +00:00
## d2vm build
Build a vm image from Dockerfile
```
d2vm build [context directory] [flags]
```
### Options
```
--append-to-cmdline string Extra kernel cmdline arguments to append to the generated one
2023-02-22 16:26:32 +00:00
--boot-size uint Size of the boot partition in MB (default 100)
2022-08-09 16:55:54 +00:00
--build-arg stringArray Set build-time variables
-f, --file string Name of the Dockerfile
2023-02-15 10:06:52 +00:00
--force Override output qcow2 image
2022-08-09 16:55:54 +00:00
-h, --help help for build
2023-02-28 11:02:57 +00:00
--keep-cache Keep the images after the build
2023-02-23 14:02:12 +00:00
--luks-password string Password to use for the LUKS encrypted root partition. If not set, the root partition will not be encrypted
2022-08-09 16:55:54 +00:00
--network-manager string Network manager to use for the image: none, netplan, ifupdown
-o, --output string The output image, the extension determine the image format, raw will be used if none. Supported formats: qcow2 qed raw vdi vhd vmdk (default "disk0.qcow2")
2022-09-12 09:21:45 +00:00
-p, --password string Optional root user password
2023-02-15 10:06:52 +00:00
--push Push the container disk image to the registry
2022-09-06 16:49:30 +00:00
--raw Just convert the container to virtual machine image without installing anything more
2022-08-09 16:55:54 +00:00
-s, --size string The output image size (default "10G")
2023-02-22 16:26:32 +00:00
--split-boot Split the boot partition from the root partition
2023-02-15 10:06:52 +00:00
-t, --tag string Container disk Docker image tag
2022-08-09 16:55:54 +00:00
```
### Options inherited from parent commands
```
2023-02-15 10:06:52 +00:00
--time string Enable formated timed output, valide formats: 'relative (rel | r)', 'full (f)' (default "none")
2022-09-10 10:17:08 +00:00
-v, --verbose Enable Verbose output
2022-08-09 16:55:54 +00:00
```
### SEE ALSO
* [d2vm ](d2vm.md ) -