Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I am trying to import an ovf appliance created for VMWare into our Xen infrastructure. The imported image uses hda rather than sda, and the appliance has some hard references that appear to be failing and/or creating problems. The appliance does a CentOS 5 kickstart, and I was able to modify that to work, but then the server itself installs with embedded references to sda that are in compiled code (found by using grep on the install files).

I'm new to Xen and have done a lot of searching that hints at the type of problem but can't figure out if it's possible to change, and how. These systems do not have an /etc/xen folder; some pages referenced editing the DomU config file and passing some kernel parameters, but I haven't been able to map that to what is running.

This is for XenServer 5.6.0, using local storage (LVM). Existing VMs use the xvd* devices, and if I mount the storage on another VM it shows up as xvdb, but the appliance VM sees it as hda.

share|improve this question

1 Answer 1

Once you are "somewhat" able to boot your appliance on Xen, have you tried setting udev rules to rename hda to sda? Here is tutorial http://www.reactivated.net/writing_udev_rules.html on how to do that

share|improve this answer
    
Thanks, that's helpful. I ended up just going through the appliance and figuring out the references; it wasn't as bad as it could have been (none of the actual application code references sda). I probably wouldn't do this just because of the level of maintenance required, but could be handy elsewhere. –  Josh May 4 '13 at 1:33

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.