[new feature] Virtualize real machine
Bug #783062 reported by
Abbakus
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Virtualbricks |
Opinion
|
Wishlist
|
Abbakus |
Bug Description
Virtualize the currently running machine giving the possibility to create destination image on a remote location to avoid the need for local space on a different device to host destination file.
Changed in virtualbrick: | |
milestone: | 0.5 → none |
Changed in virtualbrick: | |
status: | New → Opinion |
milestone: | none → 1.1 |
To post a comment you must log in.
First solution (quick and dirty) to/different/ device/ image.raw bs=1024 conv=notrunc, noerror different/ device/ image.raw /local/ machine/ image.qcow2 different/ device/ image.raw
--------------
dd if=/dev/deviceN of=/path/
qemu-img convert -c -f raw -O qcow2 /path/to/
rm /path/to/
-------> ~Duplicate time and temporary space. A different local device is needed.
Second solution noerror& different/ device/ image.qcow2
--------------
mkfifo /tmp/tempfifo
dd if=/dev/deviceN of=/tmp/tempfifo bs=1024 conv=notrunc,
qemu-img convert -c -f raw -O qcow2 /tmp/tempfifo /path/to/
rm /tmp/tempfifo
---------> Does not work, qemu-img does not support fifo :-(
Third solution different/ device/ image.qcow2 noerror
--------------
modprobe nbd
qemu-nbd -c /dev/nbd0 /path/to/
partprobe /dev/nbd0
dd if=/dev/deviceN of=/dev/nbd0 conv=notrunc,
qemu-nbd -d /dev/nbd0
----> Works but is pretty slow and nbd module is needed. No duplicate space to obtain qcow2 format.
Fifth solution noerror| gzip|ssh remoteuser@ remotemachine "cut - | gunzip | dd of=/path/ to/image/ image.raw bs=2048 conv=notrunc, noerror"
--------------
dd if=/dev/deviceN bs=2048 conv=notrunc,
------> Slow but a different local device is not needed. I tried this one and works pretty good :)
Sixth solution
---------
combination of solutions above (especially Fourth and Fifth)
--------