[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug] Error when running network-attach


  • To: "xen-users" <xen-users@xxxxxxxxxxxxxxxxxxxx>
  • From: "Paul Leiber" <paul@xxxxxxxxxxxxxxxx>
  • Date: Mon, 06 Feb 2023 09:09:41 +0000
  • Arc-authentication-results: i=1; strato.com; arc=none; dkim=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1675674584; s=strato-dkim-0002; d=strato.com; h=Subject:Message-ID:To:Date:References:In-Reply-To:From:Cc:Date:From: Subject:Sender; bh=u/hxQ5bRqCUAQ+3mLrJ4+Y0EW8DHRqp3k9cI08p6Gf0=; b=LP1D39xRV80OdXJ99aXwTSvT2JtvRigm0YF6buItLgswOqdd4tA7fsUTAH37wly68P TZSxRZoFE4wJDbjR9H4E1Ewktj3ZWNLz4yhWQjNFY6ojUVBQjmtckrNWYTnCpsYFz7XE 9mNpUb/r8OG9HMjYx5lu36Ppf/DHgQ4DFdSHTiTwEmSGpQt4qG49PZ+igEl/3EDVAf1t aMZIASTLRZmNkfLOXb8DUs6K08DU3ajD8B1Oq8ay6y1Y1yjk0DyhKLnf3wG8KSr/dncj CivPrxjk4EJqJm3Id12gdMgUEecBKd9qcj+sY8gnGPemc2o3ILOQ/K64yC8f28v4ivL2 ObKQ==
  • Arc-seal: i=1; a=rsa-sha256; t=1675674584; cv=none; d=strato.com; s=strato-dkim-0002; b=BLK8J57ys9Wrha9VbRv5vv4+yAVVeYHbK+XEyye7ebThQxL3ocTfv3/o38WtWGVXvA XcMujzI4LS5GF90iYRZ3w0JKeI//s27EXk1+Z6SnrUkezQZ/CtZZM7mhLKJLW8PrZjuj sGFzEfKqF/LBxtZGgvxtQ/4iwXwisfxQDwcr2f9bifw3l5T8jCefcwMnHCXWKAupEeKK QQrcxesvh2OSXaSVQGfuiOdqeDXLjXJNao0lkrSZLA8BQa+J5yhW00FFgtjKi9J2MtfA Iv+lTsrrQKbokb8vHAc8iI001OrB5bxxsO0kX1H0gm+uqttu8pWcLr+VeOup32ZxR63d La4g==
  • Delivery-date: Mon, 06 Feb 2023 09:10:19 +0000
  • List-id: Xen user discussion <xen-users.lists.xenproject.org>

Hi, 

you probably need to set up the bridge xenbr0 (default name) manually in Dom0. 
Please have a look at

https://xenbits.xen.org/docs/unstable/man/xl-network-configuration.5.html#bridge

and

https://wiki.xenproject.org/wiki/Network_Configuration_Examples_(Xen_4.1%2B) 

There seem to be other errors in your log which I can't diagnose.

Paul



 

________________________________
Von: 蔡力刚 <cai_ligang@xxxxxxxxxxxxxxx>
Gesendet: Montag, 6. Februar 2023 09:53
An: xen-users
Betreff: [Bug] Error when running network-attach 

Hi,

When I try to add a network with xl network-attach command,
the log show some errors:

root@RK3588:/mnt# xl network-attach 0
libxl: error: libxl_xshelp.c:201:libxl__xs_read_mandatory: xenstore read 
failed: `/libxl/0/type': No such file or directory
libxl: warning: libxl_dom.c:52:libxl__domain_type: unable to get domain type 
for domid=0, assuming HVM
[   50.081420] rockchip-thermal fec00000.tsadc: Missing rockchip,grf property
[   50.081631] rockchip-thermal fec00000.tsadc: failed to register sensor 0: 
-517
[   50.081667] rockchip-thermal fec00000.tsadc: failed to register sensor[0] : 
error = -517
[   50.104335] rockchip-thermal fec00000.tsadc: Missing rockchip,grf property
[   50.104507] rockchip-thermal fec00000.tsadc: failed to register sensor 0: 
-517
[   50.104544] rockchip-thermal fec00000.tsadc: failed to register sensor[0] : 
error = -517
(XEN) grant_table.c:1869:d0v1 Expanding d0 grant table from 1 to 2 frames
(XEN) grant_table.c:1869:d0v1 Expanding d0 grant table from 2 to 3 frames
(XEN) grant_table.c:1869:d0v1 Expanding d0 grant table from 3 to 4 frames
(XEN) grant_table.c:1869:d0v1 Expanding d0 grant table from 4 to 5 frames
[   50.155613] xen_netfront: backend supports XDP headroom
[   50.189706] vif vif-0-0 vif0.0: Guest Rx ready
libxl: error: libxl_exec.c:117:libxl_report_child_exitstatus: 
/etc/xen/scripts/vif-bridge online [1044] exited with error status 1
libxl: error: libxl_device.c:1259:device_hotplug_child_death_cb: script: Could 
not find bridge device xenbr0
libxl: error: libxl_device.c:1402:device_addrm_aocomplete: Unable to add vif 
with id 0
libxl_device_nic_add failed.
root@RK3588:/mnt# (XEN) gnttab_mark_dirty not implemented yet

what does vif-bridge exited with error status 1 mean?
"Could not find bridge device xenbr0", is that means I have to create a 
xenbr0?How to create?

I create a domu with the config below:
kernel = "/media/sdcard0/domu-Image"
memory = 1024
name = "guest1"
vcpus = 2
serial="pty"
vif = ['']
disk = [ 'phy:/dev/mmcblk2p2,xvda,w' ]
extra = 'console=hvc0 root=/dev/xvda rw clk_ignore_unused'

There also has the same error log above, and domu bring up failed.
If delete vif option. domu can bring up. and using network-attach create a 
network.
The network can work, dom0 and domu can ping each other successfully.
But the network type seems is NAT, How can I set up a bridged networking ?

Best regards
Cailigang

________________________________
Von: 蔡力刚 <cai_ligang@xxxxxxxxxxxxxxx>
Gesendet: Montag, 6. Februar 2023 09:53
An: xen-users
Betreff: [Bug] Error when running network-attach 

Hi,
When I try to add a network with xl network-attach command,
the log show some errors:
root@RK3588:/mnt# xl network-attach 0
libxl: error: libxl_xshelp.c:201:libxl__xs_read_mandatory: xenstore read 
failed: `/libxl/0/type': No such file or directory
libxl: warning: libxl_dom.c:52:libxl__domain_type: unable to get domain type 
for domid=0, assuming HVM
[ 50.081420] rockchip-thermal fec00000.tsadc: Missing rockchip,grf property
[ 50.081631] rockchip-thermal fec00000.tsadc: failed to register sensor 0: -517
[ 50.081667] rockchip-thermal fec00000.tsadc: failed to register sensor[0] : 
error = -517
[ 50.104335] rockchip-thermal fec00000.tsadc: Missing rockchip,grf property
[ 50.104507] rockchip-thermal fec00000.tsadc: failed to register sensor 0: -517
[ 50.104544] rockchip-thermal fec00000.tsadc: failed to register sensor[0] : 
error = -517
(XEN) grant_table.c:1869:d0v1 Expanding d0 grant table from 1 to 2 frames
(XEN) grant_table.c:1869:d0v1 Expanding d0 grant table from 2 to 3 frames
(XEN) grant_table.c:1869:d0v1 Expanding d0 grant table from 3 to 4 frames
(XEN) grant_table.c:1869:d0v1 Expanding d0 grant table from 4 to 5 frames
[ 50.155613] xen_netfront: backend supports XDP headroom
[ 50.189706] vif vif-0-0 vif0.0: Guest Rx ready
libxl: error: libxl_exec.c:117:libxl_report_child_exitstatus: 
/etc/xen/scripts/vif-bridge online [1044] exited with error status 1
libxl: error: libxl_device.c:1259:device_hotplug_child_death_cb: script: Could 
not find bridge device xenbr0
libxl: error: libxl_device.c:1402:device_addrm_aocomplete: Unable to add vif 
with id 0
libxl_device_nic_add failed.
root@RK3588:/mnt# (XEN) gnttab_mark_dirty not implemented yet
what does vif-bridge exited with error status 1 mean?
"Could not find bridge device xenbr0", is that means I have to create a 
xenbr0?How to create?
I create a domu with the config below:
kernel = "/media/sdcard0/domu-Image"
memory = 1024
name = "guest1"
vcpus = 2
serial="pty"
vif = ['']
disk = [ 'phy:/dev/mmcblk2p2,xvda,w' ]
extra = 'console=hvc0 root=/dev/xvda rw clk_ignore_unused'
There also has the same error log above, and domu bring up failed.
If delete vif option. domu can bring up. and using network-attach create a 
network.
The network can work, dom0 and domu can ping each other successfully.
But the network type seems is NAT, How can I set up a bridged networking ?
Best regards
Cailigang


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.