Linux in eve - Could not generate persistent MAC address

Before posting something, READ the changelog, WATCH the videos, howto and provide following:
Your install is: Bare metal, ESXi, what CPU model, RAM, HD, what EVE version you have, output of the uname -a and any other info that might help us faster.

Moderator: mike

Post Reply
srvfw
Posts: 3
Joined: Mon Dec 18, 2017 1:49 pm

Linux in eve - Could not generate persistent MAC address

Post by srvfw » Tue Dec 19, 2017 5:39 pm

Hi guy,

i'm trying to run a linux image inside eve, but when i start the machine i get this error in /var/log/syslog:

Code: Select all

Dec 19 14:14:09 eve-ng ovs-vsctl: ovs|00001|vsctl|INFO|Called as ovs-vsctl del-port vunl0_3_0
Dec 19 14:14:09 eve-ng ovs-vsctl: ovs|00002|db_ctl_base|ERR|no port named vunl0_3_0
Dec 19 14:14:09 eve-ng systemd-udevd[25554]: Could not generate persistent MAC address for vunl0_3_0: No such file or directory
Dec 19 14:14:10 eve-ng sh[25403]: sed: can't read /run/systemd/netif/leases/*: No such file or directory
Dec 19 14:14:24 eve-ng sh[25403]: message repeated 14 times: [ sed: can't read /run/systemd/netif/leases/*: No such file or directory]
Looking for "Could not generate persistent MAC address for vunl0_3_0: No such file or directory" on google, i found a common systemd trouble...
Have someone got this kind of errors? Have you fix it?

Code: Select all

***** EVE-NG VERSION INSTALLED  *****
eve-ng 2.0.3-86

***** HOSTNAME INFORMATION *****
   Static hostname: eve-ng
    Virtualization: vmware
  Operating System: Ubuntu 16.04.3 LTS
            Kernel: Linux 4.9.40-eve-ng-ukms-2+
      Architecture: x86-64

***** FILE SYSTEM DISK SPACE USAGE *****
Filesystem                    Size  Used Avail Use% Mounted on
udev                          2.5G     0  2.5G   0% /dev
tmpfs                         498M   12M  487M   3% /run
/dev/mapper/eve--ng--vg-root   33G  8.2G   24G  27% /
tmpfs                         2.5G     0  2.5G   0% /dev/shm
tmpfs                         5.0M     0  5.0M   0% /run/lock
tmpfs                         2.5G     0  2.5G   0% /sys/fs/cgroup
/dev/sda1                     472M  145M  304M  33% /boot

 ***** CPU INFORMATION  *****
model name      : AMD PRO A10-8700B R6, 10 Compute Cores 4C+6G

 ***** FREE AND USED MEMORY *****
              total        used        free      shared  buff/cache   available
Mem:           4.9G        373M        3.5G         21M        1.0G        4.2G
Swap:          6.0G          0B        6.0G

 ***** INTERFACE INFORMATION *****
pnet0           8000.000c29cec587       no              eth0
pnet1           8000.000000000000       no
pnet2           8000.000000000000       no
pnet3           8000.000000000000       no
pnet4           8000.000000000000       no
pnet5           8000.000000000000       no
pnet6           8000.000000000000       no
pnet7           8000.000000000000       no
pnet8           8000.000000000000       no
pnet9           8000.000000000000       no

 ***** KVM CHECK INFORMATION  *****
INFO: Your CPU does not support KVM extensions
KVM acceleration can NOT be used

 ***** APACHE STATUS  *****
* apache2.service - LSB: Apache2 web server
   Active: active (running) since Mon 2017-12-18 14:31:49 EET; 1 day 4h ago

 ***** CHECKING INERNET STATUS  *****
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=128 time=89.1 ms

--- 8.8.8.8 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 89.149/89.149/89.149/0.000 ms

 ***** COPY or SCREENSHOT THIS INFORMATION FOR EVE SUPPORT TO HELP/UNDERSTAND YOUR SYSTEM INFORMATION.******
 ***** http://www.eve-ng.net/forum/ ******
 

srvfw
Posts: 3
Joined: Mon Dec 18, 2017 1:49 pm

Re: Linux in eve - Could not generate persistent MAC address

Post by srvfw » Fri Dec 22, 2017 12:09 pm

Hi guys, i have an update:

after some research, i got that the trouble was that the machine didn't boot up.
So i tried to run a simple kvm machine and i got it's working only disabling the kvm emulation.

Code: Select all

 Not working
 /opt/qemu-2.9.0/bin/qemu-system-x86_64 -m 1024 -hda hda.qcow2 -cdrom cdrom.iso -enable-kvm
 Working
 /opt/qemu-2.9.0/bin/qemu-system-x86_64 -m 1024 -hda hda.qcow2 -cdrom cdrom.iso -no-kvm
So, from the gui, i remove the accelleration provided via kvm and now it's work.
But is possibile enable the kvm emulation to get more speed?

Thanks

dcnguyen
Posts: 1
Joined: Sat Jun 03, 2017 4:13 pm

Re: Linux in eve - Could not generate persistent MAC address

Post by dcnguyen » Wed Dec 27, 2017 9:21 am

I faced the same issue. After googling around, I came across this https://github.com/systemd/systemd/issues/3374. What I did was:
- Add file /etc/systemd/network/99-default.link
- Content:
[Link]
# NamePolicy=kernel database onboard slot path
MACAddressPolicy=none

- Reboot the server

Then, looks like the issue is gone!

tacosplease
Posts: 1
Joined: Sat Nov 14, 2020 1:04 am

Re: Linux in eve - Could not generate persistent MAC address

Post by tacosplease » Sat Nov 14, 2020 1:28 am

dcnguyen wrote:
Wed Dec 27, 2017 9:21 am
I faced the same issue. After googling around, I came across this https://github.com/systemd/systemd/issues/3374. What I did was:
- Add file /etc/systemd/network/99-default.link
- Content:
[Link]
# NamePolicy=kernel database onboard slot path
MACAddressPolicy=none

- Reboot the server

Then, looks like the issue is gone!
I'm not really sure what this fix is doing but THANK YOU!!! My system was running fine and then today I noticed issues starting routers. I checked the syslog at /var/log and the errors I had about a persistent MAC address led me to this thread.

Post Reply