VMware Cloud Community
andyamato
Contributor
Contributor

esxi 5.0 - deleted disk from nas before removing from vm - vm does not boot

yesterday i deleted a lun that I did not need any longer on the nas.  But, did it before removing it from the vm.  Now the vm will not boot up.  it was not a system disk.  I get a pop up error.  See attached.  I tried to delete the disk from the vcenter interface but it won't let me.  tips/suggestions/ideas?

Thanks!

Reply
0 Kudos
6 Replies
homerzzz
Hot Shot
Hot Shot

Does your vmx file for this virtual machine contain entries similar to the example below? If so, I would think you can remove these lines from the vmx file, upload it back to the datastore and power on the VM. Make sure to save a copy of the original vmx file if you try this.

scsi0:1.fileName = "ReplayCore-080213.vmdk"

scsi0:1.mode = "persistent"

scsi0:1.ctkEnabled = "true"

scsi0:1.deviceType = "scsi-hardDisk"

scsi0:1.present = "true"

scsi0:1.redo = ""

andyamato
Contributor
Contributor

thanks for the tip!  when I did that and added back into inventory the vm showed that it was greyed out and it was invalid.  I put back the original vmx file and issue is back to where I am.  perhaps I edited the file incorrectly?  further tips?


Reply
0 Kudos
homerzzz
Hot Shot
Hot Shot

What does your vmx file look like?

This is what I did to test this:

Shut down the VM

Delete one of the VMs vmdk (non system)

Browse datastore and download the vmx to my desktop

delete vmx from datastore

copy and remove the lines referenced above from the vmx and save.

upload new vmx to datastore and power on VM

How did you delete the vmdk from the NAS?

Reply
0 Kudos
andyamato
Contributor
Contributor

below is my file.  scsi0:3 is what i'm trying to remove...

.encoding = "UTF-8"

config.version = "8"

virtualHW.version = "8"

pciBridge0.present = "true"

pciBridge4.present = "true"

pciBridge4.virtualDev = "pcieRootPort"

pciBridge4.functions = "8"

pciBridge5.present = "true"

pciBridge5.virtualDev = "pcieRootPort"

pciBridge5.functions = "8"

pciBridge6.present = "true"

pciBridge6.virtualDev = "pcieRootPort"

pciBridge6.functions = "8"

pciBridge7.present = "true"

pciBridge7.virtualDev = "pcieRootPort"

pciBridge7.functions = "8"

vmci0.present = "true"

hpet0.present = "true"

nvram = "ReplayCore_080213.nvram"

virtualHW.productCompatibility = "hosted"

powerType.powerOff = "soft"

powerType.powerOn = "hard"

powerType.suspend = "hard"

powerType.reset = "soft"

displayName = "ReplayCore_080213"

extendedConfigFile = "ReplayCore_080213.vmxf"

floppy0.present = "true"

scsi0.present = "true"

scsi0.sharedBus = "none"

scsi0.virtualDev = "lsisas1068"

memsize = "4096"

scsi0:0.present = "true"

scsi0:0.fileName = "ReplayCore_080213.vmdk"

scsi0:0.deviceType = "scsi-hardDisk"

sched.scsi0:0.shares = "normal"

sched.scsi0:0.throughputCap = "off"

ide1:0.present = "true"

ide1:0.fileName = "/vmfs/volumes/4e9ebfd4-7277d7cd-0d0c-441ea13b0913/WinServer2008R2/7601.17514.101119-1850_x64fre_server_eval_en-us-GRMSXEVAL_EN_DVD.iso"

ide1:0.deviceType = "cdrom-image"

ide1:0.startConnected = "false"

floppy0.startConnected = "false"

floppy0.fileName = ""

floppy0.clientDevice = "true"

ethernet0.present = "true"

ethernet0.virtualDev = "e1000"

ethernet0.networkName = "VM Network"

ethernet0.addressType = "vpx"

ethernet0.generatedAddress = "00:50:56:b4:24:a2"

svga.vramSize = "8388608"

disk.EnableUUID = "true"

guestOS = "windows7srv-64"

uuid.bios = "42 34 8d 39 a3 06 76 9c-25 7f 22 05 8c 62 e5 41"

vc.uuid = "50 34 c7 56 20 46 04 33-c6 62 fd c4 e1 36 9c ec"

log.fileName = "vmware.log"

snapshot.action = "keep"

sched.cpu.min = "0"

sched.cpu.units = "mhz"

sched.cpu.shares = "normal"

sched.mem.min = "0"

sched.mem.shares = "normal"

tools.upgrade.policy = "manual"

replay.supported = "FALSE"

unity.wasCapable = "FALSE"

replay.filename = ""

scsi0:0.redo = ""

pciBridge0.pciSlotNumber = "17"

pciBridge4.pciSlotNumber = "21"

pciBridge5.pciSlotNumber = "22"

pciBridge6.pciSlotNumber = "23"

pciBridge7.pciSlotNumber = "24"

scsi0.pciSlotNumber = "160"

ethernet0.pciSlotNumber = "32"

vmci0.pciSlotNumber = "33"

scsi0.sasWWID = "50 05 05 69 a3 06 76 90"

ethernet0.generatedAddressOffset = "0"

hostCPUID.0 = "0000000d756e65476c65746e49656e69"

hostCPUID.1 = "000206a70010080017bae3ffbfebfbff"

hostCPUID.80000001 = "00000000000000000000000128100800"

guestCPUID.0 = "0000000d756e65476c65746e49656e69"

guestCPUID.1 = "000206a700010800969822030febfbff"

guestCPUID.80000001 = "00000000000000000000000128100800"

userCPUID.0 = "0000000d756e65476c65746e49656e69"

userCPUID.1 = "000206a700100800169822030febfbff"

userCPUID.80000001 = "00000000000000000000000128100800"

evcCompatibilityMode = "FALSE"

vmotion.checkpointFBSize = "8388608"

scsi0:1.ctkEnabled = "FALSE"

scsi0:1.redo = ""

ethernet0.startConnected = "TRUE"

tools.deployPkg.fileName = ""

vmci0.id = "-1939675839"

tools.syncTime = "FALSE"

annotation = "8/2/13 - replay core cloned from |22TempToClone_Win2k8r2_082712|0Acloned to replace vm: ReplayCore_082712|0AWindows installation problems and upgrading to new version of replay core: 4.7.2.59082 |0Afrom previous version: 4.7.2.41260"

uuid.location = "56 4d f2 ad dc 24 e9 8c-c6 8d 57 d2 22 ab a2 74"

cleanShutdown = "TRUE"

sched.swap.derivedName = "/vmfs/volumes/4e9ebfd4-7277d7cd-0d0c-441ea13b0913/ReplayCore_080213/ReplayCore_080213-ac24d3db.vswp"

scsi0:1.fileName = "ReplayCore_080213_1.vmdk"

scsi0:1.mode = "persistent"

scsi0:1.deviceType = "scsi-hardDisk"

scsi0:1.present = "TRUE"

scsi0:2.fileName = "/vmfs/volumes/4f7ebc9b-be4fdc2c-a98c-441ea13b0913/ReplayCore_080213/ReplayCore_080213.vmdk"

scsi0:2.mode = "persistent"

scsi0:2.ctkEnabled = "FALSE"

scsi0:2.deviceType = "scsi-hardDisk"

scsi0:2.present = "TRUE"

scsi0:2.redo = ""

scsi0:3.fileName = "/vmfs/volumes/52458d90-417c6cc1-9883-441ea13b0913/ReplayCore_080213/ReplayCore_080213.vmdk"

scsi0:3.mode = "persistent"

scsi0:3.ctkEnabled = "FALSE"

scsi0:3.deviceType = "scsi-hardDisk"

scsi0:3.present = "TRUE"

scsi0:3.redo = ""

scsi0:4.fileName = "/vmfs/volumes/5249940c-e7de0933-063c-441ea13b0913/ReplayCore_082712/ReplayCore_082712.vmdk"

scsi0:4.mode = "persistent"

scsi0:4.ctkEnabled = "FALSE"

scsi0:4.deviceType = "scsi-hardDisk"

scsi0:4.present = "TRUE"

scsi0:4.redo = ""

sched.scsi0:4.shares = "normal"

sched.scsi0:4.throughputCap = "off"

scsi0:5.fileName = "/vmfs/volumes/4f7ebc9b-be4fdc2c-a98c-441ea13b0913/ReplayCore/ReplayCore_082712.vmdk"

scsi0:5.mode = "persistent"

scsi0:5.ctkEnabled = "FALSE"

scsi0:5.deviceType = "scsi-hardDisk"

scsi0:5.present = "TRUE"

scsi0:5.redo = ""

scsi0:6.fileName = "/vmfs/volumes/5249940c-e7de0933-063c-441ea13b0913/ReplayCore_082712/ReplayCore_080213.vmdk"

scsi0:6.mode = "persistent"

scsi0:6.ctkEnabled = "FALSE"

scsi0:6.deviceType = "scsi-hardDisk"

scsi0:6.present = "TRUE"

scsi0:6.redo = ""

sched.scsi0:6.shares = "normal"

sched.scsi0:6.throughputCap = "off"

scsi0:8.fileName = "/vmfs/volumes/5249940c-e7de0933-063c-441ea13b0913/ReplayCore_082712/ReplayCore_080213_1.vmdk"

scsi0:8.mode = "persistent"

scsi0:8.ctkEnabled = "FALSE"

scsi0:8.deviceType = "scsi-hardDisk"

scsi0:8.present = "TRUE"

scsi0:8.redo = ""

sched.scsi0:8.shares = "normal"

sched.scsi0:8.throughputCap = "off"

scsi0:9.fileName = "/vmfs/volumes/5249940c-e7de0933-063c-441ea13b0913/ReplayCore_082712/ReplayCore_080213_2.vmdk"

scsi0:9.mode = "persistent"

scsi0:9.ctkEnabled = "FALSE"

scsi0:9.deviceType = "scsi-hardDisk"

scsi0:9.present = "TRUE"

scsi0:9.redo = ""

sched.scsi0:9.shares = "normal"

sched.scsi0:9.throughputCap = "off"

scsi0:11.fileName = "/vmfs/volumes/525311a3-b066806f-2148-441ea13b0913/ReplayCore_080213/ReplayCore_080213.vmdk"

scsi0:11.mode = "persistent"

scsi0:11.ctkEnabled = "FALSE"

scsi0:11.deviceType = "scsi-hardDisk"

scsi0:11.present = "TRUE"

scsi0:11.redo = ""

scsi0:12.present = "FALSE"

scsi0:10.present = "FALSE"

Reply
0 Kudos
a_p_
Leadership
Leadership

Login to the host's command line (ESXi Shell or SSH) and edit the VM's .vmx file, replacing scsi0:3.present = "TRUE" with scsi0:3.present = "FALSE". After that reload the VM as explained in VMware KB: Reloading a vmx file without removing the virtual machine from inventory before you try to power it on again.

André

Reply
0 Kudos
andyamato
Contributor
Contributor

thanks for the tips...I think just removing from inventory and then adding back in cleared up my issue.

Reply
0 Kudos