Problems booting debootstrapped image (no DHCP network)

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












i'm having the problem getting a DHCP ip from the network on an ubuntu image i created with debootstrap.



What I did:

First i created a system using debootstrap



sudo debootstrap --variant=minbase --arch=amd64 bionic /tmp/src


Then I customize that system for my needs and create a squashfs file from this



mksquashfs /tmp/src bionic.sqsh -noappend -progress -comp xz


After this I create an image file with a single FAT32 partition.



dd if=/dev/zero of=/tmp/image.img bs=1M count=1400


Then I mount that image via losetup.
...



Since I want to boot in UEFI mode I put the EFI binaries into the image, created a grub.cfg and copied the squashfs file into the image.



...



The folder structure of the image now looks like this



├── boot
│   └── grub
│   ├── fonts
│   │   └── unicode.pf2
│   ├── grub.cfg
│   ├── grubenv
│   ├── locale
│   │   ├── ...
│   └── x86_64-efi
│   ├── ...
├── EFI
│   └── BOOT
│   ├── BOOTX64.EFI
│   ├── grub.cfg
│   ├── grubx64.efi
│   └── mmx64.efi
└── bionic.sqsh


The contents of the grub.cfg



search.fs_uuid 6408-05CA root
insmod squash4
insmod loopback
set linux_gfx_mode=keep
set gfxpayload="keep"
set vt_handoff=vt.handoff=7
export linux_gfx_mode
loopback loop /bionic.sqsh
prefix=/boot/grub
linux (loop)/vmlinuz root=UUID=6408-05CA loop=/bionic.sqsh ro
initrd (loop)/initrd.img
boot


Then I copy the image onto a usb stick.



Now I'm ready to boot, and the created image also boots.



But the one thing that doesn't work is the NetworkMananger. It doesn't assign any ip to the ethernet interface.



I can bring up the network by manually executing `dhclient eno1'. But this is not what I want, since the NetworkManager should assign a DHCP IP automatically at boot.



You can see the full NetworkManager log at pastebin



I hope I posted the neccesary infos so someone can give me a hint on what's going wrong.

Many thanks in advance for any help.







share|improve this question























    up vote
    0
    down vote

    favorite












    i'm having the problem getting a DHCP ip from the network on an ubuntu image i created with debootstrap.



    What I did:

    First i created a system using debootstrap



    sudo debootstrap --variant=minbase --arch=amd64 bionic /tmp/src


    Then I customize that system for my needs and create a squashfs file from this



    mksquashfs /tmp/src bionic.sqsh -noappend -progress -comp xz


    After this I create an image file with a single FAT32 partition.



    dd if=/dev/zero of=/tmp/image.img bs=1M count=1400


    Then I mount that image via losetup.
    ...



    Since I want to boot in UEFI mode I put the EFI binaries into the image, created a grub.cfg and copied the squashfs file into the image.



    ...



    The folder structure of the image now looks like this



    ├── boot
    │   └── grub
    │   ├── fonts
    │   │   └── unicode.pf2
    │   ├── grub.cfg
    │   ├── grubenv
    │   ├── locale
    │   │   ├── ...
    │   └── x86_64-efi
    │   ├── ...
    ├── EFI
    │   └── BOOT
    │   ├── BOOTX64.EFI
    │   ├── grub.cfg
    │   ├── grubx64.efi
    │   └── mmx64.efi
    └── bionic.sqsh


    The contents of the grub.cfg



    search.fs_uuid 6408-05CA root
    insmod squash4
    insmod loopback
    set linux_gfx_mode=keep
    set gfxpayload="keep"
    set vt_handoff=vt.handoff=7
    export linux_gfx_mode
    loopback loop /bionic.sqsh
    prefix=/boot/grub
    linux (loop)/vmlinuz root=UUID=6408-05CA loop=/bionic.sqsh ro
    initrd (loop)/initrd.img
    boot


    Then I copy the image onto a usb stick.



    Now I'm ready to boot, and the created image also boots.



    But the one thing that doesn't work is the NetworkMananger. It doesn't assign any ip to the ethernet interface.



    I can bring up the network by manually executing `dhclient eno1'. But this is not what I want, since the NetworkManager should assign a DHCP IP automatically at boot.



    You can see the full NetworkManager log at pastebin



    I hope I posted the neccesary infos so someone can give me a hint on what's going wrong.

    Many thanks in advance for any help.







    share|improve this question





















      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      i'm having the problem getting a DHCP ip from the network on an ubuntu image i created with debootstrap.



      What I did:

      First i created a system using debootstrap



      sudo debootstrap --variant=minbase --arch=amd64 bionic /tmp/src


      Then I customize that system for my needs and create a squashfs file from this



      mksquashfs /tmp/src bionic.sqsh -noappend -progress -comp xz


      After this I create an image file with a single FAT32 partition.



      dd if=/dev/zero of=/tmp/image.img bs=1M count=1400


      Then I mount that image via losetup.
      ...



      Since I want to boot in UEFI mode I put the EFI binaries into the image, created a grub.cfg and copied the squashfs file into the image.



      ...



      The folder structure of the image now looks like this



      ├── boot
      │   └── grub
      │   ├── fonts
      │   │   └── unicode.pf2
      │   ├── grub.cfg
      │   ├── grubenv
      │   ├── locale
      │   │   ├── ...
      │   └── x86_64-efi
      │   ├── ...
      ├── EFI
      │   └── BOOT
      │   ├── BOOTX64.EFI
      │   ├── grub.cfg
      │   ├── grubx64.efi
      │   └── mmx64.efi
      └── bionic.sqsh


      The contents of the grub.cfg



      search.fs_uuid 6408-05CA root
      insmod squash4
      insmod loopback
      set linux_gfx_mode=keep
      set gfxpayload="keep"
      set vt_handoff=vt.handoff=7
      export linux_gfx_mode
      loopback loop /bionic.sqsh
      prefix=/boot/grub
      linux (loop)/vmlinuz root=UUID=6408-05CA loop=/bionic.sqsh ro
      initrd (loop)/initrd.img
      boot


      Then I copy the image onto a usb stick.



      Now I'm ready to boot, and the created image also boots.



      But the one thing that doesn't work is the NetworkMananger. It doesn't assign any ip to the ethernet interface.



      I can bring up the network by manually executing `dhclient eno1'. But this is not what I want, since the NetworkManager should assign a DHCP IP automatically at boot.



      You can see the full NetworkManager log at pastebin



      I hope I posted the neccesary infos so someone can give me a hint on what's going wrong.

      Many thanks in advance for any help.







      share|improve this question











      i'm having the problem getting a DHCP ip from the network on an ubuntu image i created with debootstrap.



      What I did:

      First i created a system using debootstrap



      sudo debootstrap --variant=minbase --arch=amd64 bionic /tmp/src


      Then I customize that system for my needs and create a squashfs file from this



      mksquashfs /tmp/src bionic.sqsh -noappend -progress -comp xz


      After this I create an image file with a single FAT32 partition.



      dd if=/dev/zero of=/tmp/image.img bs=1M count=1400


      Then I mount that image via losetup.
      ...



      Since I want to boot in UEFI mode I put the EFI binaries into the image, created a grub.cfg and copied the squashfs file into the image.



      ...



      The folder structure of the image now looks like this



      ├── boot
      │   └── grub
      │   ├── fonts
      │   │   └── unicode.pf2
      │   ├── grub.cfg
      │   ├── grubenv
      │   ├── locale
      │   │   ├── ...
      │   └── x86_64-efi
      │   ├── ...
      ├── EFI
      │   └── BOOT
      │   ├── BOOTX64.EFI
      │   ├── grub.cfg
      │   ├── grubx64.efi
      │   └── mmx64.efi
      └── bionic.sqsh


      The contents of the grub.cfg



      search.fs_uuid 6408-05CA root
      insmod squash4
      insmod loopback
      set linux_gfx_mode=keep
      set gfxpayload="keep"
      set vt_handoff=vt.handoff=7
      export linux_gfx_mode
      loopback loop /bionic.sqsh
      prefix=/boot/grub
      linux (loop)/vmlinuz root=UUID=6408-05CA loop=/bionic.sqsh ro
      initrd (loop)/initrd.img
      boot


      Then I copy the image onto a usb stick.



      Now I'm ready to boot, and the created image also boots.



      But the one thing that doesn't work is the NetworkMananger. It doesn't assign any ip to the ethernet interface.



      I can bring up the network by manually executing `dhclient eno1'. But this is not what I want, since the NetworkManager should assign a DHCP IP automatically at boot.



      You can see the full NetworkManager log at pastebin



      I hope I posted the neccesary infos so someone can give me a hint on what's going wrong.

      Many thanks in advance for any help.









      share|improve this question










      share|improve this question




      share|improve this question









      asked Jun 21 at 10:51









      Chris

      1012




      1012

























          active

          oldest

          votes











          Your Answer







          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "106"
          ;
          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',
          convertImagesToLinks: false,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );








           

          draft saved


          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f451067%2fproblems-booting-debootstrapped-image-no-dhcp-network%23new-answer', 'question_page');

          );

          Post as a guest



































          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes










           

          draft saved


          draft discarded


























           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f451067%2fproblems-booting-debootstrapped-image-no-dhcp-network%23new-answer', 'question_page');

          );

          Post as a guest













































































          Popular posts from this blog

          How to check contact read email or not when send email to Individual?

          Bahrain

          Postfix configuration issue with fips on centos 7; mailgun relay