https://avatars.githubusercontent.com/u/6058558

程式狂想筆記

vagrant 啟動無法自動掛載解決方法

最近發現 Ubuntu 某一版就不能做自動掛載
會出現

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
Vagrant was unable to mount VirtualBox shared folders. This is usually
because the filesystem "vboxsf" is not available. This filesystem is
made available via the VirtualBox Guest Additions and kernel module.
Please verify that these guest additions are properly installed in the
guest. This is not a bug in Vagrant and is usually caused by a faulty
Vagrant box. For context, the command attempted was:

mount -t vboxsf -o uid=1000,gid=1000 vagrant /vagrant

The error output from the command was:

/sbin/mount.vboxsf: mounting failed with the error: No such device

一張網卡使用多組 IP 方法

最近我們公司有多個專案,每個專案都在獨立的機器上運行,每台機器都有自己的IP。然而,我最近發現一個奇怪的現象。我在 FTP 上傳檔案時設定錯誤的 IP,但發現正確那台檔案竟然有更新到了。後來我發現,原來那台機器設定了很多虛擬 IP。讓我們研究公司是如何省錢的

這種情況在一台電腦需要跨網段使用時很常見,而且不需要切換 IP。但我不確定這樣使用是否有數量限制,或者是否會有其他的缺點。