Convert disk to raw after creating vm with virtualbox builder

Hello,

Is-it possible to convert disk to raw after creating vm with virtualbox builder ?
Do we have a variable with the full path to the disk file ?

I would like to do something like:

post-processor "shell-local" {                                                                    
    inline: ["VBoxManage clonehd --format raw PATH test.raw"]                 
  }

Thanks.

By setting the output_directory and output_filename, you can control the output path so that you can use it later.

If you don’t want to do that, you can use the manifest postprocessor, which will print out your final artifacts. You can read the manifest using jq or another json parsing tool.