Problems booting debootstrapped image (no DHCP network)
Clash 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.
ubuntu networkmanager debootstrap
add a comment |Â
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.
ubuntu networkmanager debootstrap
add a comment |Â
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.
ubuntu networkmanager debootstrap
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.
ubuntu networkmanager debootstrap
asked Jun 21 at 10:51
Chris
1012
1012
add a comment |Â
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password