infra/Linux

Windows hyper-v 로 Centos7 설치

beginner29 2020. 10. 19. 14:44

 

- 글자 색 변경 

home .bashrc

 

- 해상도 변경

/etc/default/grub

 

- 터미널 글자 크기 변경

setfont sun12x22

 

-grub 설정 적용

grub2-mkconfig -o /boot/grub2/grub.cfg

 

-Microsoft UEFI 인증 기관 설정 Powershell 명령 

Set-VMFirmware "가상서버이름" -SecureBootTemplate MicrosoftUEFICertificateAuthority

 

 

- hyper-v 에서 centos설치 후 네트워크 연결 하는 방법

출처 : yoo-hyeok.tistory.com/8

 

[CentOS] Hyper-V를 이용한 CentOS7 네트워크 연결, 설정 방법(내부, 가상IP)

Hyper -V 와 CentOs7 버전을 기준으로 네트워크 연결 방법에 대해 설명 드리겠습니다. ( 설치 과정은 생략 ) Hyper - V 에서 가상 스위치 관리자에서 실제 나의 IP를 이용해 네트워크를 연결 시킬 수 있으

yoo-hyeok.tistory.com

 

- 처음 설치했을 때, repo 오류 

왜 centos는 repo를 쓰는가..

 

cd /etc/yum.repos.d

vi CentOS-Base.repo

 

[base]

name= 아무거나

baseurl = http://centos.mirror.cdnetworks.com/$releasever/os/$basearch

gpgcheck = 1

gpgkey = file///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7

 

 

ㄴ 처음 설정 시 막 뭐 fastmirror 에러가 뜸 -> 설정 후 yum clean all -> yum update -> ERROR : Cannot find a vaild baseurl for repo : base..

-> 구글링 해보니까 네트워크 설정 문제라고 함 

-> /etc/resolv.conf 설정, dhclient? 다해봄 

-> 안됨. 애초에 dhclient는 dhcp 서버에서 IP를 받아와서 네트워크 설정을 하는듯 

-> ??????????? - ping 8.8.8.8 잘되는상태

-> 걍 repo 파일에서 fastmirror가 아니라 국내 미러사이트 바라보게함

출처 : lesstif.gitbook.io/things-to-do-after-centos-minimal-installation/yum

 

yum repository 설정

 

lesstif.gitbook.io