Convert Linux Guest from VMWare+IDE to VirtualBox+SATA
Posted: 4. Feb 2010, 17:49
I am trying to import a CentOS 5.4 guest VM that someone else is making with VMware, and they are using IDE virtual harddisks. I have successfully imported their VMDK files into a VirtualBox guest VM, using IDE, but would like to see if switching over to SATA or SCSI will improve performance. One would think it will. I'd like to try SATA first.
The guest uses one big VMDK for all the partitions. And so trying to leave the /boot partition as IDE is less than trivial. From what I can tell, I need to edit the /etc/modules.conf file to include more modules such as:
scsi_mod
sd_mod
libata
ata_piix
and then rerun mkinitrd so that the SATA modules are loaded from the ramdisk. I have tried that, but I get errors to the effect it cannot find the root filesystem, as if it did not include the right SATA modules in the initramdisk.
Yes, it is using an initramdisk to boot, with GRUB. It is pointing to the right ramdisk image.
The /etc/fstab file references the filesystems by LABEL=, as opposed to /dev/hd* style paths, but I intend to see if changing to /dev/sd* or even UUID= might fix this. I doubt it.
Does anyone know the magic set of modules that need to go into the initramdisk from Linux kernel 2.6.18-164.10.1.el5.centos.plus? I kind of think I am not using the right set.
The guest uses one big VMDK for all the partitions. And so trying to leave the /boot partition as IDE is less than trivial. From what I can tell, I need to edit the /etc/modules.conf file to include more modules such as:
scsi_mod
sd_mod
libata
ata_piix
and then rerun mkinitrd so that the SATA modules are loaded from the ramdisk. I have tried that, but I get errors to the effect it cannot find the root filesystem, as if it did not include the right SATA modules in the initramdisk.
Yes, it is using an initramdisk to boot, with GRUB. It is pointing to the right ramdisk image.
The /etc/fstab file references the filesystems by LABEL=, as opposed to /dev/hd* style paths, but I intend to see if changing to /dev/sd* or even UUID= might fix this. I doubt it.
Does anyone know the magic set of modules that need to go into the initramdisk from Linux kernel 2.6.18-164.10.1.el5.centos.plus? I kind of think I am not using the right set.