반응형

VM듀얼 멕어드레스로 충돌났을때 조치방법

가끔 테스트서버를 사용하기위해 사용하는 방법이다. VM CONVERT로 사용중인 서버를 복사뜬다음

해당 서버를 테스트 서버로 사용한다.

하지만 거기서 문제가 발생하게된다. 기존에 VM머신에서 사용중인 IP와 맥까지 복사해서 사용할때 문제가 생기는데
esxi 관리툴에서 수정해도 안됐을때는  vmx 파일을 열어서 직접 수정한다.
 

 

1.ESXI  SSH 를 사용으로하고 접속해서 
[root@localhost:/vmfs/volumes/5e819f30-fb773500-ae8b-1402ec07e6d8/neomed_edu] pwd
/vmfs/volumes/guestdata/neomed_edu
[root@localhost:/vmfs/volumes/5e819f30-fb773500-ae8b-1402ec07e6d8/neomed_edu] vi
neomed_edu-def1f174.hlog          neomed_edu.vmx.lck                neomed_edu_1.vmdk                 vmware-51.log
neomed_edu-def1f174.vswp          neomed_edu.vmx1                   neomed_edu_2-flat.vmdk            vmware-52.log
neomed_edu-flat.vmdk              neomed_edu.vmx_old                neomed_edu_2.vmdk                 vmware-53.log
neomed_edu.vmdk                   neomed_edu.vmxf                   neomed_test.nvram                 vmware-54.log
neomed_edu.vmsd                   neomed_edu.vmx~                   vmware-49.log                     vmware.log
neomed_edu.vmx                    neomed_edu_1-flat.vmdk            vmware-50.log                     vmx-neomed_edu-3740397940-1.vswp
[root@localhost:/vmfs/volumes/5e819f30-fb773500-ae8b-1402ec07e6d8/neomed_edu] vi neomed_edu.vmx

 

 
2.neomed_edu.vmx파일 오픈 바꿀 맥으로 수정한다. 기존에 사용중인 머신은 사용을 종료한다.
uuid.bios = "56 4d 43 05 3b 54 d1 dc-64 5a 39 29 11 44 31 65"    
uuid.location = "56 4d 43 05 3b 54 d1 dc-64 5a 39 29 11 51 37 d2"
vc.uuid = "52 52 c4 02 7c 45 74 a1-86 27 36 28 f3 de 5a d2"      
sched.cpu.min = "0"                                              
sched.cpu.shares = "normal"                                      
sched.mem.min = "0"                                              
sched.mem.minSize = "0"                                          
sched.mem.shares = "normal"                                      
vmci0.id = "290535378"                                                                                          
cleanShutdown = "FALSE"                                                                                         
config.readOnly = "FALSE"                                                                                       
extendedConfigFile = "neomed_edu.vmxf"                                                                          
ethernet0.virtualDev = "e1000"                                                                                  
ethernet0.networkName = "VM Network"                                                                            
ethernet0.addressType = "generated"                                                                             
ethernet0.wakeOnPcktRcv = "FALSE"                                                                               
ethernet0.present = "TRUE"                                                                                      
ethernet0.generatedAddress = "00:0c:11:45:31:65"                                                                
ethernet0.uptCompatibility = "TRUE"                  
 
 
3,실제 VM에 접속해서 머신에 네트워크도 바뀌어있는지 확인한다.
vi /etc/udev/rules.d/70-persistent-net.rules
 
 
 
# This file was automatically generated by the /lib/udev/write_net_rules
# program, run by the persistent-net-generator.rules rules file.
#
# You can modify it, as long as you keep each rule on a single
# line, and change only the value of the NAME= key.
 
 
# PCI device 0x15ad:0x07b0 (vmxnet3)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:11:45:31:65", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
 
 
4.ifcfg-eth0로 확인한다.
[neomed:Edu-root:/root]# vi /etc/sysconfig/network-scripts/ifcfg-eth0

 

VM은 사용하면 할수록 대단하다고 느낌과 동시에 손대야 할것도 많음을 느낀다.

참고로 VMWARE DOC사이트

https://docs.vmware.com/kr/VMware-vSphere/index.html

반응형

+ Recent posts