Giter VIP home page Giter VIP logo

Comments (11)

monstermunchkin avatar monstermunchkin commented on September 14, 2024

Could you please share your ubuntu.yaml?

from distrobuilder.

monstermunchkin avatar monstermunchkin commented on September 14, 2024

Is it only the Ubuntu VM image that fails to build? Have you tried building an Alpine Linux VM image?

from distrobuilder.

rrahl0 avatar rrahl0 commented on September 14, 2024

Could you please share your ubuntu.yaml?

I use this to test stuff https://github.com/lxc/distrobuilder/blob/main/doc/examples/ubuntu.yaml

Is it only the Ubuntu VM image that fails to build? Have you tried building an Alpine Linux VM image?

No I didn't, as I don't have a yaml file for that (at least for now)

from distrobuilder.

monstermunchkin avatar monstermunchkin commented on September 14, 2024

Could you please share your ubuntu.yaml?

I use this to test stuff https://github.com/lxc/distrobuilder/blob/main/doc/examples/ubuntu.yaml

I suggest you try this one instead https://github.com/lxc/lxc-ci/blob/main/images/ubuntu.yaml. The yaml files in lxc-ci are actively maintained and therefore more up-to-date.

Is it only the Ubuntu VM image that fails to build? Have you tried building an Alpine Linux VM image?

No I didn't, as I don't have a yaml file for that (at least for now)

https://github.com/lxc/lxc-ci/blob/main/images/alpine.yaml

from distrobuilder.

rrahl0 avatar rrahl0 commented on September 14, 2024

I am sorry for being ignorant, but how can I choose what to build. as both yamls just error out with wrong release. (I assume I have to choose which release to build but can't find anywhere, how to do that)

doh, right after posting this I found out how

from distrobuilder.

rrahl0 avatar rrahl0 commented on September 14, 2024

so, alpine spits out a different error:

# distrobuilder build-incus --vm --debug alpine.yaml -o image.release=3.16
[...]
INFO   [2023-10-31T08:04:30+01:00] Running generator                             generator=hostname
INFO   [2023-10-31T08:04:30+01:00] Running generator                             generator=hosts
INFO   [2023-10-31T08:04:30+01:00] Running generator                             generator=fstab
INFO   [2023-10-31T08:04:30+01:00] Running generator                             generator=incus-agent
INFO   [2023-10-31T08:04:30+01:00] Running generator                             generator=dump
INFO   [2023-10-31T08:04:30+01:00] Running generator                             generator=dump
INFO   [2023-10-31T08:04:30+01:00] Running generator                             generator=dump
INFO   [2023-10-31T08:04:30+01:00] Running generator                             generator=template
Creating new GPT entries in memory.
Warning: The kernel is still using the old partition table.
The new table will be used at the next reboot or after you
run partprobe(8) or kpartx(8)
GPT data structures destroyed! You may now partition the disk using fdisk or
other utilities.
Creating new GPT entries in memory.
Warning: The kernel is still using the old partition table.
The new table will be used at the next reboot or after you
run partprobe(8) or kpartx(8)
The operation has completed successfully.
Warning: The kernel is still using the old partition table.
The new table will be used at the next reboot or after you
run partprobe(8) or kpartx(8)
The operation has completed successfully.
Error: Failed to mount image: Failed to parse "": strconv.Atoi: parsing "": invalid syntax
ERROR  [2023-10-31T08:04:33+01:00] Failed running distrobuilder                  err="Failed to mount image: Failed to parse \"\": strconv.Atoi: parsing \"\": invalid syntax"
INFO   [2023-10-31T08:04:33+01:00] Removing cache directory                     

running the command with image.release=edge fixes the bug, and it successfully creates the vm image. so will test the alpine yaml a bit more

for some reason, now I get the same error as ubuntu with 3.16, and edge errors out with above error :(

from distrobuilder.

rrahl0 avatar rrahl0 commented on September 14, 2024

yeah still the same error with ubuntu:

# distrobuilder build-incus --vm --debug ubuntu -o image.release=jammy
[...]
INFO   [2023-10-31T08:16:14+01:00] Running generator                             generator=hostname
INFO   [2023-10-31T08:16:14+01:00] Running generator                             generator=hosts
INFO   [2023-10-31T08:16:14+01:00] Running generator                             generator=remove
INFO   [2023-10-31T08:16:14+01:00] Running generator                             generator=remove
INFO   [2023-10-31T08:16:14+01:00] Running generator                             generator=dump
INFO   [2023-10-31T08:16:14+01:00] Running generator                             generator=remove
INFO   [2023-10-31T08:16:14+01:00] Running generator                             generator=dump
INFO   [2023-10-31T08:16:14+01:00] Running generator                             generator=fstab
INFO   [2023-10-31T08:16:14+01:00] Running generator                             generator=incus-agent
INFO   [2023-10-31T08:16:14+01:00] Running generator                             generator=dump
INFO   [2023-10-31T08:16:14+01:00] Running generator                             generator=dump
Creating new GPT entries in memory.
Warning: The kernel is still using the old partition table.
The new table will be used at the next reboot or after you
run partprobe(8) or kpartx(8)
GPT data structures destroyed! You may now partition the disk using fdisk or
other utilities.
Creating new GPT entries in memory.
Warning: The kernel is still using the old partition table.
The new table will be used at the next reboot or after you
run partprobe(8) or kpartx(8)
The operation has completed successfully.
Warning: The kernel is still using the old partition table.
The new table will be used at the next reboot or after you
run partprobe(8) or kpartx(8)
The operation has completed successfully.
mke2fs 1.47.0 (5-Feb-2023)
Discarding device blocks: done                            
Creating filesystem with 1022715 4k blocks and 511488 inodes
Filesystem UUID: ce307809-5268-4141-9c96-451ad3ee004a
Superblock backups stored on blocks: 
	32768, 98304, 163840, 229376, 294912, 819200, 884736

Allocating group tables: done                            
Writing inode tables: done                            
Creating journal (16384 blocks): done
Writing superblocks and filesystem accounting information: done 

mkfs.fat 4.2 (2021-01-31)
INFO   [2023-10-31T08:16:20+01:00] Running hooks                                 trigger=post-files
+ TARGET=x86_64
+ uname -m
+ [ x86_64 = aarch64 ]
+ update-grub
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/50-incus.cfg'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
grub-probe: error: unknown filesystem.
Found linux image: /boot/vmlinuz-5.15.0-88-generic
Found initrd image: /boot/initrd.img-5.15.0-88-generic
/usr/sbin/grub-probe: error: unknown filesystem.
done
+ grub-install --uefi-secure-boot --target=x86_64-efi --no-nvram --removable
Installing for x86_64-efi platform.
grub-install: error: unknown filesystem.
Error: Failed to run post-files: exit status 1
ERROR  [2023-10-31T08:16:22+01:00] Failed running distrobuilder                  err="Failed to run post-files: exit status 1"
INFO   [2023-10-31T08:16:22+01:00] Removing cache directory                     

from distrobuilder.

monstermunchkin avatar monstermunchkin commented on September 14, 2024

Looking at grub-install --help, there's the option --skip-fs-probe. You can try that, perhaps it'll fix the issue.

from distrobuilder.

rrahl0 avatar rrahl0 commented on September 14, 2024

Looking at grub-install --help, there's the option --skip-fs-probe. You can try that, perhaps it'll fix the issue.

so this does work for alpine, but not ubuntu. which kinda weirds me out, as I thought the whole grub part is getting executed inside the vm, which would mean it shouldn't even come up as an issue (as it works on a 23.10 ubuntu vm.)

here is the part which is relevant:

+ grub-install --uefi-secure-boot --target=x86_64-efi --no-nvram --removable --skip-fs-probe
Installing for x86_64-efi platform.
grub-install: error: unknown filesystem.
Error: Failed to run post-files: exit status 1
ERROR  [2023-10-31T09:09:00+01:00] Failed running distrobuilder                  err="Failed to run post-files: exit status 1"
INFO   [2023-10-31T09:09:00+01:00] Removing cache directory                     

from distrobuilder.

monstermunchkin avatar monstermunchkin commented on September 14, 2024

so this does work for alpine, but not ubuntu. which kinda weirds me out, as I thought the whole grub part is getting executed inside the vm, which would mean it shouldn't even come up as an issue (as it works on a 23.10 ubuntu vm.)

This is not executed in a VM, but in a chroot. Is it perhaps your host that doesn't support secure boot or UEFI, and therefore grub's not happy?

from distrobuilder.

rrahl0 avatar rrahl0 commented on September 14, 2024

@monstermunchkin the vm is setup with UEFI+SB with only MS keys. in the case of tumbleweed, I also enabled trusted boot

from distrobuilder.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.