Cacomania: tag

Cacomania

Use a QEMU qcow2 hard disk image with VirtualBox

Guido Krömer - 1772 days ago - Tags: , , ,

Last week I had to use an existing virtual machine on my local computer, which is a mac. The origin host machine was running Linux with KVM for visualization. The disk image format is qcow2, which is the default format in QEMU and not supported by VirtualBox. But the qemu-img tool can convert a qcow2 image to VirtualBox’s vdi format.

# qemu-img convert -O vdi vda.img vda.vdi

After converting the format, the new disk image, named “vda.vdi”, can be used with VirtualBox.

Comment

Creating a iso image with dd and Mac OS X

Guido Krömer - 1785 days ago - Tags: ,

Thank god, dd works on Mac OS X, too. Just login as root unmount the eventually automounted disc and use dd as usual.

[caco@MacBook-Air ~]# sudo -s
Password:
[root@MacBook-Air ~]# mount
/dev/disk1 on / (hfs, local, journaled)
devfs on /dev (devfs, local, nobrowse)
map -hosts on /net (autofs, nosuid, automounted, nobrowse)
map auto_home on /home (autofs, automounted, nobrowse)
/dev/disk2s0 on /Volumes/XP_PRO_SP3 (cd9660, local, nodev, nosuid, read-only, noowners)
[root@MacBook-Air ~]# umount /dev/disk2s0
[root@MacBook-Air ~]# dd if=/dev/disk2s0 of=Documents/MY_IMAGE.iso

Comment