달력

5

« 2024/5 »

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31

Task Scheduler를 이용해 VMWare와 비슷한 기능을 구현해보세~!
1. VM 종료
2. 메모리 크기/CPU 개수 수정
   (밤 시간 대에 특정 작업에 리소스를 더 준다던지...)
3. VM 이동
   (리소스 적은 서버로 몰고...)
4. VM 가동

머... 중간 중간에 제대로 넘어 갔는지... 혹시 넘어가다 실패했는지..에 대해 체크하는 부분이
더 필요하겠지만 괜찮은(?) 시도인 듯...

Powershell 실행
%WINDIR%\System32\WindowsPowerShell\v1.0\powershell.exe -PSConsoleFile "C:\Program Files\Microsoft System Center Virtual Machine Manager 2008\bin\cli.psc1" -NoExit -Command <Script File Full Path>

###Script###
$VMMServer = Get-VMMServer -ComputerName <VMM Server Name>
$VMHost = Get-VMHost -ComputerName <Destination Hyper-V Host Name>
$VM = Get-VM -Name <VM Name>
Shutdown-VM -VM $VM
Set-VM -VM $VM -MemoryMB <Memory Size(MB)>
Move-VM -VMHost $VMHost -VM $VM
Start-VM -VM $VM
EXIT

:
Posted by 커널64
2009. 5. 24. 11:29

Linux Integration Components for Hyper-V Virtualization2009. 5. 24. 11:29

Linux Integration Components for Hyper-V
리눅스 게스트 운영체제에서 마우스 드라이버 사용 (VSC)

1. 먼저 리눅스 ICS(Hyper-V)가 설치되어 있어야 한다.
2. Root로 로그인
3. 첨부된 iso 파일 다운
4. iso 파일을 Mount하고 파일들을 복사한다.
5. 복사한 위치로 이동해 ./setup.pl inputdriver 실행해 설치

:
Posted by 커널64
다음 레지스트리 키를 열어서 0000으로 시작하는 키 중에서 DriverDesc를 확인해 물리적인 NIC를 확인 후
하위 키 Ndi를 참고해 키 값을 변경한다.

HKLM\System\CurrentControlSet\Control\Class\{4D36E972-E325-11CE-BFC1-08002bE10318}

:
Posted by 커널64

iSCSI 초기자 설정
iscsicli QAddTargetPortal <Portal IP Address>
iscsicli ListTargets
iscsicli QloginTarget <target_iqn>
iscsicli PersistentLoginTarget <target_iqn> T * * * * * * * * * * * * * * * 0
iscsicli ListPersistentTargets
iscsicli ReportTargetMappings

모든 Vendor 허용 설정 후  자동으로 재부팅
mpclaim -r -i -a ""

:
Posted by 커널64

스크립트로 만들어야겠다.. 너무 많다...;;;

-Show IP Configration-
netsh interface ipv4 show config

-Config IP Address-
netsh interface ipv4 set address name="로컬 영역 연결" static <IP> <Subnet Mask> <G/W>

-Add DNS Server IP Address-
netsh interface ipv4 add dnsserver "로컬 영역 연결" <DNS Server IP>

-Join Domain-
netdom join <HostName> /Domain:<DomainName> /UserD:<DomainUser> /PasswordD:*

-Rename Computer-
netdom renamecomputer <HostName> /NewName:<NewHostName> /UserD:<DomainUser> /PasswordD:*

-Enable RDP(Disable Secure Level)-
Cscript c:\windows\system32\scregedit.wsf /ar 0
Cscript c:\windows\system32\scregedit.wsf /cs 0

-Configure Firewall-
Netsh advfirewall firewall set rule group="원격 관리" new enable=yes
Netsh advfirewall firewall set rule group="WMI(Windows Management Instrumentation)" new enable=yes
Netsh advfirewall firewall set rule group="파일 및 프린터 공유" new enable=yes
Netsh advfirewall firewall set rule group="원격 볼륨 관리" new enable=yes
Netsh advfirewall firewall set rule group="원격 이벤트 로그 관리" new enable=yes
Netsh advfirewall firewall set rule group="원격 서비스 관리" new enable=yes
Netsh advfirewall firewall set rule group="Windows 방화벽 원격 관리" new enable=yes
Netsh advfirewall firewall set rule group="핵심 네트워킹" new enable=yes
Netsh advfirewall firewall set rule group="원격 데스크톱" new enable=yes

-Allow Remote Device Management-
mmc > 그룹 정책 개체 편집기 > Server Core >
컴퓨터 구성 > 관리 템플릿 > 시스템 > 장치 설치 > PnP 인터페이스에 대한 원격 액세스 허용

-Install Features-
start /w ocsetup FailoverCluster-Core
start /w ocsetup MultipathIo
start /w ocsetup TelnetClient

-Install Hyper-V Role-
Start /w ocsetup Microsoft-Hyper-V

-Windows Activation-
Slmgr.vbs -ipk <Product Key> <- Input Product Key
Slmgr.vbs -ato <- Activation
Slmgr.vbs -dlv <- Show Activation Status

:
Posted by 커널64
2009. 2. 5. 10:23

Windows Server 2008 Core 설정 Etc.2009. 2. 5. 10:23

Network Interface 나열

Netsh interface ipv4 show interfaces

(구성할 NIC IDX 번호 기억)

 

NIC IP 설정

Netsh interface ipv4 set address name=[IDX] source=static address=[static ip] mask=[subnet mask] gateway=[default gateway]

 

NIC DNS 서버 설정

Netsh interface ipv4 add dnsserver name=[IDX] address=[dnsip] index=1

원격 데스크탑 설정

Cscript c:\windows\system32\scregedit.wsf /ar 0

(0은 활성, 1은 비활성)

 

원격 데스크탑 설정 상태 보기

Cscript c:\windows\system32\scregedit.wsf /ar /v

(0은 활성, 1은 비활성)

 

원격 데스크탑의 보안 강화 레벨 비활성

Cscript c:\windows\system32\scregedit.wsf /cs 0

 

방화벽의 원격 데스크탑 허용

Netsh advfirewall firewall set rule group=”Remote Desktop” new enable=yes

 

방화벽의 파일 및 프린터 공유 허용

Netsh advfirewall firewall set rule group=”File and Printer sharing” new enable=yes

Administrator 암호 변경

Net user administrator *

 

서버 이름 설정

Netdom renamecomputer [currentcomputername] /NewName:[newcomputername]

 

도메인 참가

Netdom join [computername] /domain:[DomainName] /userd:[UserName] /password:*

 

도메인 탈퇴

Netdom remove

시간 설정

Control timedate.cpl

 

자동 업데이트 설정

Cscript c:\windows\system32\scregedit.wsf /au 4

 

자동 업데이트 끄기

Cscript c:\windows\system32\scregedit.wsf /au 1

 

자동 업데이트 설정 보기

Cscript c:\windows\system32\scregedit.wsf /au /v

 

서버 활성화 (정품 인증)

Slmgr.vbs –ipk [Product Key]  <- 제품키 입력

Slmgr.vbs –ato  <- Activation

Slmgr.vbs –dlv  <- 라이선스 상태 확인

 

페이징 파일 설정

Wmic pagefileset where name=[path/filename] set Initialsize=[initialsize],MaximumSize=[maxsize]

Active Directory Promotion

다음 내용을 TXT 파일로 저장 후 Dcpromo /unattend:[TXT 파일]

(DNS Server Role 설치, Functional Level : Windows Server 2008)

 

[DCInstall]

ReplicaOrNewDomain=Domain

NewDomain=Forest

NewDomainDNSName=DOMAIN.COM

ForestLevel=3

DomainNetbiosName=DOMAIN

DomainLevel=3

InstallDNS=Yes

ConfirmGc=Yes

CreateDNSDelegation=No

DatabasePath="C:\Windows\NTDS"

LogPath="C:\Windows\NTDS"

SYSVOLPath="C:\Windows\SYSVOL"

SafeModeAdminPassword=P@ssw0rd

 

DNS Reverse Lookup Zone 구성 (ex: 192.168.1.0)

dnscmd localhost /ZoneAdd 1.168.192.in-addr.arpa. /DSPrimary

net stop DNS

net start DNS

역할 설치

http://technet.microsoft.com/en-us/library/cc753802.aspx

 

Hyper-V Role 설치

Start /w ocsetup Microsoft-Hyper-V

 

기능 설치

start /w ocsetup <feature name>(대소문자 구분)

 

기능: Feature Name

Failover Cluster: FailoverCluster-Core

Network Load Balancing: NetworkLoadBalancingHeadlessServer

Subsystem for UNIX-bases applications: SUA

Multipath IO: Microsoft-Windows-MultipathIO

Removable Storage Management: Microsoft-Windows-RemovableStorageManagementCore

Bitlocker Drive Encryption: BitLocker

Backup: WindowsServerBackup

Simple Network Management Protocol (SNMP): SNMP-SC

WINS: WINS-SC

 

:
Posted by 커널64

SCVMM 2008 설치 후 Hyper-V 호스트를 등록하면 Need Attention 경고와 함께 Upgrade available로 나타나는 경우 해당 Hyper-V 호스트에 다음 업데이트를 적용하면 해결된다.

KB956589 - KO EN
KB956774 - KO EN



Hyper-V RTM
KB950050 - KO
KB950050 - EN

:
Posted by 커널64

지원되는 운영 체제

P2V 변환을 수행하려면 원본 컴퓨터에 다음의 지원되는 운영 체제 중 하나가 있어야 합니다.

  • Windows Server 2008(32비트)
  • Windows Server 2008(64비트)
  • Windows Server 2003(32비트) SP1 이상
  • Windows Server 2003(64비트) SP1 이상
  • Windows 2000 Server SP4 이상(오프라인 P2V만 해당)
  • Windows 2000 Advanced Server SP4 이상(오프라인 P2V만 해당)
  • Windows XP Professional(32비트) SP2 이상
  • Windows XP Professional(64비트) SP2 이상
  • Windows Vista 서비스 팩 1(32비트)
  • Windows Vista SP1 이상(64비트)



Online P2V 과정

1. VMM은 원본 컴퓨터의 하드웨어 및 소프트웨어 설정을 가져오기 위해 원본 컴퓨터에 VMM Agent를 설치한다.
변환이 완료되면 Agent는 제거된다.

2. VMM은 다음과 같은 방법을 통해 원본 컴퓨터의 하드웨어와 소프트웨어 설정을 가져온다.
VMM Agent는 하드웨어, 소프트웨어, 서비스, 핫픽스, 볼륨(파일 시스템, 볼륨 타입, 섹터) 정보들을 수집한다.
그 다음 VMM Agent는 이 정보들을 XML 파일의 형태로 VMM 데이터베이스로 내보낸다.
VMM은 원본 컴퓨터의 OS 및 구성에 대해 가상화가 가능한지를 판단하고 가상화가 가능하다고 판단되면 VMM은 필요한 패치 정보를 확인하고 다운로드한다.

3. 이미징 과정
VSS에 의해 각 NTFS 볼륨이 캡춰된다. 만약 대상 VHD 파일이 동적 확장으로 설정되어 있다면 데이터 부분만 캡춰하고 빈공간은 캡춰하지 않는다.
캡춰된 데이터는 원본 컴퓨터에서 BITS를 실행 중인 VMM 호스트로 전송된다.
각각의 물리적인 볼륨은 별도의 VHD 파일들로 변환된다.

4. 수정 과정
VMM은 가상 하드 디스크와 가상 머신의 생성을 준비한다.

5. 가상 머신 생성 과정
VMM은 가상 머신을 생성하고 하드 디스크와 네트워크 어뎁터, CD-ROM, 메모리를 구성한다.


Offline P2V 과정
Offline P2V는 VSS를 지원하지 않는 윈도우 2000 서버의 변환에 사용되는 옵션이다. Online P2V와 달리 만약 원본 컴퓨터에 Windows PE가 지원하지 않는 드라이버가 있다면 해당 드라이버를 제공해야만 한다.

1. VMM Agent 설치. VMM은 원본 컴퓨터에 VMM Agent를 설치한다.

2. VMM Agent는 원본 컴퓨터에 Windows PE를 설치하고 부트 레코드를 변경한다. 이 과정을 통해 원본 컴퓨터는 기본 운영체제가 아닌 Windows PE로 부팅하게 된다.

3. VMM은 물리적인 디스크의 데이터를 전송한다. 이 과정에서 VSS에서와 같은 스냅샷은 존재하지 않는다.

4. 남은 과정은 Online P2V의 수정 과정, 가상 머신 생성과정과 동일하게 진행된다.

:
Posted by 커널64
2008. 12. 8. 20:47

Hyper-V RTM의 지원 운영체제 Virtualization2008. 12. 8. 20:47

Supported Server Operating Systems

Microsoft Windows Server 2008 x64 (VMs configured with 1, 2 or 4 virtual processors)
Windows Server 2008 Standard
Windows Server 2008 Enterprise
Windows Server 2008 Datacenter
Windows HPC Server 2008
Windows Web Server 2008
Windows Server 2008 Standard without Hyper-V
Windows Server 2008 Enterprise without Hyper-V
Windows Server 2008 Datacenter without Hyper-V

Microsoft Windows Server 2008 x86 (VMs configured with 1, 2 or 4 virtual processors)
Windows Server 2008 Standard (x86 Edition)
Windows Server 2008 Enterprise (x86 Edition)
Windows Server 2008 Datacenter (x86 Edition)
Windows Web Server 2008 (x86 Edition)
Windows Server 2008 Standard without Hyper-V (x86 Edition)
Windows Server 2008 Enterprise without Hyper-V (x86 Edition)
Windows Server 2008 Datacenter without Hyper-V (x86 Edition)

Microsoft Windows Server 2003 x86 (VMs configured with 1 or 2 virtual processors)
Windows Server 2003 R2 Standard x86 Edition with Service Pack 2
Wndows Server 2003 R2 Enterprise x86 Edition with Service Pack 2
Windows Server 2003 R2 Datacenter x86 Edition with Service Pack 2
Windows Server 2003 Standard x86 Edition with Service Pack 2
Windows Server 2003 Enterprise x86 Edition with Service Pack 2
Windows Server 2003 Datacenter x86 Edition with Service Pack 2
Windows Server 2003 Web Edition with Service Pack 2

Microsoft Windows Server 2003 x64 (VMs configured with 1 or 2 virtual processors)
Windows Server 2003 R2 Standard x64 Edition with Service Pack 2
Windows Server 2003 R2 Enterprise x64 Edition with Service Pack 2
Windows Server 2003 R2 Datacenter x64 Edition with Service Pack 2
Windows Server 2003 Standard x64 Edition with Service Pack 2
Windows Server 2003 Enterprise x64 Edition with Service Pack 2
Windows Server 2003 Datacenter x64 Edition with Service Pack 2

Microsoft Windows 2000 Server (VMs configured with 1 virtual processor)
Windows 2000 Server with Service Pack 4
Windows 2000 Advanced Server with Service Pack 4

Linux Distributions (VMs configured with 1 virtual processor)
Suse Linux Enterprise Server 10 with Service Pack 2 x86 Edition
Suse Linux Enterprise Server 10 with Service Pack 2 x64 Edition
Suse Linux Enterprise Server 10 with Service Pack 1 x86 Edition
Suse Linux Enterprise Server 10 with Service Pack 1 x64 Edition


Supported Client Operating Systems

Microsoft Windows Vista x86
(VMs configured with 1 or 2 virtual processors)
Windows Vista Business x86 with Service Pack 1
Windows Vista Enterprise x86 with Service Pack 1
Windows Vista Ultimate x86 with Service Pack 1

Microsoft Windows Vista x64 (VMs configured with 1 or 2 virtual processors)
Windows Vista Business x64 with Service Pack 1
Windows Vista Enterprise x64 with Service Pack 1
Windows Vista Ultimate x64 with Service Pack 1

Windows XP Professional x86 with SP3 (VMs configured with 1 or 2 virtual processors)

Windows XP Professional x86 with SP2 (VMs configured with 1 virtual processor)

Microsoft Windows XP Professional x64 with SP2 (VMs configured with 1 or 2 virtual processors)

:
Posted by 커널64