This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
tech:virtualbox:start [2016/11/20 09:29] rk4n3 created |
tech:virtualbox:start [2017/05/02 22:18] (current) rk4n3 |
||
---|---|---|---|
Line 2: | Line 2: | ||
===== Virtual Disk Management ===== | ===== Virtual Disk Management ===== | ||
- | A disk image created with the ''dd'' command like this: \\ ''dd if=/dev/sdx of=dskimg.raw bs=512'' \\ | + | A disk image created with the ''dd'' command like this: ''dd if=/dev/sdx of=dskimg.raw bs=512'' \\ |
... can be converted directly into a VirtualBox VDI ("virtual disk image") with: | ... can be converted directly into a VirtualBox VDI ("virtual disk image") with: | ||
<code>VBoxManage convertdd dskimg.raw yourvmname-sda.vdi --format VDI</code> | <code>VBoxManage convertdd dskimg.raw yourvmname-sda.vdi --format VDI</code> | ||
+ | |||
+ | A raw disk image can also be converted to a KVM qcow2 image: | ||
+ | <code>qemu-img convert -f raw -O qcow2 /path/to/your/hdd/vm01.img /path/to/your/hdd/vm01.qcow2</code> | ||
\\ | \\ | ||
// Links: [[tech:start|Tech Info]] ... [[start|Main]] // | // Links: [[tech:start|Tech Info]] ... [[start|Main]] // | ||