VMWare: file vmdk e vmx
Questi file vengono usati per le virtualizzazioni di SO, con VMWare.
come file vmdk di partenza, usare questo:
come file VMX usare questo:
in sostanza, i file VMX, che lanceranno il SO virtuale, installato sull’HD virtuale *.vmdk, è così composto:
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 = “Test OS”
# 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 = “384”
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”
# First serial port, physical COM1 is available
serial0.present = “TRUE”
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 = “TRUE”
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 = “My_Virtual_Machine.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”
ethernet0.virtualDev = “vlance”
ethernet0.connectionType = “nat”
ethernet0.addressType = “generated”
ethernet0.generatedAddressOffset = “0”
# 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”
# First IDE disk, size 4800Mb
ide0:0.present = “TRUE”
ide0:0.fileName = “guestOS.vmdk”
ide0:0.mode = “persistent”
ide0:0.startConnected = “TRUE”
ide0:0.writeThrough = “TRUE”
1. La voce MEMSIZE indica quanta memoria si vuole dedicare al Sistema Ospite.
Con 1GB di memoria, 384MB sono sufficienti.
2. ide0:0.fileName = “guestOS.vmdk“
deve avere lo stesso nome del file vmdk che useremo com HD virtuale.
3. displayName = “Test OS”
indica il nome che VMWare mostrerà all’avvio del sistema ospite.
Per installare da una ISO presente su HD (nel caso non la si abbia già masterizzata su CD, si modificano solo le righe 4÷6:
al posto di:
ide1:0.present = “TRUE”
ide1:0.fileName = “auto detect”
ide1:0.deviceType = “cdrom-raw”
si useranno:
ide1:0.present = “TRUE”
ide1:0.fileName = “C:\percorso_OSiso\OSiso.iso”
ide1:0.deviceType = “cdrom-image”
ovviamente nella seconda riga, bisogna fare attenzione ad indicare l’esatto percorso, e l’esatto nome del file ISO, che vogliamo installare.
Una volta installato il SO, nel file VMX ripristinare le righe
ide1:0.present = “TRUE”
ide1:0.fileName = “auto detect”
ide1:0.deviceType = “cdrom-raw”
Commenti recenti