دوستان در مورد ریکاوری پسوورد root در vmware از طریق rescue mode اطلاعاتی دارید؟ در این خصوص
ESXi - Reset the password for root (http://vm-help.com/esx/esx3i/Reset_root_password.php)
وجود دارد . اما راهنمایی دقیق نیست و نقاط مبهم زیادی در این دستورالعمل وجود دارد !
لطفا اگر اطلاعاتی در این خصوص دارید راهنمایی بفرمائید
با تشکر
persian.developer
December 22nd, 2013, 02:56
سلام
گمان میکنم پیش از این بارها همکاران توضیح داده اند، با iso میتوانید به راحتی انجام دهید این آموزش جالب نیست کمی در انجمن جستجو کنید به نتیجه خواهید رسید
taghi.karimi
December 22nd, 2013, 09:27
پسورد که بازیابی نمیشود.
بهترین کار این است که vmware رو مجدد طوری نصب کنید که اوررایت بشه روی vmware قبلی و بعد از نصب شدن مجدد همه vm هارو روی سرور با استفاده از فایل vmdk شون مجدد بسازید.
iMohsen
December 22nd, 2013, 09:56
سلام
گمان میکنم پیش از این بارها همکاران توضیح داده اند، با iso میتوانید به راحتی انجام دهید این آموزش جالب نیست کمی در انجمن جستجو کنید به نتیجه خواهید رسید
آخه وقتی دسترسی به سرور اصلی نیست به چه صورت با iso بیاریمش بالا ؟
من هم این چند روزه زیاد گشتم غیر از دستکاری فایلهای .tar.gz روش دیگه این بوده که دوباره vmware نصب بشه و vm ها رو نگه داره . که ریسکش زیاده !
taghi.karimi
December 22nd, 2013, 11:38
من هم این چند روزه زیاد گشتم غیر از دستکاری فایلهای .tar.gz روش دیگه این بوده که دوباره vmware نصب بشه و vm ها رو نگه داره . که ریسکش زیاده !
ریسکش فقط سر این هست که از روی اسم پوشه ها ( هر vm داخل یک پوشه به نام خودش هست ) نتونه سرویس رو مجدد ایجاد کنه.اگر نه ریسک دیگه ای نداره
Ramin
December 22nd, 2013, 19:41
دوستان سرور در دیتاسنتری قرار دارد که این کار را ( نصب مجدد مجازی ساز ) انجام نمی دهند.تها یک دسترسی rescue mode داده اند و اسرار دارند پسوورد را از این طریق به حالت دیفالت برگردانیم.
طبق همین لینک عمل می کننیم اما در مرحله مانت کردن پارتیشن این ارور را داریم
mount: unknown filesystem type 'VMFS_volume_member'
لطفا اگر راه حلی وجود دارد راهنمایی فرمائید
Ramin
December 22nd, 2013, 20:40
ریسکش فقط سر این هست که از روی اسم پوشه ها ( هر vm داخل یک پوشه به نام خودش هست ) نتونه سرویس رو مجدد ایجاد کنه.اگر نه ریسک دیگه ای نداره
یعنی هارد وی پی اس ها دچار مشکلی نمی شود؟
دوستان در مورد ارور پست بالا اطلاعاتی ندارید؟ لطفا راهنمایی کنید . مورد اورژانسی است !
safeith
December 22nd, 2013, 21:37
الان دقیقا مشکل شما چی هست برای مانت کردن پارتیشن های VMware ESXi باید از vmfs-tools استفاده کنید در صورتی که خودتان نتوانستید مشکل را حل کنید با ما تماس بگیرید تا بررسی نماییم
Ramin
December 22nd, 2013, 21:59
الان دقیقا مشکل شما چی هست برای مانت کردن پارتیشن های VMware ESXi باید از vmfs-tools استفاده کنید در صورتی که خودتان نتوانستید مشکل را حل کنید با ما تماس بگیرید تا بررسی نماییم
سلام
مشکل این هستش که ما پسوورد vmware را فراموش کردیم. در نتیجه تماس با دیتاسنتر تنها یک دسترسی rescue mode ارسال کردند تا خودمان پسوورد را به حالت دیفالت تغییر دهیم از طریق ! دسترسی به کنسول و ... سرور هم وجود ندارد
مورد بعد اینکه از طریق این آموزش و استفاده از rescue mode :
ESXi - Reset the password for root (http://vm-help.com/esx/esx3i/Reset_root_password.php)
قصد بازیابی پسوورد را داشتیم اما در مرحله مانت کردن پارتشین طبق آموزش موجود در لینک بالا برای ما یک ارور نمایش داده می شود :
mount: unknown filesystem type 'VMFS_volume_member'
شما در این خصوص اطلاعات لازم را دارید؟دلیل این ارور را می دانید؟
Ramin
December 23rd, 2013, 14:06
up ....
safeith
December 23rd, 2013, 14:28
up ....
اگر تا حالا نتوانستید حل نمایید با ما تماس بگیرید تا با هزینه برایتان انجام دهیم
Ramin
December 23rd, 2013, 14:30
اگر تا حالا نتوانستید حل نمایید با ما تماس بگیرید تا با هزینه برایتان انجام دهیم
پست قبل را مطالعه کردید؟ با همان دسترسی و با حفظ اطلاعات می توانید انجام دهید؟
svgdata
December 23rd, 2013, 14:37
As with any system there may arise a situation in which the root login has been misplaced or forgotten. The below process will show you how to reset the password for root back to a blank password. This is not supported by VMware and you might consider running a repair install of ESXi instead of this process. A repair install will overwrite the system partitions of an ESXi install but preserve any VMFS datastores. After a repair install one can add the existing VMs back to inventory by browsing the datastore, right clicking on VMX files and selecting Add to Inventory. Note that changing the password of root back to blank will prevent the mounting of any NFS datastores as these depend on the root login to authenticate with the NFS server.
This process does require some sort of physical access to the host as it will require booting it with an alternate OS. In the below example I used the Slax (http://www.slax.org/) Linux Live CD. Please note that I tested this process on a test server with no VMs. It was basically a fresh install on which I changed the root password and created another login. I then used this process to reset the password of root and rebooted the host. After the reboot I could login with no password for root and the other account worked fine as well. While I think this is a relatively safe process, if I were doing this on a live system I would ensure that I had backups of the VMs and if possible a configuration backup (http://vm-help.com/esx/esx3i/esx_3i_rcli/vicfg-cfgbackup.php) for ESXi.
If you do want to want to retrieve the root or other password password, you can use the initial steps to retrieve a copy of the shadow file. Then use a tool like john the ripper (http://www.openwall.com/john/) (jtr) to crack the password. If a common word / pass phase was used for the password and you use a extensive password list with jtr then you may be able to retrieve the password in a fairly short time frame
1) The below image was taken from the console of the ESXi host and the output of cat /etc/shadow shows the encrypted password for the root login. You may wish to record the password hash should you wish to reverse this change.
http://vm-help.com/esx/esx3i/Reset_root_password/password1.jpg
2) After the host was shut down, I booted up with the Linux live CD. I then ran the commands fdisk -l and ls -l /mnt/sda5/ / ls -l /mnt/sda6/ to determine the location of the most recent state.tgz file. Note that if you're using ESXi Embedded then you may only see local.tgz instead of state.tgz and you should then copy and recreate that file. In my below example, ESXi was a fresh install so /sda6 has no files but boot.cfg. When booting ESXi on this host, /sda5 would be mounted as /bootbank and /sda6 as /altbootbank.
http://vm-help.com/esx/esx3i/Reset_root_password/password2.jpg
3) After determining where the most recent state.tgz file was located, this was copied to /tmp. gzip and tar were then used to extract local.tgz from state.tgz. If you're using ESXi Embedded then you will copy local.tgz to tmp and run gzip and tar on that file. Once local.tar was extracted the cd etc command was run followed by vi shadow.
http://vm-help.com/esx/esx3i/Reset_root_password/password3.jpg
4) The below two images show the shadow file before and after editing. Essentially you'll want to have the root entry as root::13358:0:99999:7::: . Once you have removed the password hash, press ESC and to save the change type in :wq and press Enter. You can run cat shadow to confirm that the change was saved successfully.
http://vm-help.com/esx/esx3i/Reset_root_password/password4.jpg
http://vm-help.com/esx/esx3i/Reset_root_password/password5.jpg
5) Once the shadow file has been updated, you'll use cd .. to go back to /tmp and then run tar -czvf local.tgz etc to create the local.tgz file. If you're using ESXi Embedded then you'll copy this file to the drive where it came from in step 3. Otherwise you'll run tar -czvf state.tgz local.tgz to create state.tgz which should then be copied to the correct location. In the below image you'll notice that I don't always use the -v option with the tar command. This option displays a list of all files being processed by the command and would have resulted in larger screen output. It is entirely optional for this process, but can provide a good check to see if the right files are being processed. When running tar to extract the local file, a large number of files will be processed. I've also used the ls -l command a few times in the below image. This was done to ensure that the file copied correctly.
http://vm-help.com/esx/esx3i/Reset_root_password/password6.jpg
6) Once the file has been copied back to the /bootbank partition the host can be rebooted back into ESXi. You'll be able to login with the root account with no password and will be greeted with the familiar message to change the root password.
Ramin
December 23rd, 2013, 15:09
دوست عزیز این آموزش را از لینک ابتدایی همین تاپیک اینجا کپی کردید؟ بنده این آموزش را مطالعه کرده بودم . عض کردم مشکلی در یکی از مراحل وجود دارد . و آن مانت کردن است
safeith
December 23rd, 2013, 15:18
پست قبل را مطالعه کردید؟ با همان دسترسی و با حفظ اطلاعات می توانید انجام دهید؟
بله، تماس بگیرید تا انجام دهیم
Ramin
December 23rd, 2013, 19:59
up ....
Ramin
December 23rd, 2013, 20:26
up .....
Ramin
December 24th, 2013, 02:11
در انجمن هیچ کدام از دوستان اطلاعاتی در این زمینه ندارند؟
Ramin
December 24th, 2013, 09:32
up .....
CityKala.net
December 24th, 2013, 11:49
up .....
شما اصلا دقتی به تیکت ها کردی؟ :دی
رفع شد.
منتها الان روی rescue mode گیر کرده یک پسورد rescue عوض می شه
الان دیدم نمیره روی هارد دیسک درخواست دادم دیتاسنتر خودشان جا به جا کنند.