Tell me more ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Accidentally, I removed vmx file of Vmware Image when it is running。 So could someone have methods to recover this.

share|improve this question

migrated from stackoverflow.com Nov 1 '10 at 7:14

2 Answers

Bad news: I think you're going to have to re-create it.

Good news: The VMDK holds the whole disk - so most of the "important" stuff is in there.

So, create a new VM - then configure the disk(s) to use the existing VMDK.

Also, this kind of question should really be posted on "superuser.com" - not "stackoverflow.com".

share|improve this answer
Ok. How to move this post to superuser.com. – Joseph Nov 1 '10 at 4:25

Find a solution to recover this.

  1. The content of vmx file should be logged into vmware image's log.

  2. So, copy content like below to a file (These contents should be located between Configuration and USER DEFAULT in vmware image's log), named this file like example.vmx.

config.version = "8"

virtualHW.version = "4"

floppy0.present = "true"

nvram = "VNTco012.nvram"

deploymentPlatform = "windows"

virtualHW.productCompatibility = "hosted"

tools.upgrade.policy = "manual"

powerType.powerOff = "default"

powerType.powerOn = "default"

powerType.suspend = "default"

powerType.reset = "default"

displayName = "VNTco012"

extendedConfigFile = "VNTco012.vmxf"

scsi0.present = "true"

scsi0.sharedBus = "none"

scsi0.virtualDev = "lsilogic"

memsize = "2048"

scsi0:0.present = "true"

scsi0:0.fileName = "VNTco012.vmdk"

scsi0:0.deviceType = "scsi-hardDisk"

sched.scsi0:0.shares = "normal"

ide0:0.present = "true"

ide0:0.clientDevice = "true"

ide0:0.fileName = "/usr/lib/vmware/isoimages/windows.iso"

ide0:0.deviceType = "atapi-cdrom"

ide0:0.startConnected = "false"

floppy0.startConnected = "false"

floppy0.fileName = "/dev/fd0"

floppy0.clientDevice = "true"

ethernet0.present = "true"

ethernet0.networkName = "VM Network 1007"

ethernet0.addressType = "vpx"

ethernet0.generatedAddress = "00:50:56:aa:40:b9"

guestOSAltName = "Microsoft Windows Server 2003, Standard Edition (32-bit)"

guestOS = "winnetstandard"

uuid.bios = "50 2a 7f e5 bc 42 27 8b-d0 04 3f 47 3c d8 3a ed"

log.fileName = "vmware.log"

snapshot.action = "keep"

sched.cpu.min = "0"

sched.cpu.units = "mhz"

sched.cpu.shares = "normal"

sched.mem.minsize = "0"

sched.mem.shares = "normal"

toolScripts.afterPowerOn = "true"

toolScripts.afterResume = "true"

toolScripts.beforeSuspend = "true"

toolScripts.beforePowerOff = "true"

scsi0:0.redo = ""

tools.remindInstall = "FALSE"

vmware.tools.requiredversion = "7299"

ethernet0.startConnected = "TRUE"

tools.deployPkg.fileName = ""

numvcpus = "2"

scsi0:1.present = "true"

scsi0:1.fileName = "VNTco012_1.vmdk"

scsi0:1.deviceType = "scsi-hardDisk"

  1. Start image with opening example.vmx.
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.