http://blog.ishiro.com

2007/5/16 水曜日

VistaにVMWarePlayer1系はダメよ

Filed under: vista — ishiro @ 9:16:28

Vista導入後、ずっと困っていた事象がありました。CDやDVDを入れると「空のディスクを準備してください」とダイアログが出てしまいディスクの中身が見れません。コマンドプロンプトから直接 e: としてディスクをみると中身が見れるので常にそのようにしていました。ダブルクリックで起動もできなければ、画像のサムネイルも見えない。むふぅ。

この不具合、「vista 空のディスクを準備してください」で検索しても何も情報はなく何なんだろうなぁと思っていましたが、先日やっと解決しました。原因は「VMWare Player 1 系をインストールしていた」でした。

Vistaに正式対応した VMWare Player 2 が最近リリースされたようなのでインストールしてみると上記の不具合は完全に解消されました。VMWareはデバイスを乗っ取る必要があるので、考えてみれば起こりがちな事象ですね。解決してよかった(^-^)

2007/3/15 木曜日

VistaでScriptEditorをIEにアタッチできない

Filed under: vista — ishiro @ 3:46:10

VistaでもIEのデバッガを使うために以下の手順で設定した。

  1. IEのインターネットオプションの詳細設定で「スクリプトのデバッグを使用しない(Internet Explorer)」「スクリプトのデバッグを使用しない(その他)」のチェックをはずす
  2. Excelを起動して「ツール」→「マクロ」→「Microsoft Script Editor」を実行してScript Editorをインストール&起動
  3. Script Editorの「デバッグ」→「Webデバッグのインストール」を実行。
  4. ここからscd10jp.exeをもってきてScriptDebuggerをインストール。

XPならこれでスクリプトでエラーが発生した場合「デバッグしますか?」と聞かれてデバッグが開始できた。ただ、条件はわからないが環境によっては上記をしても「デバッグしますか?」とダイアログがでないこともあった。その場合はIEの「表示」→「スクリプトデバッガ」→「開く」として予めデバッガを先に起動させておけばエラーが発生した場合にちゃんと飛んでくれる。

しかしVistaだと「Webページに問題があるため~」といつものダイアログを表示するだけ。困った。どうしてだろう。

ちなみScript Editorを起動して「プロセス」→「アタッチ」でiexplorer.exeをアタッチして、IEでスクリプトエラーを発生させても飛んでくれない。なんかXPと挙動が違うなぁ、バグだろうか。Vistaだと他にもいっぱい不具合あるけど、これだとまだ仕事で使うには早いといわれても仕方ないね。

2007/3/13 火曜日

Vista上でVMWare

Filed under: vista — ishiro @ 3:11:00

XPで動作させていたCentOSのVMWareをそっくりそのままVista上にコピーして動かしてみた。するとネットワークが正しく動作しない。ホストコンピュータにpingすら飛ばない状態になってしまった。DHCPではなく、手動で設定しなおしてみたりWindows側でVMware Bridge Protocolを調整してみても動かない。15分試行錯誤して動かなかったので、きっぱりとあきらめてクリアインストールしてみる。すると全て問題なく動いた。設定は全て同じなのに何故??

その時のインストール方法をメモ。

ここからQEMUを持ってきて次のコマンドを実行してVMWareイメージを作成。

qemu-img.exe create -f vmdk c:\CentOS4\CentOS4.vmdk 20G

以下の内容でc:\CentOS4\CentOS4.vmxというファイルを作成。Xを使うわけではないのでメモリも256でいいか。いちおう次回のためにオリジナルファイルも載せておこっと。

config.version = “8″
virtualHW.version = “3″
memsize = “256″
ide0:0.present = “TRUE”
ide0:0.fileName = “CentOS4.vmdk”

ide1:0.present = “TRUE”
ide1:0.fileName = “auto detect”
ide1:0.deviceType = “cdrom-raw”
floppy0.fileName = “A:”
ethernet0.present = “TRUE”
ethernet0.connectionType = “nat”
usb.present = “TRUE”
sound.present = “TRUE”
sound.virtualDev = “es1371″
displayName = “CentOS4″
guestOS = “other26xlinux”
nvram = “CentOS4.nvram”
scsi0:0.redo = “”
ethernet0.addressType = “generated”
uuid.location = “56 4d 4a 15 2a 3f 49 70-03 c9 82 f3 02 82 dc 4c”
uuid.bios = “56 4d 4a 15 2a 3f 49 70-03 c9 82 f3 02 82 dc 4c”
ide1:0.autodetect = “TRUE”
ethernet0.generatedAddress = “00:0c:29:82:dc:4c”
ethernet0.generatedAddressOffset = “0″
checkpoint.vmState = “CentOS4.vmss”
tools.remindInstall = “TRUE”
ide0:0.redo = “”

CentOSのDVDを入れてから、作成したvmxファイルをダブルクリックすればインストールが開始。インストール開始後、3,4分ほどVistaがフリーズ状態に。[Ctrl]+[Alt]+[Delete]も効かない状態で「Vista導入後、初めてのフリーズか!」と思っていたら、何事もなかったように動き始めて今では無事に動いています。

フリーズ後「このCPUのアーキテクチャは~とは違う~」みたいなメッセージが出ていたので、Core2Duoで実行すると出る現象なのかな?まぁ、今はまったく問題ないのでよしとしよう。

VMWareってここから各OSのイメージを配布しているのね。今度はこっちからもってきてやったほうが楽かな。

sambaの設定もしておかないと。

smb.confをデフォルトの状態から変更したのはちょっとだけ。

workgroup = ISHIRO
server string = CentOS4
hosts allow = 192.168.111. 127.
encrypt passwords = yes
smb passwd file = /etc/samba/smbpasswd

samba専用のパスワードの設定と起動。

# cat /etc/passwd | mksmbpaswd.sh > /etc/samba/smbpasswd
# smbpasswd -e ishiro
New SMB passwrod: ******
Retype new SMB password: ******
Enabled user ishiro.
# chkconfig –level 345 smb on
# /etc/rc.d/init.d/smb start

ついでに必要なサービスだけを起動しておこう。ランレベル3のサービスはこんな感じ。

# ls -l /etc/rc.d/rc3.d/
合計 284
lrwxrwxrwx 1 root root 21 3月 14 10:20 K01tog-pegasus -> ../init.d/tog-pegasus
lrwxrwxrwx 1 root root 24 3月 14 09:08 K02NetworkManager -> ../init.d/NetworkManager
lrwxrwxrwx 1 root root 20 3月 14 09:44 K03messagebus -> ../init.d/messagebus
lrwxrwxrwx 1 root root 15 3月 14 10:22 K03rhnsd -> ../init.d/rhnsd
lrwxrwxrwx 1 root root 13 3月 14 09:38 K05atd -> ../init.d/atd
lrwxrwxrwx 1 root root 19 3月 14 09:06 K05saslauthd -> ../init.d/saslauthd
lrwxrwxrwx 1 root root 14 3月 14 09:43 K10cups -> ../init.d/cups
lrwxrwxrwx 1 root root 19 3月 14 09:08 K10dc_server -> ../init.d/dc_server
lrwxrwxrwx 1 root root 16 3月 14 09:07 K10psacct -> ../init.d/psacct
lrwxrwxrwx 1 root root 13 3月 14 09:43 K10xfs -> ../init.d/xfs
lrwxrwxrwx 1 root root 17 3月 14 09:15 K12FreeWnn -> ../init.d/FreeWnn
lrwxrwxrwx 1 root root 15 3月 14 09:34 K12canna -> ../init.d/canna
lrwxrwxrwx 1 root root 19 3月 14 09:08 K12dc_client -> ../init.d/dc_client
lrwxrwxrwx 1 root root 13 3月 14 09:34 K15gpm -> ../init.d/gpm
lrwxrwxrwx 1 root root 15 3月 14 09:09 K15httpd -> ../init.d/httpd
lrwxrwxrwx 1 root root 14 3月 14 09:47 K17iiim -> ../init.d/iiim
lrwxrwxrwx 1 root root 13 3月 14 09:08 K20nfs -> ../init.d/nfs
lrwxrwxrwx 1 root root 14 3月 14 09:07 K24irda -> ../init.d/irda
lrwxrwxrwx 1 root root 15 3月 14 09:09 K25squid -> ../init.d/squid
lrwxrwxrwx 1 root root 22 3月 14 09:10 K30spamassassin -> ../init.d/spamassassin
lrwxrwxrwx 1 root root 17 3月 14 09:16 K35winbind -> ../init.d/winbind
lrwxrwxrwx 1 root root 16 3月 14 09:50 K40smartd -> ../init.d/smartd
lrwxrwxrwx 1 root root 20 3月 14 09:34 K44rawdevices -> ../init.d/rawdevices
lrwxrwxrwx 1 root root 15 3月 14 09:15 K45named -> ../init.d/named
lrwxrwxrwx 1 root root 17 3月 14 09:08 K50netdump -> ../init.d/netdump
lrwxrwxrwx 1 root root 15 3月 14 09:09 K50snmpd -> ../init.d/snmpd
lrwxrwxrwx 1 root root 19 3月 14 09:09 K50snmptrapd -> ../init.d/snmptrapd
lrwxrwxrwx 1 root root 13 3月 14 09:08 K50tux -> ../init.d/tux
lrwxrwxrwx 1 root root 16 3月 14 09:15 K50vsftpd -> ../init.d/vsftpd
lrwxrwxrwx 1 root root 17 3月 14 09:15 K54dovecot -> ../init.d/dovecot
lrwxrwxrwx 1 root root 15 3月 14 09:42 K56acpid -> ../init.d/acpid
lrwxrwxrwx 1 root root 19 3月 14 09:46 K68rpcidmapd -> ../init.d/rpcidmapd
lrwxrwxrwx 1 root root 17 3月 14 09:46 K69rpcgssd -> ../init.d/rpcgssd
lrwxrwxrwx 1 root root 16 3月 14 09:16 K73ypbind -> ../init.d/ypbind
lrwxrwxrwx 1 root root 14 3月 14 09:41 K74apmd -> ../init.d/apmd
lrwxrwxrwx 1 root root 14 3月 14 09:16 K74nscd -> ../init.d/nscd
lrwxrwxrwx 1 root root 14 3月 14 09:10 K74ntpd -> ../init.d/ntpd
lrwxrwxrwx 1 root root 15 3月 14 10:22 K75netfs -> ../init.d/netfs
lrwxrwxrwx 1 root root 19 3月 14 09:45 K85mdmonitor -> ../init.d/mdmonitor
lrwxrwxrwx 1 root root 15 3月 14 09:08 K85mdmpd -> ../init.d/mdmpd
lrwxrwxrwx 1 root root 17 3月 14 09:40 K86nfslock -> ../init.d/nfslock
lrwxrwxrwx 1 root root 16 3月 14 09:05 K87auditd -> ../init.d/auditd
lrwxrwxrwx 1 root root 14 3月 14 10:22 K87ipmi -> ../init.d/ipmi
lrwxrwxrwx 1 root root 20 3月 14 09:39 K87irqbalance -> ../init.d/irqbalance
lrwxrwxrwx 1 root root 17 3月 14 09:33 K87portmap -> ../init.d/portmap
lrwxrwxrwx 1 root root 18 3月 14 09:05 K89netplugd -> ../init.d/netplugd
lrwxrwxrwx 1 root root 19 3月 14 09:08 K90bluetooth -> ../init.d/bluetooth
lrwxrwxrwx 1 root root 14 3月 14 09:33 K91isdn -> ../init.d/isdn
lrwxrwxrwx 1 root root 18 3月 14 09:33 K92iptables -> ../init.d/iptables
lrwxrwxrwx 1 root root 18 3月 14 09:07 K94diskdump -> ../init.d/diskdump
lrwxrwxrwx 1 root root 16 3月 14 09:33 K96pcmcia -> ../init.d/pcmcia
lrwxrwxrwx 1 root root 19 3月 14 09:08 K99readahead -> ../init.d/readahead
lrwxrwxrwx 1 root root 25 3月 14 09:08 K99readahead_early -> ../init.d/readahead_early
lrwxrwxrwx 1 root root 23 3月 14 09:08 S00microcode_ctl -> ../init.d/microcode_ctl
lrwxrwxrwx 1 root root 15 3月 14 09:06 S05kudzu -> ../init.d/kudzu
lrwxrwxrwx 1 root root 17 3月 14 10:15 S05openibd -> ../init.d/openibd
lrwxrwxrwx 1 root root 18 3月 14 09:08 S06cpuspeed -> ../init.d/cpuspeed
lrwxrwxrwx 1 root root 22 3月 14 09:16 S08arptables_jf -> ../init.d/arptables_jf
lrwxrwxrwx 1 root root 17 3月 14 10:22 S10network -> ../init.d/network
lrwxrwxrwx 1 root root 16 3月 14 09:06 S12syslog -> ../init.d/syslog
lrwxrwxrwx 1 root root 20 3月 14 09:09 S26lm_sensors -> ../init.d/lm_sensors
lrwxrwxrwx 1 root root 16 3月 14 09:08 S28autofs -> ../init.d/autofs
lrwxrwxrwx 1 root root 13 3月 14 10:30 S50yum -> ../init.d/yum
lrwxrwxrwx 1 root root 14 3月 14 09:08 S55sshd -> ../init.d/sshd
lrwxrwxrwx 1 root root 16 3月 14 09:08 S56xinetd -> ../init.d/xinetd
lrwxrwxrwx 1 root root 18 3月 14 09:08 S80sendmail -> ../init.d/sendmail
lrwxrwxrwx 1 root root 15 3月 14 09:08 S90crond -> ../init.d/crond
lrwxrwxrwx 1 root root 13 3月 14 10:34 S91smb -> ../init.d/smb
lrwxrwxrwx 1 root root 17 3月 14 09:07 S95anacron -> ../init.d/anacron
lrwxrwxrwx 1 root root 19 3月 14 09:06 S98haldaemon -> ../init.d/haldaemon
lrwxrwxrwx 1 root root 11 3月 14 10:22 S99local -> ../rc.local

あとはyumをかけておしまいでした。