2022-08-09 16:55:54 +00:00
## d2vm convert
Convert Docker image to vm image
```
d2vm convert [docker image] [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)
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 convert
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
2022-08-09 16:55:54 +00:00
--pull Always pull docker image
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 ) -