I generally use raw over qcow because it's faster and easier to use with system tools - kpartx, etc.
The new qcow2 versions are better, but I still prefer raw. Nicholas On 14 January 2015 at 03:38, Nahum Shalman via smartos-discuss < [email protected]> wrote: > On 01/12/2015 04:33 PM, Nicholas Lee via smartos-discuss wrote: > >> [root@node6 /zones/tmp]# time qemu-img convert -f host_device -O raw >> /dev/zvol/rdsk/zones/18dc2771-8be1-4f73-b2eb-6f64df4cbb26-disk0 tmp.raw >> >> real 4m16.370s >> user 0m11.915s >> sys 0m27.237s >> [root@node6 /zones/tmp]# qemu-img info -f raw tmp.raw >> image: tmp.raw >> file format: raw >> virtual size: 40G (42949672960 bytes) >> disk size: 12G >> >> [root@node6 /zones/tmp]# du -sh tmp.raw >> 12G tmp.raw >> >> It's a sparse file so use rsync -S to move the file to your linux node. >> >> > I recommend using the qcow2 format. It's compatible across SmartOS and > Linux hypervisors and is explicitly compact where the raw file is sparse. > > Incidentally, for the people from the "Running Chrome OS on SmartOS" > thread people, I recommend using qemu-img over dd; I'm pretty sure it will > go faster. But if you really want to use dd, at least crank up the block > size to something reasonable (e.g. "bs=128k"). > > -Nahum > > > > ------------------------------------------- > smartos-discuss > Archives: https://www.listbox.com/member/archive/184463/=now > RSS Feed: https://www.listbox.com/member/archive/rss/184463/ > 25241303-ebebecbc > Modify Your Subscription: https://www.listbox.com/ > member/?& > Powered by Listbox: http://www.listbox.com > ------------------------------------------- smartos-discuss Archives: https://www.listbox.com/member/archive/184463/=now RSS Feed: https://www.listbox.com/member/archive/rss/184463/25769125-55cfbc00 Modify Your Subscription: https://www.listbox.com/member/?member_id=25769125&id_secret=25769125-7688e9fb Powered by Listbox: http://www.listbox.com
