!!!VMware 関連ファイル {{category "Virtual Machine",nolink}}VMware で必要・作成されるファイル * *.vmx : Virtual Machine の設定ファイル * *.vmdk : HDDディスクイメージファイル * *.nvram : Virtual Machine のBIOS設定内容 * *.vmsd : * *.vmem : ゲストOSのメモリー・バックアップ * *.vmsn : スナップショットファイル * *.vmss : サスペンド状態を保持するファイル * *.log : ログファイル 最低限必要なのは、vmx と vmdk の二つ。起動すると nvram が、サスペンドすると vmss が作られる。また、起動中に vmem が存在する。 !!!VMware 設定ファイル VMwareの設定ファイルである xxx.vmx の内容 !!設定 !config.version config.version = "8" !virtualHW.version virtualHW.version = "4" !!VM設定 !displayName - VMの名前 表示するVMの名前で、わかりやすいもの。 displayName = "Example Virtual Machine" !guestOS - ゲストOSの種類 VMで動かすゲストOSを指定する。指定できる種類は下記参照 guestOS = "other" !memsize - メモリサイズ VMのメモリサイズをメガバイト単位で指定する。 memsize = "512" !numvcpus - numvcpus = "1" !workingDir workingDir = "." !nvram - BIOS設定ファイル nvram = "example.nvram" !!SCSIデバイス !scsi0.present - SCSIコントローラデバイスがあるか SCSIデバイスがあるかを指定する。2つめ以降は、scsi1 とする。 scsi0.present = "TRUE" !scsi0.virtualDev - SCSIホストアダプタの種類 SCSIホストアダプタの種類を指定する。"LSI Logic" か "Buslogic" で、省略時は "Buslogic" となる。 scsi0.virtualDev = "lsilogic" scsi0.virtualDev = "buslogic" !scsi0:0.present - SCSIデバイスがあるか SCSI ID:0 があるかを指定する。ID:1以降は、scsi0:1 とする。Ultra SCSI なら15まで可能 scsi0:0.present = "TRUE" !scsi0:0.deviceType - デバイスの種類 接続されているデバイスの種類を指定する。"disk"(ディスクイメージ)、"cdrom-image"(ISOイメージ)、"cdrom-raw"(ホストマシンのCDドライブ) で、省略時は "disk" となる。 scsi0:0.deviceType = "disk" !scsi0:0.fileName - デバイスファイル 接続されているデバイスのイメージファイルを指定する。デバイスの種類が "disk"ならvmdkファイル、"cdrom-image"ならISOファイル、"cdrom-raw"なら"auto detect"で自動選択、"Q:"のようにドライブの指定もできる。 scsi0:0.fileName = "example.vmdk" !scsi0:0.mode ディスクイメージのみ? scsi0:0.mode = "persistent" !scsi0:0.redo ディスクイメージのみ? scsi0:0.redo = "" !scsi0:0.startConnected CDROMドライブのみ。 scsi0:0.startConnected = "TRUE" !scsi0:0.autodetect CDROMドライブのみ。 scsi0:0.autodetect = "FALSE" !!IDEデバイス present, deviceType, fileName 等は SCSIデバイスとおなじ !ide0:0.present - IDEデバイスがあるか プライマリ・マスタがあるかを指定する。プライマリ・スレーブは ide0:1 、セカンダリ・マスタは ide1:0 、セカンダリ・スレーブは ide1:1 となる。 !!フロッピー !floppy0.present - FDドライブがあるか フロッピードライブがあるかを指定する。2つめは、floppy1 とする。 floppy0.present = "TRUE" floppy0.fileType = "device" floppy0.fileName = "auto detect" floppy0.startConnected = "TRUE" floppy0.autodetect = "TRUE" !!サウンドディバイス !sound.present - サウンドディバイスがあるか sound.present = "TRUE" !sound.virtualDev - サウンドディバイスの種類 sound.virtualDev = "es1371" sound.virtualDev = "sb16" !!イーサネットディバイス !ethernet0.present - イーサネットディバイスがあるか ethernet0.present = "TRUE" !ethernet0.virtualDev ethernet0.virtualDev = "e1000" !ethernet0.connectionType - イーサネットディバイスの接続方法 "bridged"(ブリッジ接続)、"NAT"(NAT) ethernet0.connectionType = "bridged" !ethernet0.addressType ethernet0.addressType = "generated" !ethernet0.generatedAddress - MACアドレス イーサネットのMACアドレスを指定する。先頭48bitの"00:0c:29"はVMWareのマニファクチャーIDなので変えないこと ethernet0.generatedAddress = "00:0c:29:xx:xx:xx" !ethernet0.generatedAddressOffset ethernet0.generatedAddressOffset = "0" !!USBディバイス !usb.present - USBディバイスがあるか usb.present = "FALSE" !!ディスプレイ VESA VGA互換のフレームバッファ、画面解像度の指定 svga.maxWidth = "800" svga.maxHeight = "600" svga.vramSize = "67108864" !!RTC !rtc.diffFromUTC rtc.diffFromUTC = "0" !!VMwareTools !tools.syncTime - 時刻同期 tools.syncTime = "TRUE" !!よくわからん priority.grabbed = "normal" priority.ungrabbed = "normal" powerType.powerOff = "hard" powerType.powerOn = "hard" powerType.suspend = "hard" powerType.reset = "hard" uuid.location = "xx xx xx xx xx xx xx xx-xx xx xx xx xx xx xx xx" uuid.bios = "xx xx xx xx xx xx xx xx-xx xx xx xx xx xx xx xx" redoLogDir = "." undopoints.seqNum = "0" undopoint.restoreFromCheckpoint = "FALSE" undopoint.checkpointedOnline = "FALSE" checkpoint.vmState = "winNetStandard.vmss" !!!ゲストOSの種類 VMware の設定で guestOS に指定できるOSの種類の一覧。VMware のバージョンとかで使えないものもある。 !!Microsoft Windows ,値 ,OSの種類 ,win31 ,Windows 3.1 ,win95 ,Windows 95 ,win98 ,Windows 98 ,winMe ,Windows Me ,winNT ,Windows NT ,win2000Pro ,Windows 2000 Professional ,win2000Serv ,Windows 2000 Server ,win2000AdvServ ,Windows 2000 Advanced Server ,winXPHome ,Windows XP Home Edition ,winXPPro ,Windows XP Professional Edition ,winXPPro-64 ,Windows XP Professional x64 Edition ,winNetWeb ,Windows Server 2003 Web Edition ,winNetBusiness ,Windows Server 2003 Small Business ,winNetStandard ,Windows Server 2003 Standard Edition ,winNetStandard-64 ,Windows Server 2003 Standard x64 Edition ,winNetEnterprise ,Windows Server 2003 Enterprise Edition ,winNetEnterprise-64 ,Windows Server 2003 Enterprise x64 Edition ,longhorn ,Windows Longhorn ,longhorn-64 ,Windows Longhorn x64 Edition ,winVista ,Windows Vista ,winVista-64 ,Windows Vista x64 Edition !!Linux ,値 ,OSの種類 ,linux ,? ,otherlinux ,Other Linux ,otherlinux-64 ,Other Linux 64-bit ,other24xlinux ,Other Linux Kernel 2.4.x ,other24xlinux-64 ,Other Linux Kernel 2.4.x 64bit ,other26xlinux ,Other Linux Kernel 2.6.x ,other26xlinux-64 ,Other Linux Kernel 2.6.x 64bit ,ubuntu ,Ubuntu Linux ,ubuntu-64 ,Ubuntu Linux 64bit ,mandrake ,Mandrake Linux ,nld9 ,Novell Linux Desktop 9 ,redhat ,Red Hat Linux ,rhel2 ,Red Hat Enterprise Linux 2 ,rhel3 ,Red Hat Enterprise Linux 3 ,rhel3-64 ,Red Hat Enterprise Linux 3 64-bit ,rhel4 ,Red Hat Enterprise Linux 4 ,rhel4-64 ,Red Hat Enterprise Linux 4 64bit ,sjds ,Sun Java Desktop System ,suse ,SUSE Linux ,suse-64 ,SUSE Linux 64bit ,sles ,SUSE Linux Enterprise Server ,sles-64 ,SUSE Linux Enterprise Server 64bit ,turbolinux ,Turbo Linux ※linux と otherlinux の違いは?? !!Novell NetWare ,値 ,OSの種類 ,netware4 ,NetWare 4 ,netware5 ,NetWare 5 ,netware6 ,NetWare 6 !!Sun Solaris ,値 ,OSの種類 ,solaris6 ,Solaris 6 ,solaris7 ,Solaris 7 ,solaris8 ,Solaris 8 ,solaris9 ,Solaris 9 ,solaris10 ,Solaris 10 ,solaris10-64 ,Solaris 10 64bit !!Other ,値 ,OSの種類 ,dos ,MS-DOS ,freeBSD ,FreeBSD ,freeBSD-64 ,FreeBSD 64bit ,darwin ,Darwin ,os2experimental ,OS/2 (experimental) ,other ,汎用 ,other-64 ,汎用 64bit ※ Darwin と OS/2 は非公式?