Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[分享经验]关于给虚拟机挂载共享文件后,虚拟机网络异常的问题

Featured Replies

今晚折腾了一个晚上,终于解决了。其实不是啥大问题,这里分享一下,也当给自己留一个标记。

 

问题:虚拟机网络正常,在Unraid虚拟机设置里挂载新目录后,Linux 虚拟机内便无法ping、无法curl,显示 unreachable。

原因:通过GUI修改、新增了挂载目录信息后,网络相关的 pci bus 被偷偷修改了(例如由0x01变为了0x03,原先的0x01变成了挂载目录的pci bus)。

解决方案:修改新增挂载目录并保存后,再次进入设置,打开 XML 视图,把涉及到的新旧 pci bus 位置对调,确保网络相关的 pci bus 不变。例如原先是 [网络-0x01],现在变成了[挂载目录-0x01]、[网络-0x03],修改成[挂载目录-0x03]、[网络-0x01]

参考资料:

 

实际例子:629277221_.thumb.png.4329adc40b2ccc9fc3fb0d72b2831cd7.png

 

这是修改前、后的XML视图文本的变化图。可以看到由于我们新添加了一个共享文件夹,Unraid 把原先分配给virtio-net的pci 号 0x01 分配给了新添加的共享文件夹,并再依序给virtio-net换上了新的 0x03 pci 号。此次更换可能导致了系统内不识别(或别的),我们只需要把共享文件夹的修改为 0x03,virtio-net修改回0x01即可。

 

吐槽:个人怀疑新建虚拟机的时候就把共享文件夹给挂上,让网络的pci号从安装开始就保持不变,应该不会出现这个问题。以及这个问题都四年了,Unraid还没有修复,这……只能说是用户自力更生了

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.