Modified /root/pve_source for Mini PC router

siebenish

New Member
Dec 23, 2021
2
0
1
43
Hi,

I've purchased a HUNSN mini PC like this one (amazon link) and installed Proxmox VE 7 on it and it seems to run fine so far. After trying to find a way of passing-through a M.2 Wifi/BT card (like this one, amazon link) to a debian VM, and not finding one, I reached out to the seller which sent me the info for applying this command below:

do you need to pve core display passthrough?Default vt-d is ok. If not work, may you try this script as below,

wget -q -O /root/pve_source 'https://bbs.x86pi.cn/file/topic/2023-01-02/file/79bf8f916aca457d9c05df5864018dd7b2.zip' && chmod +x /root/pve_source && /root/./pve_source

Hoping it will help.:)

I also found this discussion board where content like this is posted: https://bbs.x86pi.cn/?tagId=40163133124000

I further explained what I needed to do and I'm still waiting for a reply.

However, my concern with this is to understand if doing this is somewhat risky, security-wise. Can anyone comment on this?

Also, this is the disclaimer that prompts when running the command (selected N for now):

============================================================== 通 用 免 责 协 议 ==============================================================
  请务必认真阅读和理解本《软件许可使用协议》(以下简称《协议》)中规定的所有权利和限制。除非您接受本《协议》条款,否则您无权下载、安装或使用本”软件”及其相关服务。您一旦安装、复制、下载、访问或以其它方式使用本软件产品,将视为对本《协议》的接受,即表示您同意接受本《协议》各项条款的约束。如果您不同意本《协议》中的条款,请不要安装、复制或使用本软件。
  1. 权利声明
  本“软件”的一切知识产权,以及与”软件”相关的所有信息内容均为作者所有,受著作权法和国际著作权条约以及其他知识产权法律法规的保护。
  2. 许可范围
  2.1 下载、安装和使用:本软件为免费软件,用户可以非商业性、无限制数量地下载、安装及使用本软件。
  2.2 复制、分发和传播:用户可以非商业性、无限制数量地复制、分发和传播本软件产品。但必须保证每一份复制、分发和传播都是完整和真实的, 包括所有有关本软件产品的软件、电子文档, 版权和商标,亦包括本协议。
  3. 权利限制
  3.1 禁止反向工程、反向编译和反向汇编:用户不得对本软件产品进行反向工程(Reverse Engineer)、反向编译(Decompile)或反向汇编(Disassemble),同时不得改动编译在程序文件内部的任何资源。除法律、法规明文规定允许上述活动外,用户必须遵守此协议限制。
  3.2 组件分割:本软件产品是作为一个单一产品而被授予许可使用, 用户不得将各个部分分开用于任何目的。
  3.3 个别授权: 如需进行商业性的销售、复制、分发,包括但不限于软件销售、预装、捆绑等,必须获得作者的授权和许可。
  3.4 保留权利:本协议未明示授权的其他一切权利仍归作者所有,用户使用其他权利时必须获得作者的书面同意。
  4. 用户使用须知
  4.1 本软件提供 Proxmox VE 系统的相关功能:包括更换源、添加硬件概要信息、修改 Web UI 主题、直通配置功能、更改 CPU 工作模式、卸载非工作内核、网络校时服务器设置等;
  4.2 本软件仅适用于 Proxmox VE 7 操作系统,用户需手动运行,软件不会自动运行或后台驻留。如果用户因任何原因欲放弃使用本软件,可自行删除。
  4.3 本软件由作者提供产品支持。
  4.4 软件的修改和升级:作者保留为用户提供本软件的修改、升级版本的权利。
  4.5 本软件不含有任何旨在破坏用户计算机数据和获取用户隐私信息的恶意代码,不含有任何跟踪、监视用户计算机的功能代码,不会监控用户网上、网下的行为,不会收集用户使用其它软件、文档等个人信息,不会泄漏用户隐私。
  4.6 用户应在遵守法律及本协议的前提下使用本软件。用户无权实施包括但不限于下列行为:
  4.6.1 不得删除或者改变本软件的所有权利信息;
  4.6.2 不得故意避开或者破坏著作权人为保护本软件著作权而采取的技术措施;
  4.6.3 用户不得利用本软件误导、欺骗他人;
  4.6.4 违反国家规定,对计算机信息系统功能或网络资源进行删除、修改、增加、干扰,造成计算机信息系统不能正常运行;
  4.6.5 破坏本软件系统或网站的正常运行,故意传播计算机病毒等破坏性程序;
  4.6.6 其他任何危害计算机信息网络安全的。
  4.7 对于从非作者指定站点下载的本软件产品以及从非作者发行的介质上获得的本软件产品,作者无法保证该软件是否感染计算机病毒、是否隐藏有伪装的特洛伊木马程序或者黑客软件,使用此类软件,将可能导致不可预测的风险,建议用户不要轻易下载、安装、使用,作者不承担任何由此产生的一切法律责任。
  4.7.1 不得使用本软件发布违反国家法律的非法广告信息,如色情,赌博等,其造成的一切后果与本作者无关,请自觉营造和谐良性的网络营销环境。违法行为一经发现,本作者有权终止服务并追究法律责任。
  5.免责与责任限制
  5.1 本软件经过详细的测试,但不能保证与所有的软硬件系统完全兼容,不能保证本软件完全没有错误。如果出现不兼容及软件错误的情况,用户可登录论坛将情况报告作者,获得技术支持。如果无法解决兼容性问题,用户可以删除本软件。
  5.2 使用本软件产品风险由用户自行承担,在适用法律允许的最大范围内,对因使用或不能使用本软件所产生的损害及风险,包括但不限于直接或间接的个人损害、商业赢利的丧失、贸易中断、商业信息的丢失或任何其它经济损失,作者不承担任何责任。
  5.3 对于因电信系统或互联网网络故障、计算机故障或病毒、信息损坏或丢失、计算机系统问题或其它任何不可抗力原因而产生损失,作者不承担任何责任。
  5.4 用户违反本协议规定,对作者本人造成损害的。作者有权采取包括但不限于中断使用许可、停止提供服务、限制使用、法律追究等措施。
  6.法律及争议解决
  6.1 本协议适用中华人民共和国法律。
  6.2 因本协议引起的或与本协议有关的任何争议,各方应友好协商解决;协商不成的,任何一方均可将有关争议提交至作者指定仲裁委员会并按照其届时有效的仲裁规则仲裁;仲裁裁决是终局的,对各方均有约束力。
  7. 其他条款
  7.1 如果本协议中的任何条款无论因何种原因完全或部分无效或不具有执行力,或违反任何适用的法律,则该条款被视为删除,但本协议的其余条款仍应有效并且有约束力。
  7.2 作者有权根据有关法律、法规的变化的调整等因素修改本协议。修改后的协议会随附于新版本软件。当发生有关争议时,以最新的协议文本为准。如果不同意改动的内容,用户可以自行删除本软件。如果用户继续使用本软件,则视为您接受本协议的变动。
  7.3 本协议的一切解释权与修改权归作者。
=============================================================================================================================================

是否接受? (Y/y-接受 | N/n-不接受) : ^C

Which Google translates to:

==================================================== ============= General Disclaimer Agreement ======================================== =============================
Please be sure to carefully read and understand all the rights and restrictions stipulated in this "Software License Agreement" (hereinafter referred to as the "Agreement"). Unless you accept the terms of this "Agreement", you have no right to download, install or use the "Software" and its related services. Once you install, copy, download, access or use this software product in other ways, it will be deemed as your acceptance of this "Agreement", which means that you agree to be bound by the terms of this "Agreement". If you do not agree to the terms of this Agreement, please do not install, copy or use this software.
1. Statement of Rights
All intellectual property rights of the "software" and all information related to the "software" are owned by the author, and are protected by copyright laws, international copyright treaties, and other intellectual property laws and regulations.
2. Scope of License
2.1 Download, installation and use: This software is free software, and users can download, install and use this software for non-commercial and unlimited quantities.
2.2 Reproduction, distribution and dissemination: Users can reproduce, distribute and disseminate this software product in non-commercial and unlimited quantities. But you must ensure that every copy, distribution and dissemination is complete and true, including all software, electronic documents, copyrights and trademarks related to this software product, including this agreement.
3. Restriction of Rights
3.1 Prohibition of reverse engineering, reverse compilation and disassembly: users are not allowed to reverse engineer (Reverse Engineer), reverse compile (Decompile) or reverse assemble (Disassemble) this software product, and shall not modify and compile the internal program files any resource. Except for the above-mentioned activities that are expressly permitted by laws and regulations, users must abide by the restrictions of this agreement.
3.2 Component division: This software product is licensed as a single product, and users are not allowed to separate each part for any purpose.
3.3 Individual authorization: For commercial sales, reproduction, distribution, including but not limited to software sales, pre-installation, bundling, etc., authorization and permission from the author must be obtained.
3.4 Reservation of rights: All other rights not expressly authorized by this agreement are still owned by the author, and the user must obtain the author's written consent when using other rights.
4. Instructions for users
4.1 This software provides related functions of Proxmox VE system: including changing source, adding hardware summary information, modifying Web UI theme, direct configuration function, changing CPU working mode, uninstalling non-working kernel, setting network time server, etc.;
4.2 This software is only applicable to Proxmox VE 7 operating system, the user needs to run it manually, the software will not run automatically or stay in the background. If the user wants to give up using the software for any reason, he can delete it by himself.
4.3 The software is supported by the author.
4.4 Software modification and upgrade: The author reserves the right to provide users with the modification and upgrade version of this software.
4.5 This software does not contain any malicious codes designed to destroy user computer data and obtain user privacy information, does not contain any function codes to track and monitor user computers, does not monitor user online or offline behavior, and does not collect information about other information used by users. Personal information such as software and documents will not leak user privacy.
4.6 Users should use the software under the premise of complying with the law and this agreement. Users do not have the right to perform acts including but not limited to the following:
4.6.1 Do not delete or change all rights information of this software;
4.6.2 Do not deliberately avoid or destroy the technical measures taken by the copyright owner to protect the software copyright;
4.6.3 Users shall not use this software to mislead or deceive others;
4.6.4 Deleting, modifying, adding, or interfering with computer information system functions or network resources in violation of state regulations, causing the computer information system to malfunction;
4.6.5 Destroy the normal operation of the software system or website, intentionally spread computer viruses and other destructive programs;
4.6.6 Anything else that endangers the security of the computer information network.
4.7 For the software products downloaded from sites not designated by the author and obtained from media not issued by the author, the author cannot guarantee whether the software is infected with computer viruses, whether there are camouflaged Trojan horse programs or hacker software hidden. Such software may lead to unpredictable risks. Users are advised not to download, install, or use lightly. The author does not assume any legal responsibilities arising therefrom.
4.7.1 Do not use this software to publish illegal advertising information that violates national laws, such as pornography, gambling, etc. All consequences caused by it have nothing to do with the author, please consciously create a harmonious and benign network marketing environment. Once the violation is discovered, the author has the right to terminate the service and pursue legal responsibility.
5. Disclaimer and Limitation of Liability
5.1 This software has been tested in detail, but it cannot be guaranteed to be fully compatible with all software and hardware systems, nor can it be guaranteed that this software is completely error-free. In case of incompatibility and software errors, users can log in to the forum to report the situation to the author for technical support. If the compatibility problem cannot be resolved, the user may delete the software.
5.2 The risk of using this software product is borne by the user. To the maximum extent permitted by applicable laws, the damages and risks arising from the use or inability to use this software, including but not limited to direct or indirect personal damages and loss of commercial profits , trade interruption, loss of business information, or any other economic loss, the author assumes no responsibility.
5.3 The author shall not be liable for any losses arising from telecommunication system or Internet network failure, computer failure or virus, information damage or loss, computer system problems or any other force majeure.
5.4 The user violates the provisions of this agreement and causes damage to the author himself. The author has the right to take measures including, but not limited to, suspending the license, stopping the provision of services, restricting the use, and pursuing legal action.
6. Law and dispute resolution
6.1 This Agreement shall be governed by the laws of the People's Republic of China.
6.2 Any dispute arising from or related to this agreement shall be settled through friendly negotiation between the parties; if the negotiation fails, either party may submit the relevant dispute to an arbitration committee designated by the author for arbitration in accordance with its then effective arbitration rules; arbitration The award is final and binding on all parties.
7. Other Terms
7.1 If any clause in this agreement is wholly or partially invalid or unenforceable, or violates any applicable law, for any reason, then the clause is deemed to be deleted, but the rest of the clauses in this agreement shall still be valid and binding force.
7.2 The author has the right to modify this agreement according to factors such as adjustments to changes in relevant laws and regulations. A revised agreement will accompany new versions of the software. In the event of a dispute, the latest agreement text shall prevail. If you do not agree with the modified content, the user can delete the software by himself. If the user continues to use the software, it is deemed that you accept the changes of this agreement.
7.3 All rights of interpretation and modification of this agreement belong to the author.
==================================================== ==================================================== ============================================

Whether to accept? (Y/y-accept | N/n-not accept) :
 
Last edited:
However, my concern with this is to understand if doing this is somewhat risky, security-wise. Can anyone comment on this?
Yes, of course it is. I would NEVER run anything like this on my machine! I'd rather buy new hardware, if this would be a hardware problem.

Maybe you can describe what your actual problem is, so that we can help you and provide instructions so that you can help yourself.
 
Thanks for the input. Regarding that script, I was hoping someone could know something more specific out of that, but in any case it is fishy.

I'm trying to pass the Wi-fi and Bluetooth PCI devices to a VM with OPNsense and getting this error below; VT-d is enabled in the BIOS but I can't find any specific IOMMU option to enable.

s01.jpg

In any case, I haven't gone through every suggestion in the documentation yet.
 
I'm trying to pass the Wi-fi and Bluetooth PCI devices to a VM with OPNsense and getting this error below; VT-d is enabled in the BIOS but I can't find any specific IOMMU option to enable.

In any case, I haven't gone through every suggestion in the documentation yet.
Maybe start with enabling IOMMU (on the software side) as explained in the Proxmox manual?
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!