summaryrefslogtreecommitdiff
path: root/bin
AgeCommit message (Collapse)Author
2023-02-23debvm-create: do not fsckHelmut Grohne
Asking for a fsck pass in fstab is not what we want. Requiring fsck makes sysvinit fail when fsck.ext4 is missing. Without that pass, it happily boots without e2fsprogs. Link: https://bugs.debian.org/1028267 Thanks: Thorsten Glaster <t.glaser@tarent.de>
2023-02-20debvm-create: add --initsystem optionHelmut Grohne
This option allows changing the init system. The notable addition is sysv.
2023-02-20debvm-create: avoid failing when we install no passwdHelmut Grohne
2023-02-05debvm-create: fix resizing of output imageHelmut Grohne
resize2fs -b will not actually perform a resize. Rather, it will truncate the file to the filesystem length, reversing the earlier truncate call. Thus we need second resize2fs call to change the size of the filesystem. Fixes: 09bcaa8fe901 ("debvm-create: make the ext4 look more like ext4")
2023-02-05debvm-create: add --skip=initsystemHelmut Grohne
Closes: #1030254
2023-02-05debvm-create: install systemd-sysv rather than initHelmut Grohne
We actually expect systemd in the network configuration. Be more honest about this.
2023-02-03debvm-create: update documentation for --skip=ext4Helmut Grohne
2023-02-02debvm-create: Output image in tar format if step "ext4" is skippedGioele Barabucci
Outputting the image in tar format breaks interoperability with `debvm-run`, but makes it easier to inspect, convert or perform additional modifications of the generated image.
2023-02-02debvm-run: deal with arbitrary disk labelsHelmut Grohne
Reported-by: Gioele Barabucci <gioele@svario.it> Closes: #1030255
2023-02-02debvm-create: make the ext4 look more like ext4Helmut Grohne
One notable difference remains. metadata_csum keeps missing as tune2fs insists on doing this interactively only. Reported-by: Gioele Barabucci <gioele@svario.it> Closes: #1030252
2023-01-26debvm-run: be a bit more verbose about detected architectureHelmut Grohne
2023-01-25Merge branch 'multiarch' into 'main'Helmut Grohne
install and use multiarch kernels for sibling architectures See merge request helmutg/debvm!28
2023-01-25debvm-run: always pass gic-version=max for arm64Helmut Grohne
We already pass it in the kvm case where it should become host and all should be fine. However in the non-kvm case, the default gic can only support 8 cores. If we want to go beyond that, we need a higher gic-version. We couldn't measure a performance difference between max and unset, so we'll just always pass max. Thanks: Arnd Bergmann <arnd@arndb.de> Thanks: Johannes Schauer Marin Rodrigues <josch@debian.org>
2023-01-25debvm-run: disable kvm for armhf -> arm64 when the cpu cannot run itHelmut Grohne
Reported-by: Arnd Bergmann <arnd@arndb.de>
2023-01-25debvm-run: internally differentiate between VMARCH and KERNELARCHHelmut Grohne
In a multiarch setting, VMARCH shall describe the contained userland and KERNELARCH shall describe the architecture of the contained kernel.
2023-01-25debvm-run: make shellcheck happyHelmut Grohne
Fixes: 66b9374cc19c ("debvm-run: extract kernel image before inspecting it")
2023-01-25debvm-run: also handle upgrading armHelmut Grohne
elf-arch may report armel and armhf as arm.
2023-01-25debvm-run: extract kernel image before inspecting itHelmut Grohne
Reported-by: Arnd Bergmann <arnd@arndb.de>
2023-01-25debvm-run: handle some multiarch kernelsHelmut Grohne
We completely treat all 32bit arm as armhf now. Booting the rpi kernel installed by debvm-create for armel will not work at all. The only sane way to boot armel is to enable a multiarch kernel. Refine the VMARCH guess from /bin/true using the file output for the kernel image for the common cases of i386+amd64 and armel/armhf+arm64.
2023-01-24debvm-run: do not pass -smp on unicore systemsHelmut Grohne
2023-01-22debvm-run: arm virt machine cannot do more than 8 coresHelmut Grohne
2023-01-22debv-run: apply smp limits for the native caseHelmut Grohne
This was never tried, but autopkgtests indicate that smp limits also apply to the native case.
2023-01-21debvm-run: also avoid pci networking for m68kHelmut Grohne
2023-01-21debvm-run: refactor rng deviceHelmut Grohne
It's not as simple as disabling the rng when pci is unavailable. For m68k, we can select -machine virt and then we can have a virtio-rng-device. Thus make that part configurable.
2023-01-21debvm-run: use gic-version=max for arm64Helmut Grohne
While the host version only works on kvm, max means the same and also works on tcg. Signed-off-by: Johannes Schauer Marin Rodrigues <josch@debian.org> Signed-off-by: Helmut Grohne <helmut@subdivi.de>
2023-01-21debvm-run: skip virtio-rng-pci for architectures that lack pciHelmut Grohne
Fixes: aee1eb3d1c28 ("debvm-run: no need for true randomness -- use /dev/urandom to be faster")
2023-01-21debvm-run: also pass reasonable -cpu for native non-kvmHelmut Grohne
2023-01-21debvm-run: prefer qemu-system-* over kvmHelmut Grohne
Now that we pass accel=kvm:tcg, there is no difference anymore.
2023-01-21debvm-run: pass -M accel=kvm:tcg rather than -enable-kvmHelmut Grohne
-enable-kvm is equivalent to -M accel=kvm, but we allow a fallback to tcg in case kvm is not available thus shifting this test into qemu. Reported-by: Bastian Blank <waldi@debian.org> Reported-by: Johannes Schauer Marin Rodrigues <josch@debian.org>
2023-01-21debvm-run: only pass gic-version when kvm is availableHelmut Grohne
Fixes: bfaa3d124fab ("debvm-run: on arm64 there is no default machine -- set one")
2023-01-21debvm-run: compute -machine independently of being nativeHelmut Grohne
When running on armhf natively, there also is no default machine, so we should also pass -machine virt there. That likely affects all arms and riscv64 as well.
2023-01-20use ssh option NoHostAuthenticationForLocalhostHelmut Grohne
2023-01-18Merge branch 'faq' into 'main'Helmut Grohne
Faq See merge request helmutg/debvm!26
2023-01-18Update FAQ about console renderingsJochen Sprickerhof
2023-01-18Add better Qemu optionsJochen Sprickerhof
2023-01-17debvm-create: install only one kernel imageHelmut Grohne
The apt pattern ?or does not short-circuit. It installs any pattern matching one of the arguments. On amd64, we thus get both the cloud and the non-cloud variant. There aren't that many good options to fix this, so the next best way is using a hook and running apt again, which is suboptimal in terms of repeated triggers, but likely the best we can do at present.
2023-01-17Merge branch 'cleanup' into 'main'Helmut Grohne
Cleanup See merge request helmutg/debvm!25
2023-01-17Add --skip=autologinJochen Sprickerhof
2023-01-17Allow arbitrary image sizesJochen Sprickerhof
2023-01-17expand architecture coverageHelmut Grohne
Give an example of how to use it with ports and add a few architecture-specific cases. Note that m68k and sparc64 do not actually work, because they lack PCI.
2023-01-17debvm-create: combine ?exact-name with ?not(virtual)Helmut Grohne
When apt encounters a package that does not exist, but is referenced via Recommends, Suggests, Breaks or otherwise, it errors out with a missing installation candidate. This happens for linux-image-generic on buster. To avoid this situation, we specifically ask apt to not consider virtual packages whenever we use ?exact-name.
2023-01-17debvm-create: fix syntax broken in parent commitHelmut Grohne
2023-01-17debvm-create: avoid splitting features to multiple code locationsHelmut Grohne
2023-01-17debvm-create: stop validating the suiteHelmut Grohne
The only DEBVER check left checks for jessie. We can just compare the name instead. Thus we no longer reject Ubuntu suites such as jammy. This helps with !20, but not yet with #10.
2023-01-17debvm-create: install linux-image-generic as an alternative kernel nameHelmut Grohne
This is used on Ubuntu and thus helps with !20.
2023-01-17debvm-create: use maybe-merged-usr hookHelmut Grohne
Requires mmdebstrap >= 1.3.0 Closes: #8
2023-01-17debvm-create: defer kernel selection to aptHelmut Grohne
This requires mmdebstrap >= 1.3.0. Closes: #9
2023-01-15Merge branch 'drop_mirror' into 'main'Helmut Grohne
Drop mirror option See merge request helmutg/debvm!24
2023-01-15debvm-create: update documentation for dropped mirror optionHelmut Grohne
2023-01-15debvm-create: actually drop -m from the getopts invocationHelmut Grohne
Fixes: 7a2b46697659 ("Drop mirror option")