Loading views...
Ansible ip configure start

Ansible ip configure start

Date
Date
2019 Dec 18 0:0
Created by
Created by
Seonglae ChoSeonglae Cho
Created time
Created time
2023 Feb 28 12:39
Last edited by
Last edited by
Seonglae ChoSeonglae Cho
Last edited time
Last edited time
2023 Apr 15 16:52
Refs
Refs

Ansible


Hyper-V 와 vmware 의 공존( 하나의 PC에서 두가지 동시 사용)
MS에서는 가상화 시장을 위해서 Hyper-V라는 것을 제공하고 있다. VMware에서는 윈도우에서 가상화를 지원하는 프로그램인 VMware Player, Workstation을 제공하고 있다. 그런데 이 두가지가 만나면 치고박고 싸우..
Hyper-V 와 vmware 의 공존( 하나의 PC에서 두가지 동시 사용)
  • vmware랑 hyper-v 호환을 위한 설정
  • 책애서는 virtual box 쓰라지만... vmware가 더 좋다 후
  • 동시에 hyperv, vmware 킬수 있다는거지 동시에 가상화는 안댐
 
 
VMware Workstation Pro 다운로드
VMware Workstation Pro는 단일 Linux 또는 Windows PC에서 여러 운영 체제를 실행하기 위한 업계 표준입니다. 그 이유를 알아보십시오. | VMware KR
  • 흠흠 이건 뭔지 모르겠는데?
 
 
notion image
일단 설치완료
 

cent os


notion image
boot 하고 dvd가 있는데 무슨 차이지
일단 boot로 깔고
 
notion image
 
notion image
 
notion image
 
notion image
 
notion image
 
notion image
notion image
 
notion image
cent 8 포기 7로 간다
 
notion image
detect도 바로되고 좋네 . vmware workstation 15에서도 centow 8 지원안해서 문제인듯
 

책은 minimal로 설치하라는데 요즘은 설치과정중 minimal로 선택으로 바뀐 듯 하다

 
 
설치하고 network설정 변경
 
notion image
220 번대 비어있어서 222번부터 사용하기로
  • 222 - ansible server
  • 223 ~ 22x - ansible nodes
 
 
notion image
 
 
notion image
static iptime DHCP에서 설정
notion image
nano 기본설치도 안되있는데 apt도 없는 os 가 있다..??!
 
notion image
vim 도 없고 ㅋㅋㅋ vi만 있네 후.,,,
 
 
notion image
을 통해서 인터넷 연결
 
 
apt 설치하고싶은데
 
 
CentOS에서 apt-get 사용하기
root@zetawiki ~]# apt-get install sox Reading Package Lists... Done Building Dependency Tree... Done Package sox has no available version, but exists in the database.
YUM rpmforge 저장소 추가
root@zetawiki ~]# rpm -qa | grep rpmforge-release rpmforge-release-0.5.3-1.el6.rf.x86_64 [root@zetawiki ~]# rpm -ev rpmforge-release-0.5.3-1.el6.rf.x86_64 [root@zetawiki ~]# rpm -qa | grep rpmforge-release [root@zetawiki ~]# yum repolist ... (생략) repo id repo name status base CentOS-6 - Base 6,381 extras CentOS-6 - Extras 13 updates CentOS-6 - Updates 1,555 repolist: 7,949
YUM rpmforge 저장소 추가
 
rpm 버전 아래에서 확인 후
Rpmforge-release Download (RPM)
Download rpmforge-release packages for CentOS.
rpmforge저장소
 
 
notion image
notion image
이런에러가 뜸 .. 역시 hyper v 관련인데 device/ credential guard 만 끌수있나 확인중
 

귀찮고 그냥 hyper v disable....

 
그래도 안댐 후 hyperv 랑 별개인듯
Windows Defender Credential Guard 관리(Windows 10)
Windows10 Windows Server2016 WindowsServer 2019 그룹 정책, 레지스트리 또는 Device Guard 및 Credential Guard 하드웨어 준비 도구 를 사용하여 Credential Guard를 사용하도록 설정할 수 있습니다. Windows Defender Credential Guard는 실제 컴퓨터처럼 Hyper-V 가상 컴퓨터에서 암호를 보호할 수 있습니다. 실제 컴퓨터에서 Windows Defender Credential Guard를 설정할 때 사용된 것과 똑같은 절차가 가상 컴퓨터에도 적용됩니다.
Windows Defender Credential Guard 관리(Windows 10)
 
powershell말고 cmd에 위 administrator실행 후 reboot
 
그러고 나니 된다
 
hyper v 랑 device/ credential guard는 따로인가? 나중에 hyper v enable해보자
 
 
 
일단 open vm tools 설치 yum으로
 
apt는 음...
CentOS 에서 apt-get 명령어를 사용하는 방법 (yum 으로설치)
지인중 하나가 CentOS 에서는 apt-get 명령어를 사용하지 못하냐고 물어봤다. APT(Advanced Packaging Tool) 명령어는 데비안 계열 OS에서 사용하는 패키지 관리 도구이다. CentOS 에서는 기본적으로 Yum(Yellow dog Updater, Modified) 을 사용하므로 따로 설치 할 필요는 없지만.... 개인의 취향을 위해서라면 설치하는거라면 말리지 않겠다. apt 를 yum으로 설치하려면 패키지 저장소를 추가한다음 가능하다.
CentOS 에서 apt-get 명령어를 사용하는 방법 (yum 으로설치)
이게 설명 잘해둔듯
centos 7은 안된단
 

cent는 apt 대신에 yum을 쓴다고!

 
 
 
CentOS 에서 yum 이 동작 안할때
Loading mirror speeds from cached hostfile 이 메세지만 나오고 더이상 진행이 않되고 있다면 미러 사이트 를 찾지 못해서 발생 한다. 해결 방법은 /etc/yum.repos.d/CentOS-Base.repo 파일 을 수정 해서 해결 했다. [base]name=CentOS-$releasever - ...
CentOS 에서 yum 이 동작 안할때
yum repolist 너무 느려서, 이거보고 수정! - mirror 서버 변경하고
 
 
 
[yum 에러] Another app is currently holding the yum lock; waiting for it to exit...
" CentOS 7 yum 에러 " Another app is currently holding the yum lock; waiting for it to exit... 정말 오랜만에 보는 yum 에러.. 이럴땐 yum process를 죽이거나 해당파일을 삭제하면 된다. 1. yum process ki..
[yum 에러] Another app is currently holding the yum lock; waiting for it to exit...
이것도 도움됬다
 
 
이제 복사하기!
 
 
notion image
 
 
notion image
static iptime DHCP에서 설정
 
이부분 다시해주기
 
notion image
mac주소도 copy되서 mntui에서 바꿔주고
 
 

그냥 virtual box로...

위 과정 똑같이 한 후에
 
 
 
 
 
 
password가 root 암호로 기본설정되는듯 이제 진짜 앤서블 시작.. 세팅만 하루다
 
 
 
 
 

윈도우는 dhcp down하고 dhcp 설정 고정으로 해서 up하면 받아와지는데 cent는 우째...

100-200 iptime 할당인데 220에 할당하고. ㅠ 근데 190으로 해도 안댐 ㅎ.ㅎ ㅅ..ㅂ
 
 

오라클 64비트로 깔았더라 ㅠ.. 이거때문인가 해서 다시 레드햇 64비트로 깔기

sys admin 은 초기설정 미친다 미쵸...
 
 
 
 

Recommendations