macpine icon indicating copy to clipboard operation
macpine copied to clipboard

--shared not working with alpine_3.19.1

Open joshuahhh opened this issue 10 months ago • 1 comments

Describe the bug Although --shared seems to work fine with the default Alpine version, it doesn't work when combined with --image alpine_3.19.1.

To Reproduce Running

sudo alpine launch \
  --name shelly \
  --image alpine_3.19.1 \
  --shared

produces the output

2024/04/09 17:04:14 booting shelly
2024/04/09 17:04:14 shelly started (17577)
2024/04/09 17:04:14 getting instance IP address from DHCP leases
..2024/04/09 17:04:23 shelly stopped
2024/04/09 17:04:23 unable to set up DNS: dial tcp 192.168.64.6:22: connect: connection refused

(tho sometimes it instead hangs roughly forever, printing out periods).

Host computer (please complete the following information):

  • macOS version: 14.4
  • qemu version: 8.2.1

Additional context

macpine is great! Thanks a bunch.

joshuahhh avatar Apr 10 '24 00:04 joshuahhh

Hi there!

This seems to be a general issue with Alpine 3.19, which is related to a grub update (https://gitlab.alpinelinux.org/alpine/aports/-/issues/15672)

The latest version of Alpine that seems to be working correctly is 3.18. If you need these later versions of Alpine through macpine, you could launch macpine with the default image (3.16) and then edit /etc/apk/repositories on the guest and set them to 3.18, followed by apk update and apk upgrade.

If you need the image, you could publish it through macpine publish and reuse for later builds.

I think for now, I'll keep monitoring this issue until a more stable work around is introduced.

idroz avatar Apr 10 '24 06:04 idroz

Macpine now supports Alpine 3.20.3 with --shared networking mode. Will close for now as hopefully addresses the issue!

idroz avatar Oct 14 '24 05:10 idroz