블로그 이미지
No pain, no gain!
lepoussin

Tag

Notice

Recent Post

Recent Comment

Recent Trackback

Archive

calendar

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 29 30
  • total
  • today
  • yesterday
04-29 13:31
2009. 6. 26. 15:39 Virtual Machine/Sun VirtualBox
VirtualBox Port Forwarding 기능을 이용해 SSH 연결을 설정할 수 있다. Windows Command 창(시작>실행>cmd)에서 다음과 같이 해보자.

Test 환경
  • Host OS : Windows XP SP3
  • Virtual Machine: VirtualBox 2.2.4
  • Guest OS: ubuntu 8.10

설정
> cd C:\Program Files\Sun\xVM VirtualBox

> VBoxManage setextradata "Ubuntu for aESOP S3C6410" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/GuestSSH/Protocol" TCP

> VBoxManage setextradata "Ubuntu for aESOP S3C6410" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/GuestSSH/GuestPort" 22

> VBoxManage setextradata "Ubuntu for aESOP S3C6410" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/GuestSSH/HostPort" 22

[] 안을 상황에 맞게 설정하여 사용하면 된다.
  • [C:\Program Files\Sun\xVM VirtualBox] : VirtualBox 설치 경로
  • "[Ubuntu for aESOP S3C6410]" : VirtualBox에 설치되어 있는 Guest OS 이름
  • ../[GuestSSH]/.. : 원하는 Service 이름
  • [22] : 원하는 Guest Port와 Host Port 번호

확인
> VBoxManage getextra "Ubuntu for aESOP S3C6410" enumerate

해제
해제는 명령에서 값을 제외시키면 된다.
> VBoxManage setextradata "Ubuntu for aESOP S3C6410" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/GuestSSH/Protocol"

> VBoxManage setextradata "Ubuntu for aESOP S3C6410" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/GuestSSH/GuestPort"

> VBoxManage setextradata "Ubuntu for aESOP S3C6410" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/GuestSSH/HostPort"

posted by lepoussin