顯示具有 Hyper-V 2012 R2 標籤的文章。 顯示所有文章
顯示具有 Hyper-V 2012 R2 標籤的文章。 顯示所有文章

2017年9月19日 星期二

DELL R730 使用 Hyper-V中的VM,網路存取很慢

今天遇到一個問題,有一台DELL R730的SERVER,安裝時是使用Windows安裝光碟安裝的,安裝後執行Hyper-V,建立VM來做運用。但使用者反應用網芳取存該VM上分享的資料夾時很慢。經網路上查尋,原來是驅動的問題。

預設Windows安裝完時,會使用Microsoft內建的網卡驅動,在這個模式下,網路是通的但速度很慢,上官網下載新的驅動更新完畢就正常了。

參考來源:
https://dotblogs.com.tw/terrychuang/2014/01/13/139654

2016年5月3日 星期二

非網域環境,遠端管理Hyper-V 2012 R2主機 New

之前有發過一篇  非網域環境,遠端管理Hyper-V 2012 R2主機 
但裡面提到的工具不支援Windows 10,所以再發一篇手動設定的方式。記錄一下。

本例環境如下

遠端主機系統:Windows 2012 R2 STD
遠端主機名稱:hv01
遠端主機ip:192.168.1.11


本機主機系統:Windows 10 PRO
本機使用者帳號:user01
本使用者密碼:user01

以下指令在伺服端執行
一、執行 「winrm quickconfig」 ,初始化winrm服務
  確認啟動「winrm服務」,並確認修改「winrm 安全性設定」
二、確認防火牆「Windows 遠端管理(HTTP-In)」有放行,埠號5985。
  依預設如防火牆為公用網路,則只放行本機子網路,如ip不同網段,需手動加入。
  檢查進階防火牆→輸入規則→「Windows 遠端管理(HTTP-In)」→領域→遠端IP位址
  

以下指令在管理端執行
一、修改本機hosts檔,以系統管理員身份執行筆記本,再去開啟下面檔案)
  開啟c:\windows\system32\drivers\etc\hosts
  於最下方新增一筆,完成後存檔離開
  192.168.1.11 hv01

二、設定Anonymouse Logon遠端存取權限
  執行dcomcnfg,於元件服務視窗中依序點選 元件服務→電腦→我的電腦
  右鍵選單選擇「內容」,在我的電腦「內容」中切換到「COM安全性」頁籤
  於存取權限中,點擊「編輯限制」
  在彈出的存取權限視窗中點選「ANONYMOUS LOGON」項目,並勾選「充許遠端存取」,完成後點確定離開。

三、將Hyper-V 加入為信任主機
  以系統管理員身份執行「命令提示字元」
  執行 「winrm quickconfig」 ,初始化winrm服務
  確認啟動「winrm服務」,並確認修改「winrm 安全性設定」
  輸入 winrm set winrm/config/client @{TrustedHosts="hv01"}


四、當遠端主機與本機使用者帳號不同時
  以系統管理員身份執行「命令提示字元」
  輸入「cmdkey /add:hv01 /user:user01 /pass:user01」
  執行完,可輸入「cmdkey /list」指令進行確認

五、開啟hyper-v管理員工具,進行遠端管理。

2014年12月19日 星期五

Hyper-V 3 Install Pfsense 2.1.5 網路卡無作用

在Hyper-V上安裝好Pfsense後發現網路不通
上網查一下,要手動關閉網路介面再啟動即可。

於pfsense的選單畫面上,選擇8,進入shell模式輸入以下指令,建立開機後的執行檔。

touch /usr/local/etc/rc.d/hyper-v.sh
chmod 755 /usr/local/etc/rc.d/hyper-v.sh
echo “ifconfig de0 down” >> /usr/local/etc/rc.d/hyper-v.sh
echo “ifconfig de0 up” >> /usr/local/etc/rc.d/hyper-v.sh
echo “ifconfig de1 down” >> /usr/local/etc/rc.d/hyper-v.sh
echo “ifconfig de1 up” >> /usr/local/etc/rc.d/hyper-v.sh
echo “dhclient de0″ >> /usr/local/etc/rc.d/hyper-v.sh
 
 
參考來:
http://www.andysblog.de/pfsense-unter-hyper-v-server-keine-netzwerkverbindung-moeglich
https://knowledge.zomers.eu/pfsense/Pages/Install-pfSense-on-Windows-2008-Hyper-V-server.aspx 

2014年4月7日 星期一

Hyper-v 3.0 + CentOS6.3 無法載入掛載光碟機 (出現mount: you must specify the filesystem type)

在Hyper-V 3.0上安裝完CentOS 6.3之後,要再次加戴光碟機內容時
出現 mount: you must specify the filesystem type,上網搜尋得知這個是bug

如要再次加載光碟機內容,需執行以下命令,即可再次加載光碟機了
nsmod /lib/modules/$(uname -r)/kernel/drivers/ata/ata_piix.ko


參考以下來源資訊:
why cant i mount a cd dvd after i install integration services in RHEL?
http://social.technet.microsoft.com/Forums/en-US/linuxintegrationservices/thread/7acc7465-f585-4927-9869-d657ecf0dd48
BUG: After LISv3.1 install I have no cdrom/sr0
http://social.technet.microsoft.com/Forums/en-US/linuxintegrationservices/thread/5a5d17ce-bd03-40fd-bf1e-0afe59493502

2013年11月16日 星期六

非網域環境,遠端管理Hyper-V 2012 R2主機

當在非網域環境,遠端管理Hyper-V 2012 R2主機時,可能會出現

Hyper-V 管理員發生 "您沒有完成此工作的必要使用權限" 錯誤

 可經由以下方式解決

一、手機設定主機IP解析
修改C:\Windows\System32\drivers\etc\hosts
加入 IP 主機名稱
例如:192.168.1.11 HV1

二、使用hvermote工具,下載網址:http://code.msdn.microsoft.com/HVRemote/Release/ProjectReleases.aspx?ReleaseId=1827
1.以系統管理員身份開啟"命令提示字元"
2.執行:cscript //h:cscript
3.參考以下環境執行對應的指令
 
Configuration Where Purpose Commands
Client and Server both workgroup Server Create a local account (eg "john") Use net user /? or Computer Management 
  Server Grant the user access hvremote /add:accountname          ***
  Client Allow Anonymous Logon remote DCOM access hvremote /anondcom:grant
  Client Logon with matching local account.  
  Client If passwords do not match cmdkey /add:servername /user:servername\account /pass
  Both   Verify configuration for errors hvremote /show /target:othercomputername
-------------------------      
Client workgroup, Server domain Server Grant domain account access hvremote /add:domain\account           ***
  Client Allow Anonymous Logon remote DCOM access hvremote /anondcom:grant
  Client Set credentials for domain account cmdkey /add:servername /user:domain\account /pass
  Both   Verify configuration for errors hvremote /show /target:othercomputername
-------------------------      
Client domain, Server workgroup Server Create a local account (eg "john") Use net user /? or Computer Management 
  Server Grant the user access hvremote /add:accountname           ***
  Client Allow Anonymous Logon remote DCOM access hvremote /anondcom:grant
  Client Set credentials for local account cmdkey /add:servername /user:servername\accountname /pass
  Both   Verify configuration for errors hvremote /show /target:othercomputername
-------------------------      
Client and Server both domain Server Grant the non-admin user access hvremote /add:domain\account           *** 
  Both   Verify configuration for errors hvremote /show /target:othercomputername

此時再使用Hyper-V管理員,應該就可以正確連上伺服器了。

參考來源:
http://www.askasu.idv.tw/index.php/2008/12/25/142/
http://blog.tenyi.com/2013/04/hyper-v-server-2012.html