chef / bento

Packer templates for building minimal Vagrant baseboxes for multiple platforms
Apache License 2.0
4.24k stars 1.12k forks source link

Fix arm64 builds for debian 11 #1571

Closed fgierlinger closed 2 months ago

fgierlinger commented 3 months ago

This pull request fixes the arm64 builds for debian 11 (bullseye).

Description

The main problem was, that the packages open-vm-tools is not available for arm64 in the bullseye nor the bullseye-updates suite. The arm64 build is only available in the bullseye-backports suite. By adding the bullseye-backports suite the build succeeds.

When starting the VM a lot of Unknown ioctl 1976 messages are logged into kernel message log and the console. According to https://github.com/vmware/open-vm-tools/issues/495 this is because the kernel module _vmw_vsock_vmcitransport is missing. The kernel module is neither available in the debian-security kernel (5.10.218) nor in the bullseye-backports kernel (6.1.90).

The easiest fix at the moment it to blacklist the modules _vmw_vsock_virtio_transportcommon and _vsockloopback. As soon as _vsockloopback is loaded, the error messages appear.

Related Issue

1371

Types of changes

Checklist:

sonarcloud[bot] commented 2 months ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud