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

FreeBSD cloud-init not working with vtnet0 #556

Open
ivomarino opened this issue Aug 17, 2024 · 0 comments
Open

FreeBSD cloud-init not working with vtnet0 #556

ivomarino opened this issue Aug 17, 2024 · 0 comments

Comments

@ivomarino
Copy link

I'm currently creating a FreeBSD 14.1 VM using the following options:

vm create -t uefi -s 16G -c 2 -m 512M -i freebsd-14.0-zfs-2024-05-06.qcow2 -C \
   -n "ip=192.168.140.169/24;gateway=192.168.140.1;nameservers=192.168.140.1" \
   -k ~/.ssh/id_rsa.pub zfs-test-01

this creates the following network-config as defined by the code:

cat network-config
version: 2
ethernets:
  id0:
    set-name: eth0
    match:
      macaddress: "58:9c:fc:08:10:0e"
    addresses:
      - 192.168.140.169/24
    gateway4: 192.168.140.1
    nameservers:
      search: []
      addresses: [192.168.140.1]

the problem is my network interface is vtnet0 and not eth0, this is what I get from the logs:

2024-08-17 12:12:43,216 - stages.py[DEBUG]: applying net config names for {'version': 2, 'ethernets': {'id0': {'set-name': 'eth
0', 'match': {'macaddress': '58:9c:fc:08:10:0e'}, 'addresses': ['192.168.140.169/24'], 'gateway4': '192.168.140.1', 'nameserver
s': {'search': [], 'addresses': ['192.168.140.1']}}}}

any ideas how this can be fixed? It works fine with Debian based VM images, thanks for inputs

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

1 participant