安装win虚拟机

在win安装时,会看不到虚拟的硬盘。

所以在virtio-win-xxx这个光盘中依次找到以下驱动安装

  • Balloon
  • NetKVM
  • vioserial
  • viostor

之后就可以看到硬盘了。

nps内网穿透

首先不建议在在docker中使用nps。

npcDocker的网络模式是bridge时,不能通过局域网ip访问网络模式是custom:br的docker。

npcDocker的网络模式是custom:br时,不能通过局域网ip访问网络模式是bridge的docker。

为什么custom:br会这样,我在unraid论坛找到这样的描述。

Bridge mode

  • shares IP with unRAID
  • usually ok but sometimes annoying because container wants a specific port that’s already in use by unRAID or another container.
  • your network cannot distinguish between container traffic and NAS services (hard to perform QoS or specific VPN routing)

Custom eth0/br0

  • allows your container to have a different IP from unRAID.
  • This is mostly OK since this means stuff like QoS and selective VPN routing can be done.
  • However, this prevents all communications between the container and unRAID (which prevents stuff like reverse proxying) unless you have VLANs or extra network interfaces.