2019年5月11日 星期六

安裝 Qemu Agent 節省 KVM 使用的記憶體使用量(Windwos)

==========================================================
Virtio-Win 最新下載點

1. 建立 VM 並且先進行設置 (千萬不要先開 VM),在執行中VM無法使用。

2. 在 PVE 的 KVM - Option 中將 Qemu Agent 改為 Yes (Enable)

3. 啟動 VM 並安裝作業系統

4. 先手動安裝 VirtIO 網卡驅動

5. 再手動安裝 PCI 驅動 (Balloon Driver 驅動程式)

6. 最後手動安裝 PCI 簡單通訊裝置驅動

7. 到 VirtIO 光碟中的【guest-agent】這個目錄裡面,選擇你的系統版本

  • x64系統:qemu-ga-x64-32.msi 並完成安裝
  • x86系統:qemu-ga-x86.msi 並完成安裝

8. 到系統的 "服務" 中將 QEMU Guest Agent 服務確認狀態為「自動啟動」就可以。

9. 到 VirtIO 光碟中的 【Balloon】 這個目錄裡面,選擇你的對應的【作業系統】版本的資料夾「amd64」的目錄複製到本機中(例如:C:/Program files/Balloon )。我的習慣變更目錄名稱為 Balloon

10. 使用「管理者權限」啟動 "命令提示字元"

11. 在 "命令提示字元"執行「C:/Program files/Balloon/BLNSVR.exe -i」會去設定 Balloon 為 "服務"。

12. 到 「服務」中確定 Balloon Service 服務狀態為 "自動啟動"

13. 以上即可完成.

出現下列訊息,因為Qemu Agent的版本太舊了。
Qemu agent on 2012r2: No network information 的問題(IPS)
下載新版本

資料參考來源:https://www.youtube.com/watch?v=fn6iJzRQDkw

資料參考來源:FB Proxmox VE伺服器虛擬化管理平台 使用者社團

資料參考來源:Proxmox論壇

2019年4月22日 星期一

AD DNS 無法使用(錯誤事件 4000及4007)

遇到的其中一個 DNS 伺服器的顯示區域並不會在 DNS 主控台的方式載入,且您會看到事件識別碼 4000 和 4007 的問題在環境啟動在 DNS 事件記錄檔中的記錄所在的情況:

事件識別碼 4000:
DNS 伺服器無法開啟 [Active Directory。 此 DNS 伺服器係設定為取得、 使用此區域從目錄的資訊,無法載入該區域。檢查 [Active Directory 正常運作,並重新載入區域。事件資料為錯誤碼。

事件識別碼 4007:
DNS 伺服器無法開啟 [Active Directory,從應用程式目錄分割 < 磁碟分割名稱 >] 中的 [區域] < 區域 >。此 DNS 伺服器係設定為取得、 使用此區域從目錄的資訊,無法載入該區域。檢查 [Active Directory 正常運作,並重新載入區域。事件資料為錯誤碼。

原因


會發生這種情況是當該特定的 DC/DNS 伺服器已遺失其本身或 PDC 的安全通道。
這也可能會發生在單一的 DC 環境該 DC/DNS 伺服器會保留所有的 FSMO 角色,並指向本身做為主要的 DNS 伺服器中。

解決方案


(1.) 如果您有其他網域控制站 / 環境中的 DNS 伺服器接著會設定伺服器遇到此問題,以指向其他作用中的 DNS 伺服器在 TCP/IP 內容中。

(2.) 停止 KDC 服務(Kerberos Distribution Center)遇到此問題的 DC 上。

(3.) 以較高的權限執行下列命令: netdom resetpwd /server: < PDC.domain.com > /userd: < Domain\domain_admin > /passwordd: *

(4.) 它會提示您輸入您所使用的網域系統管理員帳戶的密碼,請在該輸入。

(5.) 一旦命令執行時,請將伺服器重新開機。

(6.) DNS 區域應該立即載入。

如果這是在環境中唯一的 DC,而且沒有其他 DNS 伺服器再執行相同的步驟,但 replate"PDC。Domain.com"的伺服器本身的 IP 位址 (因為它本身是 PDC)

更多的資訊


如果您所面對的問題,Windows 2008 伺服器 (非 R2) 上的請確認伺服器上已安裝的補充程式相關 KB 2615570

  資料來源 Microsoft 支援服務


2019年3月3日 星期日

Centos 7 BIND 建置

關閉 Firewalld 防火牆指令:
# systemctl stop firewalld.service

設定下次開機不會啟動 Firewalld 防火牆
# systemctl disable firewalld.service

關閉 SELinux:
# vi /etc/selinux/config

安裝 Wget 及Vim程式
# yum install -y wget
# yum install -y vim

安裝 ntpdate 程式
# yum install -y ntpdate
# ntpdate -u time2.google.com
=================================
update yum套件
 # yum update -y

安裝 bind 軟體
# yum install bind -y
# yum install bind-utils -y

編輯 namd 的設定檔
# vi /etc/named.conf


啟動DNS服務:
# systemctl start named

檢查 named.conf  是否有錯誤
#named-checkconf /etc/named.conf

檢查 正解的檔案 是否有錯誤
#named-checkzone /var/named/forware.net

檢查 反解的檔案 是否有錯誤
#named-checkzone /var/named/reverse.net

# systemctl status named.service
# systemctl restart named.service -->重新啟動BIND

設定開機啟動:
# systemctl enable named

=============================
WEBMIN 安裝網址
Webmin bind 無法啟動更改位置

到 Configuration 設定裡面,有一項「Default PID file location(s)」路徑修改就可以了。
修改為「 /var/run/named/named.pid」再 Save 就可以。



=============================
Failed : Missing dig command 的錯誤訊息
# yum install bind-utils -y
=============================

出現下列這個錯誤訊息,是因為CentOS 7 Bind傳輸已經使用 RAW方式加密了。
This zone is in raw binary format, and so cannot be displayed as text.

On CentOS 7 / RHEL 7, which uses BIND 9.9.4, Webmin's BIND module will "blindly" convert a Slave zone to a Master, pointing to the existing zone file.
However, by default BIND 9.9 stores its Slave zones in a "raw" / binary format, which it can't successfully read when trying to parse a Master zone file. Attempting to do so will prevent named from starting. (It's also limiting in webmin, which can display records but not the 'zone file' contents).
The workaround I've enabled in my environment is to set the masterfile-format to text across the entire BIND instance, rather than the default of raw. The following config example in the master named.conf's options declaration helps.
解決方式如下:
BIND-wide config (in named.conf / etc)-->Master DNS
options {
    //
    // various named config options
    //
    masterfile-format text;
    //
    // the rest of the config
    //
    }
Zone-specific config (in named.conf / etc)-->Slave DNS
zone "somedomain.net" {
        type slave;
        masterfile-format text;
        masters {
                1,2,3,4;
                };
        file "/var/named/slaves/somedomain.net.hosts";
        };
參考來源 Why GitHub?

2019年3月2日 星期六

Windows 10 Defender 關閉(全系列)

最新的 懶人程式 --> 阿榮福利味
StopUpdates10 2.0.34 免安裝中文版 - 關閉Windows10自動更新
按此由MediaFire下載→StopUpdates10Portable_2.0.34_azo.exe
=========================================================
開啟執行,輸入regedit開啟登入編輯程式。


尋找下面的路徑

HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender

後,按Enter進入該位置。


在該資料夾中右鍵,新增 DWORD(32位元)值



並將該值命名為 DisableAntiSpyware


對該值點擊右鍵,點擊修改,將數值資料改為1即可,若日後需要啟用則將值改為 0。


重新開機就可以了。


參考資料來源  楓的電腦知識庫
參考資料來源【Win 10 練功坊】關閉煩人的 Windows Defender

2019年1月5日 星期六

Excel 2010 更新後不能用

在 2019年1月3日執行 Windows Update 後 我的 Excel 2010 就無法開啟
Excel檔案無法開啟。Excel 程式可以啟動,但開舊檔時就會跳出程式無回應、自動修復、然後就關閉了,也試著是開一個全新的Excel檔案,是可以開但是只要一打字就掛了。
我的版本是 Office 2010作業系統是Windows 7 Pro 64位元。
我也把Office 2010移除再重新安裝一次,也是一樣的問題。

解決方式:

KB4461627 移除掉這該死的更新就可以正常使用了!

讓我的工作停擺了兩天


參考來源 https://answers.microsoft.com/zh-hant/msoffice/forum/all/201913-windows-update-%E5%BE%8C-excel/9859afe6-3c14-4c7d-8dd8-0486f99cf6b2

2018年12月29日 星期六

GBIC 的問題

這是第二次遇到的問題

A點的設備(電腦)連線到B點的設備(交換器),網頁開啟很快也很正常
B點的設備(電腦)連線到A點的設備(交換器或網頁),網頁開啟就是很慢,連校內網頁也很慢,連下個指令都要等很久

但是B點的設備 (電腦)Ping 或 Tracert 到A點的設備(交換器或網頁)很正常,不管用什麼指令都是正常的,連光纖GBIC的燈號也有亮

最後想到是GBIC的訊號是雙向,會不會是A點的光纖GBIC有問題
結果一換GBIC就什麼都正常了


2018年11月3日 星期六

Proxmox Cluster 移除操作資訊

刪除 Cluster 的步驟:

首先把2個服務暫停 corosync and the pve-cluster services on the node:
# systemctl stop pve-cluster
# systemctl stop corosync
# pmxcfs -l


Delete the corosync configuration files:
#rm /etc/pve/corosync.conf
#rm -r -f /etc/corosync/*

You can now start the filesystem again as normal service:
# killall pmxcfs
# systemctl start pve-cluster