Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2029600
  • 博文数量: 593
  • 博客积分: 20034
  • 博客等级: 上将
  • 技术积分: 6779
  • 用 户 组: 普通用户
  • 注册时间: 2006-02-06 14:07
文章分类

全部博文(593)

文章存档

2016年(1)

2011年(101)

2010年(80)

2009年(10)

2008年(102)

2007年(16)

2006年(283)

我的朋友

分类: LINUX

2011-04-16 17:11:33

Install ESXi 4.0 to an IDE drive

By default, if the ESXi install can not find a supported device to install to, then the installer will quit with the error message: "Unable to find a supported device to write the VMware ESXi image to." If it is the case that the IDE drive in your host is recognized by ESXi, then you will be able to modify the install script TargetFilter.py to recognize your IDE device as a supported install device. You can find the list of devices that ESXi can recognize .

The install process for this can be found below, and a video of the process can be found at the bottom of this page. This demo was created using a VMware Workstation VM which only had a 4 GB IDE drive.

Install Process

1) If you have encountered the error shown above, you can press ALT-F1 to access the console of the ESXi install. You'll be prompted for a login and you can use 'root'. The password for root with be blank. As mentioned above, this process assumes you have an IDE drive that ESXi can recognize. You can use the command lspci to show the list of devices that ESXi can recognize and then compare that with this list of devices. Also if you run fdisk -l, you should see your IDE drive listed.
2) After you have console access you will enter the command chmod 644 /usr/lib/vmware/installer/Core/TargetFilter.py (note that the path and filename are case-sensitive). This command will allow you to save changes to the TargetFilter.py file.
3) Then enter the command vi /usr/lib/vmware/installer/Core/TargetFilter.py
4) Scroll down in the document until you find the section "def IDEFilter(lun)". You will be changing the text:

return interface.GetInterfaceType() == ScsiInterface.SCSI_IFACE_TYPE_IDE
to
return interface.GetInterfaceType() == ScsiInterface.SCSI_IFACE_TYPE_ISCSI

If you have not used vi before, move the cursor to the end of "TYPE_IDE" and the press the Insert key. The press backspace to delete IDE and type in ISCSI. Then press the ESC key, type in the command :wq and press Enter to save the file and exit.

5) You will now be back at the console. If you had stopped the installer at the screen show below, you can press ALT-F2 to return to the screen and press Enter to start the install, but it will still generate the error shown in the image above. You will need to press ALT-F1 and then type in cd /usr/lib/vmware/installer and press enter. Then enter the command: python ThinESX.py.
6) When you run the command to start the install, it is important to note that the installer may switch you back to the ALT-F2 (DCUI) screen. If that is the case, then press ALT-F1 to return to the console again. You will see the below screen again with the prompt to press Enter to install. Do so and the install will proceed.

ESX40_IDE2

7) Press F11 on the next screen and you should then see your IDE drive as show below. Press Enter to continue and after a few minutes the install should complete and you will be prompted to reboot.

ESX40_IDE3

 

阅读(671) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~