2008/07/17

VMware 仮想マシン作成

参考「VMware Player用の仮想マシンを作成するには − @IT

ディスクイメージ作成
# yum -y install qemu
$ qemu-img create -f vmdk hda.vmdk 8G


vmxファイル
#!/usr/bin/vmplayer

# 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 = "other26xlinux"

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

# 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 = "512"
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 = "TRUE"

# 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"
usb.generic.autoconnect = "FALSE"

# Logging
# This config activates logging, and keeps last log
logging = "FALSE"

# 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
# This config activates this NIC by default
ethernet0.present = "TRUE"
ethernet0.connectionType = "nat"
ethernet0.addressType = "generated"
ethernet0.generatedAddressOffset = "0"
ethernet0.virtualDev = "vlance"

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

# First IDE disk
# This disk image is selected by default
ide0:0.present = "TRUE"
ide0:0.fileName = "hda.vmdk"
ide0:0.mode = "persistent"
ide0:0.startConnected = "TRUE"
ide0:0.writeThrough = "TRUE"

# LiveCD
ide1:0.present = "TRUE"
ide1:0.fileName = "foobar.iso"
ide1:0.deviceType = "cdrom-image"
ide1:0.startConnected = "TRUE"
ide1:0.mode = "persistent"


仮想マシン起動
$ vmplayer foobar.vmx

0 件のコメント:

コメントを投稿