VMware PlayerでWindows on Ubuntu
本当に無償で使える「VMware Player」やVMware PlayerでLinuxのVirtual Machineを作成を参考にやってみました。
QEMUインストール
バイナリをダウンロードして、/以下に展開すればOK。
VMwareイメージ作成
QEMUでイメージを作ります。
$ qemu-img create -f vmdk ~/Vmware/windows.vmdk 8G
さらに~/Vmware/にwindows.vmxファイルを以下の内容で作成。
#!/usr/bin/vmware config.version = "8" virtualHW.version = "3" displayName = "Windows XP on VMware Player" # ----- Virtual HDD image ----- ide0:0.present = "true" ide0:0.fileName = "windows.vmdk" # ----- CD-ROM Drive ----- ide1:0.present = "true" ide1:0.fileName = "auto detect" ide1:0.deviceType = "atapi-cdrom" # ----- FDD ----- floppy0.present = "true" # ----- Network ----- ethernet0.present = "true" ethernet0.connectionType = "bridged" # ----- Select Guest OS ----- # guestOS = "winnetstandard" # Windows Server 2003 standard Edition guestOS = "winxppro" # Windows XP Professional # guestOS = "win2000pro" # guestOS = "redhat" # Red Hat Linux (generic) # guestOS = "suse" # SuSE Linux (generic) # guestOS = "netware5" # Netware5 # guestOS = "netware6" # Netware6 # guestOS = "solaris9" # Solaris9 # guestOS = "solaris10" # Solaris10 # guestOS = "freebsd" # FreeBSD (generic) # guestOS = "otherlinux" # Other Linux # guestOS = "other24xlinux" # Other Linux 2.4.x kernel # guestOS = "other26xlinux" # Other Linux 2.6.x kernel # guestOS = "other" # Others # ----- Sound ----- sound.present = "true" sound.virtualDev = "es1371" sound.autoDetect = "true" sound.fileName = "-1" # ----- Memory size for guest OS ----- memsize = "256"
VMware Playerインストール
RPMパッケージをダウンロードし、alienでdebパッケージ化してインストール。
# alien VMware-player-1.0.1-19317.i386.rpm # dpkg -i vmwareplayer_1.0.1-19318_i386.deb
VMware Player初期設定
# /usr/bin/vmware-config.pl Unable to find the database file (/etc/vmware/locations) Execution aborted.
あれ。
/etc/vmware/locationsや/etc/vmware/configはRPMパッケージに含まれていませんでした。
なんでだー????試用版入れないとダメかな???
/etc/vmware/locationsファイル作成
こんな感じでlocationsファイル作りました。
answer BINDIR /usr/lib/vmware/bin answer LIBDIR /usr/lib/vmware answer MANDIR /usr/lib/vmware/man answer DOCDIR /usr/lib/vmware answer RUN_CONFIGURATOR no answer INITDIR /etc/init.d answer INITSCRIPTSDIR /etc/init.d
すると、
# vmware-config.pl ldd: /usr/lib/vmware/lib/bin/vmware-vmx: そのようなファイルやディレクトリはあり ません Making sure services for VMware Player are stopped. Stopping VMware services: Virtual machine monitor done Configuring fallback GTK+ 2.4 libraries. Unable to open /usr/lib/vmware/lib/libconf/etc/pango/pangorc Execution aborted. root@sayo:~# vi /etc/vmware/locations root@sayo:~# vi /etc/vmware/locations root@sayo:~# vmware-config.pl Making sure services for VMware Player are stopped. Stopping VMware services: Virtual machine monitor done Configuring fallback GTK+ 2.4 libraries. In which directory do you want to install the mime type icons? [/usr/share/icons] What directory contains your desktop menu entry files? These files have a .desktop file extension. [/usr/share/applications] In which directory do you want to install the application's icon? [/usr/share/pixmaps] Trying to find a suitable vmmon module for your running kernel. None of the pre-built vmmon modules for VMware Player is suitable for your running kernel. Do you want this program to try to build the vmmon module for your system (you need to have a C compiler installed on your system)? [yes] Using compiler "/usr/bin/gcc". Use environment variable CC to override. Your kernel was built with "gcc" version "3.4.5", while you are trying to use "/usr/bin/gcc" version "4.0.2". This configuration is not supported and VMware Player cannot work in such configuration. Please either recompile your kernel with "/usr/bin/gcc" version "4.0.2", or restart /usr/bin/vmware-config.pl with CC environment variable pointing to the "gcc" version "3.4.5". For more information on how to troubleshoot module-related problems, please visit our Web site at "http://www.vmware.com/download/modules/modules.html" and "http://www.vmware.com/support/reference/linux/prebuilt_modules_linux.html". Execution aborted.
と、ちょっと進んだ。
カーネル再コンパイルは面倒なのでgcc-3.4をSynapticからインストールして再度チャレンジ。
None of the pre-built vmmon modules for VMware Player is suitable for your running kernel. Do you want this program to try to build the vmmon module for your system (you need to have a C compiler installed on your system)? [yes] Using compiler "/usr/bin/gcc". Use environment variable CC to override. What is the location of the directory of C header files that match your running kernel? [/usr/src/linux/include] The path "/usr/src/linux/include" is not an existing directory.
そうだよね。ヘッダファイルなんてインストールしてないし。
Synapticからkernel-headerインストール。あーもうめんどくさいな。
ubuntu Linux入門キット 小林 準 by G-Tools |