티스토리 뷰
설정은 우분투를 이용했지만, 데비안에서도 그대로 적용 가능할 것이라고 생각함.
(https://help.ubuntu.com/community/VirtualBox 에서 자료 참고)
Networking
To start, NAT is by far the easiest way to get your guests connected to the interweb, but you may want to use the guests as servers. For this you need Host Networking.
Install Necessary Software
You will need to install bridge-utils and uml-utilities so that you can make a tap device and add it to a bridge.
sudo apt-get install bridge-utils uml-utilities
8.04 Hardy
To configure bridging, you basically go through three steps on the host machine. First you need to create a bridge. Next you create virtual interface(s). Then you add a real interface and virtual interface(s) to the bridge. Because of the scripts available on the distribution which take care of all the details, all of this sums up to two steps:
- declare bridge and real network interface you add to it
- declare virtual interfaces
Create a permanent bridge by editing /etc/network/interfaces
On the host machine:
$ sudo gedit /etc/network/interfaces
auto eth0
iface eth0 inet manual
auto br0
iface br0 inet dhcp
bridge_ports eth0
# The loopback network interface
auto lo
iface lo inet loopback
"br0" is an arbitrary name. To take the modifications into account, restart the network:
$sudo /etc/init.d/networking restart
From now on, your system will always set up the bridge on boot. Note that this could slow down the boot time a little bit, because of the bridge coming up.
Declare virtual interfaces which will be used by VirtualBox by editing /etc/vbox/interfaces
On the host machine:
$ sudo gedit /etc/vbox/interfaces
# Each line should be of the format :
# <interface name> <user name> [<bridge>]
vbox0 <your user name> br0
vbox1 <your user name> br0
...
"vbox#" is an arbitrary name. You may declare here as many virtual interfaces as you wish, and add it to a bridge.
Later when you will configure the network of your virtual machine you will use the virtual adapter name "vbox#" for host networking. For example if you use the VirtualBox Qt graphical interface, enter "vbox#" in the "Interface Name" field, when choosing "Host interface".
To take the modifications into account, restart the VirtualBox host networking script:
$sudo /etc/init.d/virtualbox-ose restart
The virtual interfaces are now created and added to the bridge.
That's it! Now the different scripts will take care of cleanly create/configure/remove bridges and virtual interfaces when you boot and shut your system down.
Configure networking in VirtualBox
Once you have everything ready, you can start the VirtualBox management interface on the host machine, configure the network of your virtual machine, and by selecting "host networking", enter the name of one of the virtual adapter you have configured. Start your virtual machine, it gets a network card presented, that you can set up as you wish (static IP address, DHCP) using the network configuration tools inside the virtual machine.대충 위와 같은 과정을 밟아가면 호스트 리눅스에서 게스트 리눅스로 직접 ip를 통해서 접근이 가능해진다.
- Total
- Today
- Yesterday
- 영화
- wow
- World Of Warcraft
- 네트워크
- hp-ux
- 일기
- 오픈 소스 SW와 전략적 활용
- 책
- 실전! 업무에 바로 쓰는 SQL 튜닝
- 리눅스
- 오라클
- oracle
- 애니메이션
- 와우
- Japanimation
- SQL 튜닝
- 박영창
- SSM
- 회식
- 후기
- HPUX
- 레포트
- 시간표
- 삼성 소프트웨어 멤버십
- 프로그래밍
- 과제물
- 모임
- 실습으로 배우는 Unix System Admin (HPUX)
- 캐논
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |