OS X equivalents for Ubuntu's genisoimage and qemu-img

How do I achieve the same result on OS X 10.9 as I do on Ubuntu with commands:

$ genisoimage -output init.iso -volid cidata -joliet -rock user-data meta-data

and

$ qemu-img convert -O raw disk.img disk.img.raw

$ hdiutil makehybrid -o init.iso -hfs -joliet -iso -default-volume-name cidata config/

Where config/ contains meta-data and user-data.

To install qemu, simply run the following from the command-line:

$ brew install qemu

I had to this exact same thing for generating a local cloud init setup.

mkisofs is a drop in replacement for genisoimage from what I can tell.

mkisofs -output init.iso -volid cidata -joliet -rock {user-data,meta-data}

You can brew install cdrtools which includes mkisofs.