Creating an iso from the virtual machine

12,187

qemu-img might be what you're looking for. You should be able to convert from a vmdk to a raw disk image.

Then copy your raw disk image (using something like dd) to your physical drive.

This might not work as expected; however, there is another way using autoYaST where you can copy the configuration of your current machine and you can then take that config and build another one.

Once the new box is finished then just copy the config files for your programs to it.

Share:
12,187

Related videos on Youtube

Harbir
Author by

Harbir

Updated on September 18, 2022

Comments

  • Harbir
    Harbir over 1 year

    I have openSuse installed as a virtual machine on Oracle Virtual Box, and I have configured some softwares with the way I require. I need to replicate the similar environment on a new Server (NOT the Virtual Machine). I was thinking if its possible to create an iso image from the virtual machine, that can be used as a bootable image for my server? If there is, then how can be achieved? Thanks

    • Alen Milakovic
      Alen Milakovic almost 10 years
      Why not just copy the virtual machine files over?
    • Harbir
      Harbir almost 10 years
      Because, I do not want to start as a virtual machine, I want to build the host with all that software configurations. Can this be done with what you are suggesting?
    • user66773
      user66773 almost 10 years
      This is not officially supported, but I was curious about this as well and found something that will probably work. The tutorial isn't for virtual box, vmware, but I think you can adjust accordingly. Course if you had to you could always install vmware player and migrate it over, then follow the link below. howtoforge.com/converting-a-vmware-image-to-a-physical-machi‌​ne
  • SeyyedKhandon
    SeyyedKhandon over 3 years
    How do you write the whole backup in 1 .iso with rear?
  • tonioc
    tonioc over 3 years
    rear won't write an ISO file, but still can achieve the purpose of clonig the system but OK, that's maybe not the appropriate response if the intended use case is to create a live OS image.
  • SeyyedKhandon
    SeyyedKhandon over 3 years
    Yes it can, I had the problem, and finally the one of core team did a good explanation which is available at unix.stackexchange.com/questions/621749/…
  • Ray Woodcock
    Ray Woodcock over 2 years
    I tried something like this. It did not work. Possibly there is an additional step that would prevent the "Missing partition table" error that I got. See raywoodcockslatest.wordpress.com/2021/08/17/linux-v2p/#EFa