VMWare: converting a hosted VM to a hypervisor VM – Linux troubleshooting
When using the VMWare convertor utility to convert between VmWare player/Workstation/server VM images to an ESX image, if the VM you are converting is Linux you might run into boot problems (“kernel panic” message) due to SCSI drivers problems.
I found a couple of resources about the problem but none fully worked for me, here is my special recipe:
The configuration I used was: RHEL 5.1 VM, and ESX 3.x server.
- Use the converter to load the image to the ESX
- If you will start the converted image on the ESX you will see a kernel panic message
- Go to VMWare infrastructure client -> ESX server -> vm props -> hardware -> SCSI controller -> change from buslogic to LSI Logic
- Load the vm CD-ROM drive with RHEL5 install disk (also serves as a rescue disk)
- Boot the VM from the CD -> when prompted, enter: linux rescue
- The rescue disk should identify the linux partition and mounts it on /mnt/sysimage
- After getting a prompt enter: chroot /mnt/sysimage
- Backup, and then edit /etc/modules.conf, add this line: alias scsi_hostadapter BusLogic
- Backup the current ramdisk file: cp /boot/init-[version].img /boot/init-[version].img.bak
- Rebuild with new module and overwrite existing: mkinitrd -f -v /boot/initrd-[version]-img [version]
- Reboot the OS.
- Boot from the hard drive – The system will start normally
Weird that VMWare do not bother with their official proper documentation.
Kudos to the vmware user community!
|
This entry was posted by Gili Nachum on June 28, 2008 at 14:48, and is filed under linux, Operating Systems, virtualization. Follow any responses to this post through RSS 2.0. You can leave a response or trackback from your own site. |
No comments yet.
No trackbacks yet.
“Hypervisor edition” – what’s that?
about 1 year ago - 2 comments
WebSphere have announced WAS hypervisor edition. You get an OVF package with a ready to use WAS profile running on Linux. The OVF package can be deployed on VMWare ESX/ESXi and IBM’s cludeburst appliance. Websphere also say that they carried out WAS best-practice tuning for the OS. Not sure how mattering this tuning is considering…
Software development podcast in Hebrew
about 1 year ago - No comments
Having recommended podcasts before, I now want to recommend Ran Tavori’s and Ori Lahav’s great (in Hebrew) software development podcast: רברס עם פלטפורמה. Some of my favorite episodes include: 50. Content acceleration and CDNs 46. Multiple data-centers 45. references in Java 42. Garbage Collection (including myself with a guest appearance) 39. Designing products for the…
NAT in VMWare vSphere/ESX – In a nut shell
about 2 years ago - No comments
This post is about NATing an ESX VM, but first, why do I need NAT: The SIP protocol is not NAT oblivious. To traverse NAT our application has to replace the DNS in the SIP message contact header to the external FQDN that the message receiver will be sending responses to (A NAT with static…
Why is Thread.sleep() inherently inaccurate
about 2 years ago - 2 comments
Avi Ribchinsky, a friend and a college of mien, is transitioning from C++ to the Java world. He had been playing with Thread.sleep(), when he noticed that the sleep method might oversleep more than ordered, and moreover, it could also under sleep (see Fig 1). Coming from the C++ world, that surely caught him surprised…
A hand made freeware windows firewall
about 2 years ago - No comments
I have two windows servers that shouldn’t talk to each other. How do I make sure they don’t? Right, why not use some firewall? well, because I can’t just install any software on these servers, company regulations, and windows’ built-in firewall suck big time (only inbound, have to configure ALL exceptions). On Linux this is…
Book of the month – Linux Server Hacks
about 3 years ago - 3 comments
I just read through most of O’Reilly’s Linux Server Hacks book. I expected another dull Linux how-to book, which goes over the man/info of the most obvious commands, but instead I found an interesting, original, advanced hardcore book, full of Linux goodies to brag about in front of my colleagues. Some note worthy items: A…
I’m changing the hostname. Deal with it!
about 3 years ago - 2 comments
Lately, I’ve been crossing paths with too many enterprise-level server products that, once installed, can’t tolerate any change to the local machine’s hostname. Don’t get me wrong, I’m not spoiled to dare wishing that a hostname change will be handle in run-time, without a restart. I’m not even suggesting that the change would be automatically…
Via e-mail