Conversion of Teradata Express VMware Image for Hyper-V use

Published ยท Last revised
  1. Download and extract the latest Teradata Express package
  2. Download and install Microsoft Virtual Machine Converter
  3. Download and extract dsfok. You can use a similar tool (e.g. dd) but the instructions are aligned with dsfok.
  4. Start downloading latest openSUSE Recovery CD image
  5. Dump each disk's header (dsfo.exe "TDExpress16.20_Sles11-disk1.vmdk" 512 1024 descriptor1.txt, etc.)
  6. Edit each descriptor, commenting out the ddb.toolsInstallType property with a #
  7. Save each descriptor back into its respective vmdk file (dsfi.exe "TDExpress16.20_Sles11-disk1.vmdk" 512 1024 descriptor1.txt, etc.)
  8. Convert all disks (ConvertTo-MvmcVirtualHardDisk -SourceLiteralPath path\to\TDExpress16.20_Sles11-disk1.vmdk -VhdType DynamicHardDisk -VhdFormat Vhdx -DestinationLiteralPath path\to\disk1.vhdx, etc)
  9. Create an older Hyper-V Generation 1 machine. Attach disks 1 and 2 to IDE Channel 0, and disk 3 to IDE Channel 1. Give the machine at least 8GB of RAM and a few processors. Attach openSUSE Recovery CD image to remaining IDE Channel 1 slot.
  10. Boot from Recovery CD
  11. Edit /etc/sysconfig/kernel and clean out old vmware modules (i.e. change to read INITRD_MODULES="mptspi ata_piix ata_generic hv_vmbus hv_netvsc hv_storvsc hv_blkvsc)
  12. Build a new initial ramdisk using the steps below.
  13. mount --bind /dev /run/media/linux/ROOT-BE1/dev
  14. mount --bind /sys /run/media/linux/ROOT-BE1/sys
  15. mount --bind /mnt /run/media/linux/ROOT-BE1/mnt
  16. chroot /run/media/linux/ROOT-BE1
  17. (chrooted) mkinitrd -k /boot/vmlinux-3.0.101-0.166.TDC.1.R.0-default.gz -i /boot/initrd-3.0.101-0.166.TDC.1.R.0-default
  18. Reboot. X will fail to start.
  19. SSH into the machine (or reboot and enter single user mode).
  20. Stash the old X configuration mv /etc/X11/xorg.conf /etc/X11/xorg.conf.vmware
  21. Run SaX2 to redetect the correct hardware (sax2 -r) and confirm everything looks okay in the Hyper-V Console window.
  22. Reboot. Teradata Express UI should appear.
  23. Optional: Use YaST to enable remote administration (VNC).