Register vm esxi не видит vmx файл
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- VMware Technology Network
- :
- Cloud & SDDC
- :
- VI 3.X
- :
- VI: VMware ESXi™ 3.5 Discussions
- :
- VM inaccessible (vmx file missing)
VCPGuru
- Mark as New
- Bookmark
- Subscribe
- Mute
- Email to a Friend
We have a running VM, this VM shows up in the vCenter server as inaccessible.
I checked the datastores. The *.vmx file of the VM is missing. So I could not re-register the VM.
Any help would be appreciated!
savantsingh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Email to a Friend
If the VM is running that means there is a config file (vmx) which started it.
Did you migrate this VM to a different datastore. check your datastores to see if there is any other folder with this VMs name. It could be the vmx file has not moved with the other files. Try searching by using winscp or the service console.
If you can't find it, which would be quite strange..create a new VM with the same config and attach the virtual devices..
Hope this helps!!
NTurnbull
- Mark as New
- Bookmark
- Subscribe
- Mute
- Email to a Friend
Hi, first thing I'd check would be is this a disk connected to a vm on another datastore (maybe space was an issue at one point), do you have the .nvram, .vmxf and log files etc.. if not then this disk is most probably connected to a vm on another datastore (remember that a vm might not be the same as the directory on the datastore if you've renamed it in VC)
If it's just the .vmx then you can create a new vm and just point it to that .existing .vmdk
krowczynski
- Mark as New
- Bookmark
- Subscribe
- Mute
- Email to a Friend
Try to move the vm on a different datastore or resrart the vcenter service to see if this help.
bulletprooffool
- Mark as New
- Bookmark
- Subscribe
- Mute
- Email to a Friend
How to create a new vmx file:
VCPGuru
- Mark as New
- Bookmark
- Subscribe
- Mute
- Email to a Friend
The strange thing is, that the vmdks are renamed like "servername-flat.vmdk".
And in the databrowser it shows that the vmdk files are NOT from the type "Virtual Disk", the type is "File".
How could I change that? The VM is still running and I could connect through RDP to the VM.
NTurnbull
- Mark as New
- Bookmark
- Subscribe
- Mute
- Email to a Friend
Hi, when you browse the datastore a virtual disk is comprised of two files, a xxxx-flat.vmdk which is where all the actual data is stored and a xxxx.vmdk file which is the virtual disc descriptor file. Can't remember in which release of 3.5 update x browsing the datastore via VC only shows you one file not both of them.
Can you post the contents of the xxxx.vmdk file?
As for the vm being inaccessible, have you tried a re-scan of the hba's? Strangly enough I had to do this this morning as one of my LUNs dropped off-line and I got an error saying 'Unable to get information about the file xxx/xxx/xxx/xxx.vmx : bad file descriptor" back now, problem for the NetApp boys an girls
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- VMware Technology Network
- :
- Desktop Hypervisor
- :
- VMware Workstation
- :
- VMware Workstation Pro Discussions
- :
- ESXi 6.7.0 vmx and vmdk not found
StefanJoachim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Email to a Friend
today I want to add a usb device in the configuration.
After saving I got the message, that the vmx file couldn't found.
I take a look to the storage and the vmdk file is gone too.
Only this files are in the directory:
A backup isn't available, because it's on a "small private" envirnonment.
I can open the srv030-flat.vmdk with 7zip, but I miss many data - I think this data are in srv030-000001-sesparse.vmdk.
Is there a way to repair the virtuel machine?
Or is there a way to get the data from the sesparse file?
I use Workstation 15 too.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Email to a Friend
In addition to the missing .vmdk descriptor files, I created a .vmx with some default settings, and the snapshot files.
Please extract the files from the attached archive, and upload them to the VM's folder on the ESXi host's datastore. Then register the VM by right-clicking it's .vmx file.
scott28tt
- Mark as New
- Bookmark
- Subscribe
- Mute
- Email to a Friend
Which is the host product of the problem VM - ESXi or Workstation?
Although I am a VMware employee I contribute to VMTN voluntarily (ie. not in any official capacity)
VMware Training & Certification blog
continuum
- Mark as New
- Bookmark
- Subscribe
- Mute
- Email to a Friend
First of all: do NOT use the basedisk standalone ! - you need the snapshot !
To create the 4 missing vmdk-descriptor I need the size of both flat.vmdks in bytes.
________________________________________________
Do you need support with a VMFS recovery problem ? - send a message via skype "sanbarrow"
I do not support Workstation 16 at this time .
StefanJoachim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Email to a Friend
it's the VM ESXi.
I copied the files to the Workstation, but it doesnt work there too.
StefanJoachim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Email to a Friend
thanks a lot for a little hope
I got this information while getting the file property with windows.
srv030-flat.vmdk - 128.849.018.880 Bytes
srv030_1-flat.vmdk - 64.424.509.440 Bytes
This is the information got with putty ls -ls:
29414400 -rw------- 1 root root 30362042368 Feb 17 08:25 srv50-000001-sesparse.vmdk
125829120 -rw------- 1 root root 128849018880 Jul 15 2020 srv50-flat.vmdk
0 -rw------- 1 root root 47 Oct 21 16:27 srv50.vmxf
5130240 -rw------- 1 root root 5371854848 Feb 17 08:25 srv50_1-000001-sesparse.vmdk
62914560 -rw------- 1 root root 64424509440 Jul 15 2020 srv50_1-flat.vmdk
Есть ли простой способ заставить VM работать и запускаться из папки VM?
Изменить: когда я пытаюсь развернуть из файла VMX, я получаю это vm:
, и я не могу отредактировать настройки или включить его.
Мы исправили проблему. Файл был предоставлен нам из VMPlayer, и аппаратная версия была несовместима. Мы понизили версию HW и экспортировали ее как файл .ova. Оттуда мы смогли импортировать в vCenter.
3 ответа
Используете ли вы клиент vSphere? Если это так, ваш ключ должен использовать файл .vmx.
В общем случае ( без подробностей о версиях и т. д. ) это выполняется путем просмотра хранилища данных, перехода к папке виртуальной машины, щелчка правой кнопкой мыши по соответствующему файлу .vmx и добавление VM в ваш инвентарь.
Оттуда вы должны иметь виртуальную машину, доступную в инвентаре центра обработки данных (или хоста). Именно тогда вы сможете задействовать виртуальную машину.
>
Edit:
Если .vmx не подходит, вы можете создать новую виртуальную машину .
Чтобы добавить виртуальный диск .vmdk на машину VMware, выполните следующие действия:
Откройте виртуальную машину VMware и убедитесь, что она выключена; Выберите VM -> Настройки; На вкладке «Оборудование» нажмите «Добавить», чтобы запустить мастер «Добавить оборудование», выберите «Жесткий диск» и нажмите «Далее». На странице «Выбор диска» выберите «Использовать существующий виртуальный диск» и нажмите «Далее». На странице «Выбор существующего диска» введите имя пути и имя файла для существующего файла диска или перейдите к файлу и нажмите «ОК». (!) Даже если преобразованный виртуальный диск состоит из нескольких файлов .vmdk, вам нужно будет выбрать только один файл .vmdk на последней странице мастера. Это добавит весь виртуальный диск.
Если вы хотите создать vm через файл vmdk, вам следует изменить файл vmdk.
Затем он сгенерирует два файла (target.vmdk и target-flat.vmdk). Вы должны использовать target.vmdk для создания vm.
Похожие вопросы
Популярные теги
One of our VMs disappeared from the environment. I can see the VMX and VMDK files in the datastore, but they are locked. I cannot register the VM. I cannot removed the vmx.lck file in the vSphere client or ESXi shell. Has anyone encountered something similar?
Edit: The server is ESXi 5.5
Once you've rebooted the host have you tried just deleting the lock file and registering the vmx?
I vaguely remember a situation like this back in the 4.0 days.
Yes, the lock remained after reboot.
You can't see it at all in VSphere?
"vim-cmd /vmsvc/getallvms" in the ESXi shell doesn't show it as well.
Long shot but if you know what host it is on, and you can kill the VM, disable any DRS, migrate all other VMs off and switch off the host. Should unlock it right? (no I've never tried this!)
The VM is gone. It is no longer in the inventory. I am logged into the host directly which has a local drive with the datastore. The issue is there is a vmx.lck file that locks the vmx and vmdk file. I can't figure out how to unlock the files to add the VM back into the inventory. Thanks for the input.
I've seen this before. One of your hosts have locked the files preventing you from starting the vm somewhere else. Short of rebooting you can only solve this through the cli.
Thanks for the input. The VM is not in the environment anymore. The problem is that I cannot register the vmx file from the datastore with the host.
Check which host has the lock and try to register it there. If that does not help, try to kill the VM on that host.
Thanks. We have tried that, but there is no VM to kill. It had disappeared from the inventory. I am having issues restoring it from the datastore.
I realize this topic is 16 days old and youve probably resolved it by now.
Was this a clustered environment? I had this happen a while back due to a failed HA event, and it was registered/locked on a host I would have never expected it to be on. Resolution for me was reboot the entire cluster a couple hosts at a time, until the lock file was removed.
Есть ли простой способ запустить и запустить виртуальную машину из папки VM?
Изменить: Когда я пытаюсь развернуть из файла VMX, я получаю этот VM:
и я не могу изменить настройки или включить его.
Мы исправили проблему. Файл был передан нам из VMPlayer, и аппаратная версия была несовместима. Мы понизили версию HW и экспортировали ее в файл .ova. Оттуда мы смогли импортировать в vCenter.
Я имею в виду, что хочу иметь работающую виртуальную машину. Кто-то дал мне эту папку VM, и я хочу использовать ее на своем хосте.
Вы используете клиент vSphere? Если это так, ваш ключ должен использовать файл .vmx.
Обычно ( без подробностей о версиях и т. Д. ) Это достигается путем просмотра хранилища данных, перехода к папке виртуальной машины, щелчка правой кнопкой мыши по соответствующему файлу .vmx и добавления виртуальной машины в инвентарь.
Оттуда у вас должна быть доступная виртуальная машина в вашем инвентаре центра обработки данных (или хоста). Тогда вы сможете включить виртуальную машину.
Если .vmx не годится, вы можете создать новую виртуальную машину .
- Выберите «Custom».
- Настройте с необходимыми спецификациями.
- Когда вы попадете в раздел «Выбор диска», выберите «Использовать существующий виртуальный диск».
- Откроется диалоговое окно, в котором вы можете перейти к файлу .VMDK.
- Завершите настройку.
- Прибыль.
И если вы делаете это, а виртуальная машина все еще отображается как «неизвестная», то, вероятно, что-то не так с .vmx . Это текстовый файл, откройте его и сравните с рабочим.
Я тоже это попробовал . Я просто приму этот ответ, но я не знаю, правильно ли я его спросил. Еще одно примечание: у zip-файла, который я получил, было несколько снимков, которые были собраны заново после полной загрузки папки. Это имеет значение? Спасибо за вашу помощь.
@ Джефф Ох, снимки, возможно, не были объединены. Они не отображаются в диалоговом окне браузера хранилища данных специально. Это может быть вашей проблемой здесь. Есть ли у вас доступ к оригинальной системе?
Чтобы добавить виртуальный диск .vmdk на компьютер VMware, выполните следующие действия:
Откройте виртуальную машину VMware и убедитесь, что она выключена; Выберите VM -> Настройки; На вкладке «Оборудование» нажмите «Добавить», чтобы запустить мастер установки оборудования, выберите «Жесткий диск» и нажмите «Далее». На странице «Выбор диска» выберите «Использовать существующий виртуальный диск» и нажмите «Далее». На странице «Выбрать существующий диск» введите имя пути и имя файла для существующего файла диска или найдите файл и нажмите «ОК». (!) Даже если преобразованный виртуальный диск состоит из нескольких файлов .vmdk, вам потребуется выбрать только один файл .vmdk на последней странице мастера. Это добавит весь виртуальный диск.
Читайте также: