pve 挂着nas上的iso

Since I just wasted like an hour trying to figure this out, figured I might as well post.

I am running freenas 9.10, and like everyone else, was having problems. I could access either a CIFS or NFS share via an fstab command, but that command would have to be made to every single /etc/fstab file on each node of the cluster.

when I made used the add Storage->NFS option from the gui, the default path was incorrect (/mnt/pve/<storage_ID>, and while the ISO's would mount to the default folder path (shown in gui), they were not visible from the gui whenever I tried to make a new container or VM (ISO).

pvesm scan nfs 10.10.10.2 #(freenas address)
/mnt/Darkside/config/ISO 10.10.10.14,10.10.10.13,10.10.10.12,10.10.10.11 #(allowed hosts in NFS share configuration)

add in the storage with correct content type

pvesm add nfs NFS-iso --server 10.10.10.2 --path /var/lib/vz/template/iso/ --export /mnt/Darkside/config/ISO --content images,iso

verify storage was added:

cat /etc/pve/storage.cfg

nfs: NFS-iso
export /mnt/Darkside/config/ISO
path /var/lib/vz/template/iso/
server 10.10.10.2
content images,iso

Now, from the gui, the iso files will show up as "local" for all nodes in the cluster.

osxfuse 报错

mount_osxfuse: the file system is not available (255)
おそらくファイルシステムが更新されてないだけだと思いますが、Macを再起動します?!いあぁ〜ちょっと面倒ですね。
早速調べてしてみたら、参考1で紹介されたように、下記コマンド一発で解決できました。

sudo kextunload -b com.apple.filesystems.smbfs

鸡汤

学习的本质是模仿,创造的精髓在洞察。

awvs 安装过程

首先, 给大佬点赞, 这款工具在业界来说流行程度不亚于nessus, 不过还是建议支持正版;)

下面我把我的安装过程记录分享一下, 希望能够帮助像我一样不太会安装的小白:

awvs linux 安装记录

部署环境:
vitraulBox下的Ubuntu 16.04.1 LTS

下载官方安装脚本:
https://www.acunetix.com/thank-you-for-downloading-wvs-onsite-linux/
*在百度云中有保存
*我默认下载到了/home/xxxx/下

安装依赖:
sudo apt-get install libxdamage1 libgtk-3-0 libasound2 libnss3 libxss1 -y

开始安装:
chmod u+x acunetix_trial.sh
./acunetix_trial.sh

交互式输入用户信息:

  1. 是否同意协议:yes
  2. 输入主机名:ubuntu
  3. 输入管理员邮箱:xxx@xxx.com
  4. 输入密码:!Q2w3e4r

安装结束后访问:
https://ubuntu:13443/ # 当然ubuntu是你的IP地址

下载破解文件:
https://www.52pojie.cn/thread-922535-1-1.html

将破解文件解压并拷贝到安装目录中
unzip patch_awvs.zip
sudo cp patch_awvs /home/acunetix/.acunetix_trial/v_190325161/scanner/
sudo ./patch_awvs

检查是否成功:
登录系统后, 点击右上角的"Administrator->Profile->License",可以看到99999就说明成功激活

修改不检查更新:
登录系统后,左下角Settings->ProductUpgrades,改为"Do not automaticaly check for update[Not Recommanded]"

群晖nas 修改nginx配置的问题

现象:
在 /etc/nginx/nginx.conf 配置无效,重启以后配置被删除。

解决方案:
将配置放在 /etc/nginx/sites-enabled/proxy.conf
配置的第一行记得加上server_names_hash_bucket_size

配置举例:

server_names_hash_bucket_size 128;
server {
    listen       80;
    server_name  zimuzu.sadk.org;

    location / {
        proxy_pass http://192.168.1.135:3001/;
        root /usr/syno/share/nginx/;
        proxy_read_timeout 300;
        proxy_connect_timeout 300;
        proxy_redirect     off;

        proxy_set_header   X-Forwarded-Proto $scheme;
        proxy_set_header   Host              $http_host;
        proxy_set_header   X-Real-IP         $remote_addr;
    }
}

ps: 群晖上nginx -s reload 无效。需要先nginx -s stop掉,dsm会自动帮你吧nginx启动,这个过程中无需 nginx -s start。

最新文章

分类

归档

其它