개발공부/openwrt

[0] openwrt virtual machine 에 설치하기

tae_98 2024. 6. 30. 17:20

한글 가이드가 어디에도 없다 

내가 작성한다

 

https://openwrt.org/docs/guide-user/virtualization/virtualbox-vm

 

[OpenWrt Wiki] OpenWrt on VirtualBox HowTo

This document describes how to run the x86-64 OpenWrt images in VM VirtualBox, or VBox for short. You need a x86 64 bit version of OpenWrt. There is two versions of them: In the guide we'll use openwrt-x86-64-combined-ext4.img.gz because it has fewer limit

openwrt.org

영어 잘하시면 공식 홈에서 읽고 하시는게 더 정확하다.

 

 

https://downloads.openwrt.org/releases/21.02.0/targets/x86/64/

 

Index of /releases/21.02.0/targets/x86/64/

Image Files These are the image files for the x86/64 target. Check that the sha256sum of the file you downloaded matches the sha256sum below. Shortened image file names below have the same prefix: openwrt-21.02.0-x86-64-... Supplementary Files These are su

downloads.openwrt.org

여기서 generic-ext4-combined.img.gz 를 다운받는다. 

img.gz 를 압축해제시켜준다. ==> img파일이 나올것이다

[mac 기준 터미널을 열어서 gzip -d openwrt어쩌구.img.gz 파일]

 

그후에 그 디렉토리 경로로 VBoxManage convertfromraw --format VDI openwrt-*.img openwrt.vdi

이 커맨드를 실행한다. (공홈에도 마땅한 툴이 없다하대)

그러면 vbox drive 가 생김

생긴걸 vm 설정할때 넣어줄거에요

 

vm 설치는 하셨으리라 믿고

vm 을 열고 새로만들기 클릭

 

- linux, Linux 2.6 / 3.x / 4.x (64-bit) 로 설정

 

- 공홈에서 128메가면 충분하다 하니 믿어보자

 

- 아까 생성한거 넣기 ==> 나중에 이 파일 이동하면 곤란하다 하니 조심하자

 

네트워크 설정은 개발환경에 맞춰서 해주자..!

(필자는 현재 필요없으므로 skip)

 

-----------------------------------------------

그후 실행하면 주르륵 설치되면서 화면이 뜨긴뜨는데

쥐똥만하다

 

설정==>디스플레이==>vboxvga로 설정해주자