Hi
Geoffroy
Unfortunately, it did not work. “sudo dhclient enp0s4” can not
even finished, it stuck in the terminal. By the way, I use v2.0
Thanks,
Jianjie Lin
Hi Jianjie,
The MAC address you specify there will be the MAC address you from within the User VM. Once you’ve booted the VM, run “ip a” in it, and the Ethernet
interface should have that MAC address.
I just looked things up on one of my system (running some version of ACRN in between 2.4 and 2.5). The interface is there but it is down by default.
If I manually run “sudo dhclient enp0s4” then it comes up and gets an IP address. Can you try this on your side (if you have not already done so). My User VM is based on Ubuntu. I have not investigated at all why the network interface is down by default (yet
:-)).
Thanks,
Geoffroy
Hi geoffory,
I try this before, but it makes difference.
By the way is this mac address of tap_0 or something else? I use the tap0 mac address
Thanks
Jianjie LIN
Hi Jianjie,
Can you try to specify a MAC address in your launch script? E.g.:
-s 4,virtio-net,<tap_name>,[mac=<XX:XX:XX:XX:XX:XX>]
(from
https://projectacrn.github.io/latest/developer-guides/hld/virtio-net.html)
I have never played with that myself but hopefully this can help you!
Thanks,
Geoffroy
Hi Geoffory,
I Just figure out why the DHCP can not work, since the acrn-br0 generates a random mac-address, since the IT uni does not allow the random mac-address.
Therefore, I add the mac-address in the file /usr/lib/system/network/50-acrn.netdev with additional item: MACAddress=xx.xx.xxx.xx
Now the dhcp is correct.
However,
I found in the UOS, by using the virtio-net, I can generate an Ethernet name with enp4s0, but the same, no ip address is assigned. I can use the static ip address
as before. But it is not so nice.
My question, is it possible of acrn bridge also an address space generates, like the normal virtual machine?
Since I cannot see the tap0 has an internet space.
Thanks
Jianjie Lin
Hi Jianjie,
Can you send us the output of “ip a” after a reboot, confirm whether you have internet access and then the same output after launching the User VM?
You don’t have any IP address (IPv4) assigned to your bridge below, that’s where the problem is coming from but I do not know why you don’t have
such IP address assigned to it. Are you using DHCP on your network or are you using statically assigned IP addresses?
Thanks,
Geoffroy
Hi Acrn community,
I just faced another problem in terms of networking.
I follow the tutorial from the document by using
Enable network sharing for the User VM
In the
Ubuntu Service VM, enable network sharing for the User VM:
$ sudo systemctl enable systemd-networkd
$ sudo systemctl start systemd-networkd
and the ifconfig I got is:
acrn-br0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet6 fe80::502a:fbff:fe20:e829 prefixlen 64 scopeid 0x20<link>
ether 52:2a:fb:20:e8:29 txqueuelen 1000 (Ethernet)
RX packets 259 bytes 28200 (28.2 KB)
RX errors 0 dropped 3 overruns 0 frame 0
TX packets 35 bytes 8894 (8.8 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
enp1s0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether b0:41:6f:03:c6:1a txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device memory 0xa1200000-a121ffff
enp2s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
ether b0:41:6f:03:c6:1b txqueuelen 1000 (Ethernet)
RX packets 259 bytes 31826 (31.8 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 35 bytes 8894 (8.8 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device memory 0xa1100000-a111ffff
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 119 bytes 9331 (9.3 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 119 bytes 9331 (9.3 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
tap0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether 9e:80:1e:99:4f:82 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
virbr0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
inet 192.168.122.1 netmask 255.255.255.0 broadcast 192.168.122.255
ether 52:54:00:0b:09:e0 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
After that, I do not have internet access anymore.
Do you have any suggestions on how to fix the problem?
Moreover, I test with the console version, and it also has no internet.
For your information, I have attached my launch file.
Mit freundlichen Grüßen / Kind regards
--------------------------------------------------------
Jianjie Lin
E-Mail:
Jianjie.Lin@...