I'm trying to convert .iso
-image to lvm
(https://docs.openstack.org/image-guide/convert-images.html) with golang
func (c *ImageHandler) ConvertTempImageToLVM() error {
cmd := exec.Command("qemu-img", "convert", c.ImagePath, "-O", "raw", c.LVMPath)
_, err := cmd.CombinedOutput()
if err != nil {
return fmt.Errorf("'qemu-img resize' output: %s", err)
}
return err
}
And I didn't find any qemu-libraries in github. Maybe I wrong
I need a solution how can I resize and convert .iso
images without using exec.Command()
??