seraphyの日記

日記というよりは過去を振り返るときのための単なる備忘録

vmwareでScanSnapを使う方法

ScanSnap S510は64ビット版Windowsでは動作しない。*1

どうしてだか知らないが、ScanSnap S510のWindows版ドライバは64ビットでは動かない。

こうゆう場合のためにVirtual PCがあるのだと思うが、今度はVirtual PC 2007はUSBが使えない。

(※ 2010/11追記 PFUサポートページで申し込めばWindows7 64ビット版のScanSnap Manager等のダウンロード先URLをメールで送付してもらえるようになっている。待った甲斐ありました。勿論、試してみましたが、問題なく、Windows7で快調に動作しております。)

VMWareならUSBが使える。

VMWare Playerなら、USBが使える。

だが、設定をしないとUSB2.0モードでは動かない。

この状態でWindows XP 32ビット版を入れてScanSnap Managerを使うとWindows XPブルーバック画面になる。

VMWare Playerが落ちるのではなく、VMWare Playerの中で動いているXPが落ちるのだ。

一見するとVMWare固有の問題のように思えたので調べてみたが、ネットの情報によるとUSB-HUBをかますと良いらしい。

しかし、どうもうまくゆかない。

USBにさしてScanSnap Managerが接続されるときに、低速モードで接続された旨表示されることに気がついて、VMWare Playerの標準のサポートではUSB2.0が有効になっていないのだと気が付く。

もしかすると、(いまどき、そんなハードは探すほうが面倒だと思うが)USB2.0に対応していないハードウェアでScanSnapを使うと、やはり同じようにブルーバックになってしまうのかもしれない。

解決: ScanSnapをVMWarePlayerで使う方法

vmxファイルに以下の設定を追加するだけ。

ehci.present = "TRUE"

これで、USB2.0が使えるようになり、そうすると普通にScanSnap S510を使えるようになる。

いまのところ、Vista Ultimate X64(SP1)上にインストールしたVMWare Player 2.5でホストされるWindows XP SP3ゲストで、この方法が問題なく動いている。

現状の設定のメモ

#!/usr/bin/vmplayer
.encoding = "Shift_JIS"

# Filename: WinXP32.vmx
# Generated 2008-12-28;03:13:24 by EasyVMX!
# http://www.easyvmx.com

# This is a Workstation 5 or 5.5 config file
# It can be used with Player
config.version = "8"
virtualHW.version = "4"

# Selected operating system for your virtual machine
guestOS = "winxppro"

# displayName is your own name for the virtual machine
displayName = "WinXP32"

# These fields are free text description fields
guestinfo.vmware.product.url = "http://www.easyvmx.com/"
guestinfo.vmware.product.class = "virtual machine"

# Number of virtual CPUs. Your virtual machine will not
# work if this number is higher than the number of your physical CPUs
numvcpus = "1"

# Memory size and other memory settings
memsize = "1024"
MemAllowAutoScaleDown = "FALSE"
MemTrimRate = "-1"

# Unique ID for the virtual machine will be created
uuid.action = "create"

# Remind to install VMware Tools
# This setting has no effect in VMware Player
tools.remindInstall = "FALSE"

# Startup hints interfers with automatic startup of a virtual machine
# This setting has no effect in VMware Player
hints.hideAll = "TRUE"

# Enable time synchronization between computer
# and virtual machine
tools.syncTime = "TRUE"

# USB settings
# This config activates USB
usb.present = "TRUE"
ehci.present = "TRUE"
usb.generic.autoconnect = "TRUE"

# First serial port, physical COM1 is available
serial0.present = "FALSE"
serial0.fileName = "Auto Detect"
serial0.autodetect = "TRUE"
serial0.hardwareFlowControl = "TRUE"

# Optional second serial port, physical COM2 is not available
serial1.present = "FALSE"

# First parallell port, physical LPT1 is available
parallel0.present = "FALSE"
parallel0.fileName = "Auto Detect"
parallel0.autodetect = "TRUE"
parallel0.bidirectional = "TRUE"

# Sound settings
sound.present = "TRUE"
sound.virtualdev = "es1371"

# Logging
# This config activates logging, and keeps last log
logging = "TRUE"
log.fileName = "WinXP32.log"
log.append = "TRUE"
log.keepOld = "3"

# These settings decides interaction between your
# computer and the virtual machine
isolation.tools.hgfs.disable = "FALSE"
isolation.tools.dnd.disable = "FALSE"
isolation.tools.copy.enable = "TRUE"
isolation.tools.paste.enabled = "TRUE"

# First network interface card
ethernet0.present = "TRUE"

# Settings for physical floppy drive
floppy0.present = "FALSE"

# Settings for physical CDROM drive
ide1:0.present = "TRUE"
ide1:0.deviceType = "cdrom-raw"
ide1:0.startConnected = "TRUE"
ide1:0.fileName = "auto detect"
ide1:0.autodetect = "TRUE"

# Settings for the optional virtual CDROM, ISO-image
ide1:1.present = "TRUE"
ide1:1.fileName = "D:\Media\media\ISO\WindowsXP\ja_windows_xp_professional_with_service_pack_3_x86_dvd_x14-80464.iso"
ide1:1.deviceType = "cdrom-image"
ide1:1.mode = "persistent"
ide1:1.startConnected = "FALSE"

# First IDE disk, size 16Gb
ide0:0.present = "TRUE"
ide0:0.fileName = "WinXP32.vmdk"
ide0:0.mode = "persistent"
ide0:0.startConnected = "TRUE"
ide0:0.writeThrough = "TRUE"

# END OF EasyVMX! CONFIG

sharedFolder.option = "alwaysEnabled"
sharedFolder.maxNum = "1"
sharedFolder0.present = "TRUE"
sharedFolder0.enabled = "TRUE"
sharedFolder0.readAccess = "TRUE"
sharedFolder0.writeAccess = "TRUE"
sharedFolder0.hostPath = "E:\shared_temp"
sharedFolder0.hostName = "host"
sharedFolder0.guestName = "share"
sharedFolder0.expiration = "never"


extendedConfigFile = "WinXP32.vmxf"
virtualHW.productCompatibility = "hosted"
tools.upgrade.policy = "manual"

usb.autoConnect.device0 = "path:1/2/3 autoclean:1"

*1:MacOSX10.5 Leopardは64ビットなのにScanSnap S510が使える…。orz