Use vmware-player in ubuntu dapper
- 패키지 설치
우분투에서 vmplayer를 설치하기 위해서는 다음과 같은 패키지가 필요하다.
- qemu
- vmware-player
- vmware-player-kernel-modules
만약, 패키지가 나타나지 않거나 kernel에 맞는 모듈 패키지가 없을때는 universe, multiverse 저장소를 추가해줬는지 확인한다.(updates 서버와 security 서버에도 추가가 되어있어야한다.)
- 가상 디스크 만들기
vmplayer는 무료 버전이라서 가상 디스크를 만드는 기능이 없다. qemu를 이용해서 가상 디스크를 만든다.
qemu-img create -f vmdk < 생성할 이미지 파일 이름> < 이미지 크기 (예. 4G)>그 뒤에 설정파일인 vmx파일을 만들어야 한다.
- vmx 파일 만들기
다음 내용을 참고로하여 vmx파일을 새로 만든다.
config.version = "8"
virtualHW.version = "3"
ide0:0.present = "TRUE"
ide0:0.filename = "ImageFileName.vmdk"
memsize = "128"
MemAllowAutoScaleDown = "FALSE"
ide1:0.present = "TRUE"
ide1:0.fileName = "auto detect"
ide1:0.deviceType = "cdrom-raw"
ide1:0.autodetect = "TRUE"
floppy0.present = "FALSE"
ethernet0.present = "TRUE"
usb.present = "FALSE"
sound.present = "FALSE"
displayName = "Fedora Core 4"
guestOS = "other26xlinux"
nvram = "fc4nox.nvram"
MemTrimRate = "-1"
ide0:0.redo = ""
ethernet0.addressType = "generated"
ethernet0.connectionType = "nat"
uuid.location = "56 4d 0d 92 c9 cd 3c 25-c5 bf 91 91 43 5d bf 33"
uuid.bios = "56 4d 0d 92 c9 cd 3c 25-c5 bf 91 91 43 5d bf 33"
ethernet0.generatedAddress = "00:0c:29:5d:bf:33"
ethernet0.generatedAddressOffset = "0"
tools.syncTime = "TRUE"
ide1:0.startConnected = "TRUE"
uuid.action = "create"
checkpoint.vmState = ""
tools.remindInstall = "TRUE"
- ide0:0.filename : primary master로 사용될 이미지 파일 이름
- memsize : 가상 머신의 메모리 크기
- displayName : VMPlayer가 실행될 때 창에 표시될 이름
- navram : VMPlayer가 실행될 동안 사용될 메모리 파일의 이름
- guestOS는 설치하여 사용할 os 형태, 아래 목록을 참고
"darwin" = Darwin (unsupported)
"other-64" = Other 64-bit OS
"other" = Other OS
"freeBSD-64" = freeBSD 64-bit
"freeBSD" = freeBSD
"solaris10-64" = Solaris 10 64-bit
"solaris10" = Solaris 10
"solaris9" = Solaris 9
"solaris8" = Solaris 8
"solaris7" = Solaris 7
"solaris6" = Solaris 6
"solaris" = Other Solaris
"netware6" = Netware 6.x
"netware5" = Netware 5.x
"netware4" = Netware 4.x
"netware" = Other Netware
"otherlinux-64" = Other Linux 64Bit
"linux" = Other Linux
"other26xlinux-64" = Other Linux 2.6.x 64-bit
"other26xlinux" = Other Linux 2.6.x
"other24xlinux-64" = Other Linux 2.4.x 64-bit
"other24xlinux" = Other Linux 2.4.x
"ubuntu-64" = Ubuntu Linux 64-bit
"ubuntu" = Ubuntu Linux
"turbolinux" = Turbo Linux
"mandrake" = Mandrake Linux
"sjds" = Sun Java Desktop System
"nld9" = Novell Linux Desktop 9
"sles-64" = SUSE Linux Enterprise Server 64-bit
"sles" = SUSE Linux Enterprise Server
"suse-64" = SUSE Linux 64-bit
"suse" = SUSE Linux
"rhel4-64" = Red Hat Enterprise Linux 4 64-bit
"rhel4" = Red Hat Enterprise Linux 4
"rhel3-64" = Red Hat Enterprise Linux 3 64-bit
"rhel3" = Red Hat Enterprise Linux 3
"rhel2" = Red Hat Enterprise Linux 2
"redhat" = Red Hat Linux
"winVista-64" = Windows Vista x64 Edition (experimental)
"winVista" = Windows Vista (experimental)
"longhorn-64" = Windows Longhorn x64 Edition (experimental)
"longhorn" = Windows Longhorn (experimental)
"winNetBusiness" = Windows Server 2003 Small Business
"winNetEnterprise-64" = Windows Server 2003 Enterprise x64 Edition
"winNetEnterprise" = Windows Server 2003 Enterprise Edition
"winNetStandard-64" = Windows Server 2003 Standard x64 Edition
"winNetStandard" = Windows Server 2003 Standard Edition
"winNetWeb" = Windows Server 2003 Web Edition
"winXPPro-64" = Windows XP Professional x64 Edition
"winXPPro" = Windows XP Professional Edition
"winXPHome" = Windows XP Home Edition
"win2000AdvServ" = Windows 2000 Advanced Server
"win2000Serv" = Windows 2000 Server
"win2000Pro" = Windows 2000 Professional
"winNT" = Windows NT
"winMe" = Windows Me
"win98" = Windows 98
"win95" = Windows 95
"win31" = Windows 3.1
"windows" = Other Windows
"MS-DOS" = MS-Dos
CD-ROM 대신 ISO 파일을 사용하고 싶으면 다음과 같이 설정한다.
ide1:0.present = "TRUE"
ide1:0.fileName = ""
ide1:0.deviceType = "cdrom-image"
사운드 카드를 사용하고 싶으면 다음과 같이 설정한다.
sound.present = "TRUE"
sound.virtualDev = "es1371"
- 실행에 문제가 있을 경우…
vmplayer를 시작하면 어떠한 입력도 되지않고 먹통이 되는 경우가 있다. 그런 경우에는 다음과 같이 실행해야한다.
# GTK_IM_MODULE=xim vmplayer - 한영키 사용
VMWARE에서 한영키를 사용하려면 /etc/vmware/config 파일에 다음 두 줄을 추가해주면 된다. 물론, 리눅스에서 한영키 인식이 잘 되는 상태여야 한다.
xkeymap.keysym.Hangul = 0x0f2
xkeymap.keysym.Hangul_Hanja = 0x0f1
- VMWARE-TOOLS 설치
vmware-tools는 따로 구해야하는데, 구하는 방법은 VMWARE 공식사이트에 가서 평가판을 다운로드 받은뒤에 압축을 푼다. vmware-distrib/lib/isoimages 디렉토리 안에 각 운영체제별로 vmware-tools 이미지가 있는데, 설치한 운영체제에 따라서 마운트하여 사용하면 된다.