Convert Ubuntu Core image to bootable ISO












0















A VPS provider offers its users the ability to install and run any distribution, provided that you upload a bootable ISO image.



I'd like to run Ubuntu Core, however I haven't found a way to convert the images that Canonical provides to a bootable ISO.



qemu-img reports that the image is in raw format:



[chb]$ qemu-img info ubuntu-core-18-amd64.img
image: ubuntu-core-18-amd64.img
file format: raw
virtual size: 3.6G (3879731200 bytes)
disk size: 302M


I can use VirtualBox's VBoxManage tool to convert this "raw" image to a virtual disk that VirtualBox will recognize and boot:



VBoxManage convertfromraw ubuntu-core-18-amd64.img --format VDI  
ubuntu-core-18-amd64.vdi


I've looked at iat but it seems focused on converting various flavors of optical disc images to one another. I thought raw2iso might do the trick...



raw2iso MODE1 < ubuntu-core-18-amd64.img > ubuntu-core-18-amd64.iso


...but, even though the byte size of the img file is a multiple of 2048, the output isn't recognized by anything.



Here's what hdiutil imageinfo says about the img file:



Size Information:
Total Bytes: 3879731200
Compressed Ratio: 1
Sector Count: 7577600
Total Non-Empty Bytes: 3879731200
Compressed Bytes: 3879731200
Total Empty Bytes: 0
...
partitions:
partition-scheme: GUID
block-size: 512
partitions:
0:
partition-name: Protective Master Boot Record
partition-start: 0
partition-synthesized: true
partition-length: 1
partition-hint: MBR
1:
partition-name: GPT Header
partition-start: 1
partition-synthesized: true
partition-length: 1
partition-hint: Primary GPT Header
2:
partition-name: GPT Partition Data
partition-start: 2
partition-synthesized: true
partition-length: 32
partition-hint: Primary GPT Table
3:
partition-name:
partition-start: 34
partition-synthesized: true
partition-length: 2014
partition-hint: Apple_Free
4:
partition-UUID: E765AD58-B838-4A24-8C2A-E022D7BEF1E5
partition-name: BIOS Boot
partition-hint-UUID: 21686148-6449-6E6F-744E-656564454649
partition-start: 2048
partition-number: 1
partition-length: 2048
partition-hint: 21686148-6449-6E6F-744E-656564454649
5:
partition-UUID: CC8F1CE4-0C99-4ECC-A757-FBC3FF6B9B71
partition-name: EFI System
partition-hint-UUID: C12A7328-F81F-11D2-BA4B-00A0C93EC93B
partition-start: 4096
partition-number: 2
partition-length: 102400


How can I convert this file to something that is recognized by most systems as a bootable, iso9660 image?










share|improve this question





























    0















    A VPS provider offers its users the ability to install and run any distribution, provided that you upload a bootable ISO image.



    I'd like to run Ubuntu Core, however I haven't found a way to convert the images that Canonical provides to a bootable ISO.



    qemu-img reports that the image is in raw format:



    [chb]$ qemu-img info ubuntu-core-18-amd64.img
    image: ubuntu-core-18-amd64.img
    file format: raw
    virtual size: 3.6G (3879731200 bytes)
    disk size: 302M


    I can use VirtualBox's VBoxManage tool to convert this "raw" image to a virtual disk that VirtualBox will recognize and boot:



    VBoxManage convertfromraw ubuntu-core-18-amd64.img --format VDI  
    ubuntu-core-18-amd64.vdi


    I've looked at iat but it seems focused on converting various flavors of optical disc images to one another. I thought raw2iso might do the trick...



    raw2iso MODE1 < ubuntu-core-18-amd64.img > ubuntu-core-18-amd64.iso


    ...but, even though the byte size of the img file is a multiple of 2048, the output isn't recognized by anything.



    Here's what hdiutil imageinfo says about the img file:



    Size Information:
    Total Bytes: 3879731200
    Compressed Ratio: 1
    Sector Count: 7577600
    Total Non-Empty Bytes: 3879731200
    Compressed Bytes: 3879731200
    Total Empty Bytes: 0
    ...
    partitions:
    partition-scheme: GUID
    block-size: 512
    partitions:
    0:
    partition-name: Protective Master Boot Record
    partition-start: 0
    partition-synthesized: true
    partition-length: 1
    partition-hint: MBR
    1:
    partition-name: GPT Header
    partition-start: 1
    partition-synthesized: true
    partition-length: 1
    partition-hint: Primary GPT Header
    2:
    partition-name: GPT Partition Data
    partition-start: 2
    partition-synthesized: true
    partition-length: 32
    partition-hint: Primary GPT Table
    3:
    partition-name:
    partition-start: 34
    partition-synthesized: true
    partition-length: 2014
    partition-hint: Apple_Free
    4:
    partition-UUID: E765AD58-B838-4A24-8C2A-E022D7BEF1E5
    partition-name: BIOS Boot
    partition-hint-UUID: 21686148-6449-6E6F-744E-656564454649
    partition-start: 2048
    partition-number: 1
    partition-length: 2048
    partition-hint: 21686148-6449-6E6F-744E-656564454649
    5:
    partition-UUID: CC8F1CE4-0C99-4ECC-A757-FBC3FF6B9B71
    partition-name: EFI System
    partition-hint-UUID: C12A7328-F81F-11D2-BA4B-00A0C93EC93B
    partition-start: 4096
    partition-number: 2
    partition-length: 102400


    How can I convert this file to something that is recognized by most systems as a bootable, iso9660 image?










    share|improve this question



























      0












      0








      0








      A VPS provider offers its users the ability to install and run any distribution, provided that you upload a bootable ISO image.



      I'd like to run Ubuntu Core, however I haven't found a way to convert the images that Canonical provides to a bootable ISO.



      qemu-img reports that the image is in raw format:



      [chb]$ qemu-img info ubuntu-core-18-amd64.img
      image: ubuntu-core-18-amd64.img
      file format: raw
      virtual size: 3.6G (3879731200 bytes)
      disk size: 302M


      I can use VirtualBox's VBoxManage tool to convert this "raw" image to a virtual disk that VirtualBox will recognize and boot:



      VBoxManage convertfromraw ubuntu-core-18-amd64.img --format VDI  
      ubuntu-core-18-amd64.vdi


      I've looked at iat but it seems focused on converting various flavors of optical disc images to one another. I thought raw2iso might do the trick...



      raw2iso MODE1 < ubuntu-core-18-amd64.img > ubuntu-core-18-amd64.iso


      ...but, even though the byte size of the img file is a multiple of 2048, the output isn't recognized by anything.



      Here's what hdiutil imageinfo says about the img file:



      Size Information:
      Total Bytes: 3879731200
      Compressed Ratio: 1
      Sector Count: 7577600
      Total Non-Empty Bytes: 3879731200
      Compressed Bytes: 3879731200
      Total Empty Bytes: 0
      ...
      partitions:
      partition-scheme: GUID
      block-size: 512
      partitions:
      0:
      partition-name: Protective Master Boot Record
      partition-start: 0
      partition-synthesized: true
      partition-length: 1
      partition-hint: MBR
      1:
      partition-name: GPT Header
      partition-start: 1
      partition-synthesized: true
      partition-length: 1
      partition-hint: Primary GPT Header
      2:
      partition-name: GPT Partition Data
      partition-start: 2
      partition-synthesized: true
      partition-length: 32
      partition-hint: Primary GPT Table
      3:
      partition-name:
      partition-start: 34
      partition-synthesized: true
      partition-length: 2014
      partition-hint: Apple_Free
      4:
      partition-UUID: E765AD58-B838-4A24-8C2A-E022D7BEF1E5
      partition-name: BIOS Boot
      partition-hint-UUID: 21686148-6449-6E6F-744E-656564454649
      partition-start: 2048
      partition-number: 1
      partition-length: 2048
      partition-hint: 21686148-6449-6E6F-744E-656564454649
      5:
      partition-UUID: CC8F1CE4-0C99-4ECC-A757-FBC3FF6B9B71
      partition-name: EFI System
      partition-hint-UUID: C12A7328-F81F-11D2-BA4B-00A0C93EC93B
      partition-start: 4096
      partition-number: 2
      partition-length: 102400


      How can I convert this file to something that is recognized by most systems as a bootable, iso9660 image?










      share|improve this question
















      A VPS provider offers its users the ability to install and run any distribution, provided that you upload a bootable ISO image.



      I'd like to run Ubuntu Core, however I haven't found a way to convert the images that Canonical provides to a bootable ISO.



      qemu-img reports that the image is in raw format:



      [chb]$ qemu-img info ubuntu-core-18-amd64.img
      image: ubuntu-core-18-amd64.img
      file format: raw
      virtual size: 3.6G (3879731200 bytes)
      disk size: 302M


      I can use VirtualBox's VBoxManage tool to convert this "raw" image to a virtual disk that VirtualBox will recognize and boot:



      VBoxManage convertfromraw ubuntu-core-18-amd64.img --format VDI  
      ubuntu-core-18-amd64.vdi


      I've looked at iat but it seems focused on converting various flavors of optical disc images to one another. I thought raw2iso might do the trick...



      raw2iso MODE1 < ubuntu-core-18-amd64.img > ubuntu-core-18-amd64.iso


      ...but, even though the byte size of the img file is a multiple of 2048, the output isn't recognized by anything.



      Here's what hdiutil imageinfo says about the img file:



      Size Information:
      Total Bytes: 3879731200
      Compressed Ratio: 1
      Sector Count: 7577600
      Total Non-Empty Bytes: 3879731200
      Compressed Bytes: 3879731200
      Total Empty Bytes: 0
      ...
      partitions:
      partition-scheme: GUID
      block-size: 512
      partitions:
      0:
      partition-name: Protective Master Boot Record
      partition-start: 0
      partition-synthesized: true
      partition-length: 1
      partition-hint: MBR
      1:
      partition-name: GPT Header
      partition-start: 1
      partition-synthesized: true
      partition-length: 1
      partition-hint: Primary GPT Header
      2:
      partition-name: GPT Partition Data
      partition-start: 2
      partition-synthesized: true
      partition-length: 32
      partition-hint: Primary GPT Table
      3:
      partition-name:
      partition-start: 34
      partition-synthesized: true
      partition-length: 2014
      partition-hint: Apple_Free
      4:
      partition-UUID: E765AD58-B838-4A24-8C2A-E022D7BEF1E5
      partition-name: BIOS Boot
      partition-hint-UUID: 21686148-6449-6E6F-744E-656564454649
      partition-start: 2048
      partition-number: 1
      partition-length: 2048
      partition-hint: 21686148-6449-6E6F-744E-656564454649
      5:
      partition-UUID: CC8F1CE4-0C99-4ECC-A757-FBC3FF6B9B71
      partition-name: EFI System
      partition-hint-UUID: C12A7328-F81F-11D2-BA4B-00A0C93EC93B
      partition-start: 4096
      partition-number: 2
      partition-length: 102400


      How can I convert this file to something that is recognized by most systems as a bootable, iso9660 image?







      iso






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Jan 1 at 6:31







      chb

















      asked Jan 1 at 2:36









      chbchb

      1014




      1014






















          0






          active

          oldest

          votes











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "89"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1105939%2fconvert-ubuntu-core-image-to-bootable-iso%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Ask Ubuntu!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1105939%2fconvert-ubuntu-core-image-to-bootable-iso%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Biblatex bibliography style without URLs when DOI exists (in Overleaf with Zotero bibliography)

          ComboBox Display Member on multiple fields

          Is it possible to collect Nectar points via Trainline?