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

7,454

Solution 1

$ 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

Solution 2

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.

Share:
7,454

Related videos on Youtube

Andrey
Author by

Andrey

Updated on September 18, 2022

Comments

  • Andrey
    Andrey almost 2 years

    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
    
  • Adam Erickson
    Adam Erickson about 5 years
    Except it is missing the -e flag for EFI
  • Nicolae Olariu
    Nicolae Olariu over 2 years
    5 years later, thank you for this!!
  • Carl Winbäck
    Carl Winbäck about 2 years
    Just wanted to say that I recently tried this method and it works perfectly. Thank you!