iriya_ufo’s blog

Curiosity was simply the first derivative of knowledge.

VMware Playerを使う

ホストOS: Ubuntu9.04
ゲストOS: Windows XP Pro

VMware Player インストール

http://www.vmware.com/products/player/
上記サイトの質問事項に答えてhoge.bundleをダウンロードする.

$ sudo bash VMware-Player-2.5.2-156735.i386.bundle

以上でインストール完了.

qemu でイメージファイルの作成

qemuをインストールした後,以下を端末から打ち込みイメージファイルを作成する.

$ qemu-img create -f vmdk windowsxp.vmdk 10G

*.vmx の設定ファイル作成

仮想マシンの構成の *.vmx ファイルを作る.単なるテキストファイル.

.encoding = "UTF-8"
config.version = "8"
virtualHW.version = "3"
memsize = "512"
ide0:0.present = "TRUE"
ide0:0.fileName = "windowsxp.vmdk"

ide1:0.present = "TRUE"
#ide1:0.fileName = "/home/iriya/vmware/windows.iso"
#ide1:0.deviceType = "cdrom-image"
ide1:0.fileName = "auto detect"
ide1:0.deviceType = "cdrom-raw"

ethernet0.present = "TRUE"
ethernet0.connectionType = "nat"
usb.present = "TRUE"
sound.present = "TRUE"
sound.virtualDev = "es1371"
displayName = "Windows XP"
guestOS = "winxppro"
nvram = "windowsxp.nvram"
scsi0:0.redo = ""
ethernet0.addressType = "generated"
uuid.location = "56 4d 7c 8b 62 cc 91 20-35 a5 d2 c8 24 2a 4e c2"
uuid.bios = "56 4d 7c 8b 62 cc 91 20-35 a5 d2 c8 24 2a 4e c2"
ide1:0.autodetect = "TRUE"
ethernet0.generatedAddress = "00:0c:29:2a:4e:c2"
ethernet0.generatedAddressOffset = "0"
checkpoint.vmState = "windowsxp.vmss"
tools.remindInstall = "FALSE"
ide0:0.redo = ""

floppy0.fileName = "/dev/fd0"
extendedConfigFile = "windowsxp.vmxf"
virtualHW.productCompatibility = "hosted"
tools.upgrade.policy = "manual"

isolation.tools.hgfs.disable = "TRUE"

usb.autoConnect.device0 = ""

tools.syncTime = "TRUE"

vmotion.checkpointFBSize = "16777216"

ide1:0.startConnected = "FALSE"

次にマウスをシームレスに移動させるために VMware-tools を入れるところだが,この度のバージョンではデフォルトで出来た.便利だ.

ファイル共有

VMware Player の設定からできるようになっている.

  • 参考HP

http://wiki.mm2d.net/vmware/index.php?%B2%BE%C1%DB%A5%DE%A5%B7%A5%F3%B9%BD%C0%AE.vmx