Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IP address for VM is not properly determined #998

Open
0xff8 opened this issue Jan 15, 2025 · 7 comments
Open

IP address for VM is not properly determined #998

0xff8 opened this issue Jan 15, 2025 · 7 comments

Comments

@0xff8
Copy link

0xff8 commented Jan 15, 2025

Hi, guys,

After the upgrade to the latest version 2.23.0 of the tart and tart-gitlab-executor 1.21.0-7973405 and pulling latest ubuntu image I am having a problem
The command tart ip shows wrong IP address for a virtual machine and pipelines stopped to work.

Please see the screenshot:
image

Any clue what might be wrong?

@edigaryev
Copy link
Collaborator

Unfortunately macOS's DHCP server is treating hw_address and identifier fields in /var/db/dhcpd_leases the same way and putting the client identifier, which is a DUID/IAID in your case, into the hw_address field, making it impossible for tart ip to locate the corresponding entry given a MAC-address.

You need to disable DUID/IAID/non-MAC identifiers in your VM to work around that.

See cirruslabs/linux-image-templates#39 for more details.

@0xff8
Copy link
Author

0xff8 commented Jan 15, 2025

Thanks @edigaryev for the response. Could it be disabled in the base image then ghcr.io/cirruslabs/ubuntu:latest ? Previous version of that image was working fine..

@0xff8
Copy link
Author

0xff8 commented Jan 15, 2025

Test with the macOS image - same problem:

2025/01/15 16:18:24 Pulling the latest version of ghcr.io/cirruslabs/macos-ventura-xcode:14...
2025/01/15 16:18:25 Cloning and configuring a new VM...
2025/01/15 16:18:25 Waiting for the VM to boot and be SSH-able...

@edigaryev
Copy link
Collaborator

Previous version of that image was working fine

Hmm, indeed. It seems that 99_cirruslabs.cfg didn't make it to the VM for some reason.

Could you please re-pull the image? It should work now.

@edigaryev
Copy link
Collaborator

edigaryev commented Jan 15, 2025

Test with the macOS image - same problem:

This is unlikely related. Are you running macOS 15 (Sequoia) on the host by a chance?

If so, please see the top of the Gitlab Tart Executor's README.md explaining this issue.

@0xff8
Copy link
Author

0xff8 commented Jan 15, 2025

Yes, I am running macOS 15.2 . I have installed GitLab Runner latest version I have changed the security options for it according the readme.md:
image

but still machine stuck :/

Using Custom executor...
2025/01/15 18:03:56 Pulling the latest version of ghcr.io/cirruslabs/macos-ventura-xcode:14...
2025/01/15 18:03:56 Cloning and configuring a new VM...
2025/01/15 18:03:56 Waiting for the VM to boot and be SSH-able...

@amsokol
Copy link

amsokol commented Jan 16, 2025

Hello,

If it is still relevant, to make tart ip <vm> work for ubuntu, it necessary to add dhcp-identifier: "mac" to the /etc/netplan/50-cloud-init.yaml and restart. Example:

network:
  version: 2
  ethernets:
    enp0s1:
      dhcp4: true
      dhcp-identifier: "mac"

tested with ubuntu 24.10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants