Re: ACRN Networking problem
It looks like the QEMU set-up is slightly different. Could it be that you’re using libvirt for it and it’s setting up a NAT network? If true, that DHCP request gets handled locally on the machine and your network only see one IP address.
I would try with a MAC address that’s known to be accepted by your DHCP server. The virtio-net implementation also supports MacVTap, I have never played with it and I’m not sure it would solve the problem since it makes the User VM NIC directly visible on your network.
Thanks, Geoffroy
From: acrn-users@... <acrn-users@...>
On Behalf Of Jianjie Lin
Bummer. Did you specify a MAC address in your launch script (one that you know would be accepted by your DHCP server)?
One thing that I guess could happen is that yoir infrastructure will not allow to have more than 1 IP address per network connection. Do you know if that’s the case by any chance?
Von:
acrn-users@... [mailto:acrn-users@...]
Im Auftrag von Geoffroy Van Cutsem
Bummer. Did you specify a MAC address in your launch script (one that you know would be accepted by your DHCP server)?
One thing that I guess could happen is that yoir infrastructure will not allow to have more than 1 IP address per network connection. Do you know if that’s the case by any chance?
Can you re-run the dhclient tool with “-v” to get more verbose messages? Hopefully there will be a bit more info in there.
Thanks, Geoffroy
|
|||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||
Re: ACRN Networking problem
Jianjie Lin
Bummer. Did you specify a MAC address in your launch script (one that you know would be accepted by your DHCP server)? è No, the uos mac address is not register in the my DHCP server, may be it is a problem One thing that I guess could happen is that yoir infrastructure will not allow to have more than 1 IP address per network connection. Do you know if that’s the case by any chance? è It works in the qemu, he has the subnet with 192.168.122.1 somehow like this
Von: acrn-users@... [mailto:acrn-users@...]
Im Auftrag von Geoffroy Van Cutsem
Bummer. Did you specify a MAC address in your launch script (one that you know would be accepted by your DHCP server)?
One thing that I guess could happen is that yoir infrastructure will not allow to have more than 1 IP address per network connection. Do you know if that’s the case by any chance?
Can you re-run the dhclient tool with “-v” to get more verbose messages? Hopefully there will be a bit more info in there.
Thanks, Geoffroy
|
|||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||
Re: ACRN Networking problem
Bummer. Did you specify a MAC address in your launch script (one that you know would be accepted by your DHCP server)?
One thing that I guess could happen is that yoir infrastructure will not allow to have more than 1 IP address per network connection. Do you know if that’s the case by any chance?
Can you re-run the dhclient tool with “-v” to get more verbose messages? Hopefully there will be a bit more info in there.
Thanks,
Geoffroy
On 16 Sep 2021, at 16:38, Jianjie Lin <Jianjie.Lin@...> wrote:
|
|||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||
Re: ACRN Networking problem
Jianjie Lin
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
Von: acrn-users@... [mailto:acrn-users@...]
Im Auftrag von Geoffroy Van Cutsem
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
From:
acrn-users@... <acrn-users@...>
On Behalf Of Jianjie Lin
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
Von:
acrn-users@... [mailto:acrn-users@...]
Im Auftrag von Geoffroy Van Cutsem
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! Geoffroy
From:
acrn-users@... <acrn-users@...>
On Behalf Of Jianjie Lin
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
Von:
acrn-users@... [mailto:acrn-users@...]
Im Auftrag von Geoffroy Van Cutsem
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
From:
acrn-users@... <acrn-users@...>
On Behalf Of Jianjie Lin
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 VMIn 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@... Mobil: +49-176-8443-6814
|
|||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||
Re: ACRN Networking problem
Jianjie Lin
Hi Geoffory,
Thank you, I do not run the command the “sudo dhclient enpos4” before, But I will try it later Thanks Jianjie Lin
Von: acrn-users@... [mailto:acrn-users@...]
Im Auftrag von Geoffroy Van Cutsem
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
From:
acrn-users@... <acrn-users@...>
On Behalf Of Jianjie Lin
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
Von:
acrn-users@... [mailto:acrn-users@...]
Im Auftrag von Geoffroy Van Cutsem
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! Geoffroy
From:
acrn-users@... <acrn-users@...>
On Behalf Of Jianjie Lin
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
Von:
acrn-users@... [mailto:acrn-users@...]
Im Auftrag von Geoffroy Van Cutsem
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
From:
acrn-users@... <acrn-users@...>
On Behalf Of Jianjie Lin
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 VMIn 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@... Mobil: +49-176-8443-6814
|
|||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||
Re: ACRN Networking problem
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
From: acrn-users@... <acrn-users@...>
On Behalf Of Jianjie Lin
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
Von: acrn-users@... [mailto:acrn-users@...]
Im Auftrag von Geoffroy Van Cutsem
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! Geoffroy
From:
acrn-users@... <acrn-users@...>
On Behalf Of Jianjie Lin
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
Von:
acrn-users@... [mailto:acrn-users@...]
Im Auftrag von Geoffroy Van Cutsem
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
From:
acrn-users@... <acrn-users@...>
On Behalf Of Jianjie Lin
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 VMIn 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@... Mobil: +49-176-8443-6814
|
|||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||
Re: ACRN Networking problem
Jianjie Lin
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
Von: acrn-users@... [mailto:acrn-users@...]
Im Auftrag von Geoffroy Van Cutsem
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! Geoffroy
From:
acrn-users@... <acrn-users@...>
On Behalf Of Jianjie Lin
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
Von:
acrn-users@... [mailto:acrn-users@...]
Im Auftrag von Geoffroy Van Cutsem
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
From:
acrn-users@... <acrn-users@...>
On Behalf Of Jianjie Lin
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 VMIn 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@... Mobil: +49-176-8443-6814
|
|||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||
Re: ACRN Networking problem
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! Geoffroy
From: acrn-users@... <acrn-users@...>
On Behalf Of Jianjie Lin
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
Von:
acrn-users@... [mailto:acrn-users@...]
Im Auftrag von Geoffroy Van Cutsem
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
From:
acrn-users@... <acrn-users@...>
On Behalf Of Jianjie Lin
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 VMIn 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@... Mobil: +49-176-8443-6814
|
|||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||
Re: ACRN Networking problem
Jianjie Lin
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
Von: acrn-users@... [mailto:acrn-users@...]
Im Auftrag von Geoffroy Van Cutsem
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
From:
acrn-users@... <acrn-users@...>
On Behalf Of Jianjie Lin
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 VMIn 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@... Mobil: +49-176-8443-6814
|
|||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||
Re: ACRN Networking problem
Jianjie Lin
Hi geoffory, In my case If I use the DHCP, no ipv4 will be assigned to bridge I change to the static ip address, and It works. But I still want to know how use the dhcp. Thanks, Jianjie Lin
Von: acrn-users@... [mailto:acrn-users@...]
Im Auftrag von Geoffroy Van Cutsem
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
From:
acrn-users@... <acrn-users@...>
On Behalf Of Jianjie Lin
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 VMIn 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@... Mobil: +49-176-8443-6814
|
|||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||
Re: ACRN Networking problem
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
From: acrn-users@... <acrn-users@...>
On Behalf Of Jianjie Lin
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 VMIn 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@... Mobil: +49-176-8443-6814
|
|||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||
ACRN Networking problem
Jianjie Lin
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 VMIn 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@... Mobil: +49-176-8443-6814
|
|||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||
2021 ACRN Project Technical Community Meeting (2021/1~2021/12): @ Monthly 3rd Wednesday 4PM (China-Shanghai), Wednesday 10AM (Europe-Munich), Tuesday 1AM (US-West Coast)
Zou, Terry
Special Notes: If you have Zoom connection issue by using web browser, please
install & launch Zoom application, manually input the meeting ID (320664063)
to join the Zoom meeting.
Agenda & Archives:
Project ACRN: A flexible, light-weight, open source reference hypervisor for IoT devices
We invite you to attend a monthly "Technical Community" meeting where we'll meet community members and talk about the ACRN project and plans.
As we explore community interest and involvement opportunities, we'll (re)schedule these meetings at a time convenient to most attendees:
Or visit Github wiki if you can’t access Google doc: https://github.com/projectacrn/acrn-hypervisor/wiki/ACRN-Committee-and-Working-Group-Meetings#technical-community-meetings
|
|||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||
Re: How/Where to use ACRN Shell Commands
Hi Feng,
These are accessible via the serial port interface. It’s the only way to have access to the ACRN shell.
Do you have a serial port on your system?
Thanks, Geoffroy
From: acrn-users@... <acrn-users@...>
On Behalf Of Pan, Fengjunjie
Hello community,
Does anyone know how to use these ACRN shell commands? https://projectacrn.github.io/latest/user-guides/acrn-shell.html I could not find anywhere to open a console which can execute them.
Regards, Feng
|
|||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||
How/Where to use ACRN Shell Commands
Pan, Fengjunjie
Hello community,
Does anyone know how to use these ACRN shell commands? https://projectacrn.github.io/latest/user-guides/acrn-shell.html I could not find anywhere to open a console which can execute them.
Regards, Feng
|
|||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||
Re: GPU-g is gpu sharing or cutting?
Zou, Terry
Hi Jianjie, basically GVT-g is based on mediated passthrough technology for graphics sharing between VMs, that could provide full GPU feature as vGPU in each VM, and also secure the isolation among VMs. So for memory virtualization, it is not simplify ‘cut’ or ‘sharing’ for GPU memory assignment, but at least from general vGPU perspective, one VM cannot touch/access other VM’s memory address, and Hypervisor/DM would handle GPA<->HPA translation right.
GVT-g passes through the performance-critical operations, such as Frame Buffer and Command Buffer from the VM. For the global graphics memory space, GVT-g uses graphics memory resource partitioning and an address space ballooning mechanism. You can find more detailed graphics memory virtualization arch design in: https://projectacrn.github.io/latest/developer-guides/hld/hld-APL_GVT-g.html#graphics-memory-virtualization
Best & Regards Terry
From: acrn-users@... <acrn-users@...>
On Behalf Of Jianjie Lin
Hi ACRN community,
As I got reply last time from the community, that by using the gvt-g, we CAN NOT assign the e.g. 60 % GPU to uos. Now I have another question is about the theory of GVT-G, If I use the gvt-g with parameter -G "10 128 6" to launch UOS0, my question is that the other UOS such as UOS1 can access this part GPU or not? Or more especially, the gvt-g will “cut” the GPU or just doing the GPU-sharing?
Thank you for your reply in advanced. Cheers, Jianjie Lin
|
|||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||
GPU-g is gpu sharing or cutting?
Jianjie Lin
Hi ACRN community,
As I got reply last time from the community, that by using the gvt-g, we CAN NOT assign the e.g. 60 % GPU to uos. Now I have another question is about the theory of GVT-G, If I use the gvt-g with parameter -G "10 128 6" to launch UOS0, my question is that the other UOS such as UOS1 can access this part GPU or not? Or more especially, the gvt-g will “cut” the GPU or just doing the GPU-sharing? 1. “cut” means that if we assign this part to UOS0, and other UOS CAN not access this part 2. “sharing” means that other UOS can share the GPU with UOS0 in the same GPU memory.
Thank you for your reply in advanced. Cheers, Jianjie Lin
|
|||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||
Re: [WHL] launch two UOSs in the same time
Jianjie Lin
As you suggest, I add each UOS launch script with an UUID value, and launch the file according to the order of uuid, defined in the vm_uuid.h file. And, Yes, only one UUID is sufficient. Thank you.
Actually, I found some documentation error in the version of v2.0 For example. In this tutorial: https://projectacrn.github.io/2.0/getting-started/rt_industry_ubuntu.html for build ACRN Documented as $ make all BOARD_FILE=misc/acrn-config/xmls/board-xmls/whl-ipc-i7.xml SCENARIO_FILE=misc/acrn-config/xmls/config-xmls/whl-ipc-i7/industry.xml RELEASE=0 $ sudo make install $ sudo cp build/hypervisor/acrn.bin /boot/acrn/
è It should be $ make all BOARD_FILE=misc/acrn-config/xmls/board-xmls/whl-ipc-i7.xml SCENARIO_FILE=misc/acrn-config/xmls/config-xmls/whl-ipc-i7/industry.xml RELEASE=0 $ sudo make install BOARD=whl-ipc-i7 SCENARIO=industry $ sudo cp build/hypervisor/acrn.bin /boot/acrn/
Otherwise, the sudo make install will automatically install BOARD as nuc7i7dnb and SCENARIO=sdc.
Another example,
if you did not define the CONFIG_HV_RAM_SIZE in the scenario file, and build the acrn-hypervisor, it will has a problem of .bss. In my case, the old whiskey board is automatilcally defined as 0x1400000, which is not enough for the new whiskey. I manually change the config in the build/hypervisor/.config, file. And rebuild again.
By the way, if I recompile the acrn-hypervisor with different scenario, should I recompile my acrn-kernel again.
Cheers Jianjie Lin
Von: acrn-users@... [mailto:acrn-users@...]
Im Auftrag von Geoffroy Van Cutsem
Thanks for the confirmation Jianjie Lin!
You shouldn’t have to add more UUIDs to that file though, using different ones in each launch script (by adding the “-U” option) should be sufficient, were you not able to do this without adding new ones??
Thanks!
From:
acrn-users@... <acrn-users@...>
On Behalf Of Jianjie Lin
Hi Geoffory, Thank you very much. The problem is fixed. It really depends on the UUID in my case. I need to add different UUID from the vm_uuid.h .. Thanks again.
Cheers, Jianjie Lin
Von: acrn-users@... [mailto:acrn-users@...]
Im Auftrag von Geoffroy Van Cutsem
That header file contains a fixed (and static) list of UUIDs that can be used to launch VMs. I’m thinking that perhaps what is happening is the acrn-dm uses the same UUID by default for the second VM because it is not specified via the command-line. Adding the -U parameter will force it to use a UUID that we have chosen ourselves, it *must* be one from the list in that header file.
Does that help clarify?
Thanks, Geoffroy
From:
acrn-users@... <acrn-users@...>
On Behalf Of Jianjie Lin
Sorry, you mean the uuid can only assigned to the one which is saved in the vm_uuid.h? Am I missunderstanding?
Mit freundlichen Grüßen From:
acrn-users@... <acrn-users@...> on behalf of Geoffroy Van Cutsem <geoffroy.vancutsem@...>
I’m suspicious of something wrong with the UUIDs.
E.g.: -U 615db82a-e189-4b4f-8dbb-d321343e4ab3 (similar to what you see here: https://github.com/projectacrn/acrn-hypervisor/blob/master/misc/config_tools/data/sample_launch_scripts/nuc/launch_hard_rt_vm.sh#L47, but with a different UUID taken from here: https://github.com/projectacrn/acrn-hypervisor/blob/master/hypervisor/include/common/vm_uuids.h
Geoffroy
From:
acrn-users@... <acrn-users@...>
On Behalf Of Jianjie Lin
Is that happening no matter which order you try to load them ? .--> yes, no matter in the gpu version or console version. The first one is always correct, but the second one fails always.
Von:
acrn-users@... [mailto:acrn-users@...]
Im Auftrag von Geoffroy Van Cutsem
Hi Jianjie Lin,
Do you have more logs to share when the second VM fails to start (acrn-dm console & serial port output)? Is that happening no matter which order you try to load them?
A couple of remarks/questions: * Your industry.xml file only ever assigns pCPU 0 and 1 to all User VMs, but your console_launch_uos3_4.sh tries to use pCPUs 2 and 3 * Is gpu_launch_uos4.sh supposed to launch a Windows User VM? I see the ‘--windows’ parameter in it but it seems to want to use GVTg and picks up an image from a folder called “ubuntu_images”. The “--windows” parameter makes acrn-dm use the Oracle Virtio block device.
Thanks, Geoffroy
From:
acrn-users@... <acrn-users@...>
On Behalf Of Jianjie Lin
Hi ACRN Community,
We faced the problem of launching two UOSs at the same time. We deployed the whiskey lake board: whl-IPC-i7.xml, and we customize the scenario file with 4 Post-STD VM.
We can successfully launch one VM, but we can not create the second VM in the acrn kernel.
I attached the two launch file gpu_launch_uos3.sh console_launch_uos3_4.sh
Besides, I attach my board file and scenario file if it can help to find out the issue.
I add the following the command line in the file in the /etc/grub.d/40.cutsom for Gvt-g “i915.nuclear_pageflip=1 i915.avail_planes_per_pipe=0x010101 i915.domain_plane_owners=0x011100001111 i915.enable_gvt=1 i915.enable_guc=0 i915.enable_conformance_check=0”
For each launch file, we can launch the VM without any problem. But If I launch them at the same time, only the first one is successful, the another one is failed to created.
I go through the issue from GitHub. However, no direct solution is founded based on those comments. Do you have any idea how I can forward further?
Thank you very much firstly for your support.
Mit freundlichen Grüßen / Kind regards Jianjie Lin
E-Mail: Jianjie.Lin@... Mobil: +49-176-8443-6814
|
|||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||
Re: [WHL] launch two UOSs in the same time
Thanks for the confirmation Jianjie Lin!
You shouldn’t have to add more UUIDs to that file though, using different ones in each launch script (by adding the “-U” option) should be sufficient, were you not able to do this without adding new ones??
Thanks!
From: acrn-users@... <acrn-users@...>
On Behalf Of Jianjie Lin
Hi Geoffory, Thank you very much. The problem is fixed. It really depends on the UUID in my case. I need to add different UUID from the vm_uuid.h .. Thanks again.
Cheers, Jianjie Lin
Von: acrn-users@... [mailto:acrn-users@...]
Im Auftrag von Geoffroy Van Cutsem
That header file contains a fixed (and static) list of UUIDs that can be used to launch VMs. I’m thinking that perhaps what is happening is the acrn-dm uses the same UUID by default for the second VM because it is not specified via the command-line. Adding the -U parameter will force it to use a UUID that we have chosen ourselves, it *must* be one from the list in that header file.
Does that help clarify?
Thanks, Geoffroy
From:
acrn-users@... <acrn-users@...>
On Behalf Of Jianjie Lin
Sorry, you mean the uuid can only assigned to the one which is saved in the vm_uuid.h? Am I missunderstanding?
Mit freundlichen Grüßen From:
acrn-users@... <acrn-users@...> on behalf of Geoffroy Van Cutsem <geoffroy.vancutsem@...>
I’m suspicious of something wrong with the UUIDs.
E.g.: -U 615db82a-e189-4b4f-8dbb-d321343e4ab3 (similar to what you see here: https://github.com/projectacrn/acrn-hypervisor/blob/master/misc/config_tools/data/sample_launch_scripts/nuc/launch_hard_rt_vm.sh#L47, but with a different UUID taken from here: https://github.com/projectacrn/acrn-hypervisor/blob/master/hypervisor/include/common/vm_uuids.h
Geoffroy
From:
acrn-users@... <acrn-users@...>
On Behalf Of Jianjie Lin
Is that happening no matter which order you try to load them ? .--> yes, no matter in the gpu version or console version. The first one is always correct, but the second one fails always.
Von:
acrn-users@... [mailto:acrn-users@...]
Im Auftrag von Geoffroy Van Cutsem
Hi Jianjie Lin,
Do you have more logs to share when the second VM fails to start (acrn-dm console & serial port output)? Is that happening no matter which order you try to load them?
A couple of remarks/questions: * Your industry.xml file only ever assigns pCPU 0 and 1 to all User VMs, but your console_launch_uos3_4.sh tries to use pCPUs 2 and 3 * Is gpu_launch_uos4.sh supposed to launch a Windows User VM? I see the ‘--windows’ parameter in it but it seems to want to use GVTg and picks up an image from a folder called “ubuntu_images”. The “--windows” parameter makes acrn-dm use the Oracle Virtio block device.
Thanks, Geoffroy
From:
acrn-users@... <acrn-users@...>
On Behalf Of Jianjie Lin
Hi ACRN Community,
We faced the problem of launching two UOSs at the same time. We deployed the whiskey lake board: whl-IPC-i7.xml, and we customize the scenario file with 4 Post-STD VM.
We can successfully launch one VM, but we can not create the second VM in the acrn kernel.
I attached the two launch file gpu_launch_uos3.sh console_launch_uos3_4.sh
Besides, I attach my board file and scenario file if it can help to find out the issue.
I add the following the command line in the file in the /etc/grub.d/40.cutsom for Gvt-g “i915.nuclear_pageflip=1 i915.avail_planes_per_pipe=0x010101 i915.domain_plane_owners=0x011100001111 i915.enable_gvt=1 i915.enable_guc=0 i915.enable_conformance_check=0”
For each launch file, we can launch the VM without any problem. But If I launch them at the same time, only the first one is successful, the another one is failed to created.
I go through the issue from GitHub. However, no direct solution is founded based on those comments. Do you have any idea how I can forward further?
Thank you very much firstly for your support.
Mit freundlichen Grüßen / Kind regards Jianjie Lin
E-Mail: Jianjie.Lin@... Mobil: +49-176-8443-6814
|
|||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||
Re: [WHL] launch two UOSs in the same time
Jianjie Lin
Hi Geoffory, Thank you very much. The problem is fixed. It really depends on the UUID in my case. I need to add different UUID from the vm_uuid.h .. Thanks again.
Cheers, Jianjie Lin
Von: acrn-users@... [mailto:acrn-users@...]
Im Auftrag von Geoffroy Van Cutsem
That header file contains a fixed (and static) list of UUIDs that can be used to launch VMs. I’m thinking that perhaps what is happening is the acrn-dm uses the same UUID by default for the second VM because it is not specified via the command-line. Adding the -U parameter will force it to use a UUID that we have chosen ourselves, it *must* be one from the list in that header file.
Does that help clarify?
Thanks, Geoffroy
From:
acrn-users@... <acrn-users@...>
On Behalf Of Jianjie Lin
Sorry, you mean the uuid can only assigned to the one which is saved in the vm_uuid.h? Am I missunderstanding?
Mit freundlichen Grüßen From:
acrn-users@... <acrn-users@...> on behalf of Geoffroy Van Cutsem <geoffroy.vancutsem@...>
I’m suspicious of something wrong with the UUIDs.
E.g.: -U 615db82a-e189-4b4f-8dbb-d321343e4ab3 (similar to what you see here: https://github.com/projectacrn/acrn-hypervisor/blob/master/misc/config_tools/data/sample_launch_scripts/nuc/launch_hard_rt_vm.sh#L47, but with a different UUID taken from here: https://github.com/projectacrn/acrn-hypervisor/blob/master/hypervisor/include/common/vm_uuids.h
Geoffroy
From:
acrn-users@... <acrn-users@...>
On Behalf Of Jianjie Lin
Is that happening no matter which order you try to load them ? .--> yes, no matter in the gpu version or console version. The first one is always correct, but the second one fails always.
Von:
acrn-users@... [mailto:acrn-users@...]
Im Auftrag von Geoffroy Van Cutsem
Hi Jianjie Lin,
Do you have more logs to share when the second VM fails to start (acrn-dm console & serial port output)? Is that happening no matter which order you try to load them?
A couple of remarks/questions: * Your industry.xml file only ever assigns pCPU 0 and 1 to all User VMs, but your console_launch_uos3_4.sh tries to use pCPUs 2 and 3 * Is gpu_launch_uos4.sh supposed to launch a Windows User VM? I see the ‘--windows’ parameter in it but it seems to want to use GVTg and picks up an image from a folder called “ubuntu_images”. The “--windows” parameter makes acrn-dm use the Oracle Virtio block device.
Thanks, Geoffroy
From:
acrn-users@... <acrn-users@...>
On Behalf Of Jianjie Lin
Hi ACRN Community,
We faced the problem of launching two UOSs at the same time. We deployed the whiskey lake board: whl-IPC-i7.xml, and we customize the scenario file with 4 Post-STD VM.
We can successfully launch one VM, but we can not create the second VM in the acrn kernel.
I attached the two launch file gpu_launch_uos3.sh console_launch_uos3_4.sh
Besides, I attach my board file and scenario file if it can help to find out the issue.
I add the following the command line in the file in the /etc/grub.d/40.cutsom for Gvt-g “i915.nuclear_pageflip=1 i915.avail_planes_per_pipe=0x010101 i915.domain_plane_owners=0x011100001111 i915.enable_gvt=1 i915.enable_guc=0 i915.enable_conformance_check=0”
For each launch file, we can launch the VM without any problem. But If I launch them at the same time, only the first one is successful, the another one is failed to created.
I go through the issue from GitHub. However, no direct solution is founded based on those comments. Do you have any idea how I can forward further?
Thank you very much firstly for your support.
Mit freundlichen Grüßen / Kind regards Jianjie Lin
E-Mail: Jianjie.Lin@... Mobil: +49-176-8443-6814
|
|||||||||||||||||||||||||||||||||||||
|