Creating Bootable Images of Running Ubuntu VMs

cinemafunk

Dabbler
Joined
Oct 22, 2016
Messages
23
I've been doing some testing of Ubuntu server deployments using virtual machines in my Freenas 11.2U7 build. I update some code, re-install a base install of Ubuntu server, run my script, and then desktop the VM.

Instead, I'm thinking I might be able to save sometime by just having a bootable copy of an installed Ubuntu image and copying that each time.

I'm still relatively new do some of these processes, and I'm learning. So please forgive me if the solution is obvious.


I create a new zvol and add it as a device to the VM and boot it.
When I attempt to run sudo dd if=/dev/sda2 of=/dev/sdb1/ and I get various errors that the directory doesn't exist.

I've also tried to use Clonezilla, however the process seems to work because it's expecting a USB device.

So any advice would be appreciated.
 
Top