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
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.
You could consider using Relax and Recover full backup software which is available for Suse.
- install it on the VM,
- perform your full backup on a removable device (USB stick, disk)
- boot on this device to restore it to your server.
I would use VBoxManage clonehd file.vdi output.iso --format RAW or similar. Then it sould be a matter of just making sure the bootflag is set on the media you used for the iso.