Conversion of Teradata Express VMware Image for Hyper-V use
Published ยท Last revised- Download and extract the latest Teradata Express package
- Download and install Microsoft Virtual Machine Converter
- Download and extract dsfok. You can use a similar tool (e.g. dd) but the instructions are aligned with dsfok.
- Start downloading latest openSUSE Recovery CD image
- Dump each disk's header (
dsfo.exe "TDExpress16.20_Sles11-disk1.vmdk" 512 1024 descriptor1.txt, etc.) - Edit each descriptor, commenting out the
ddb.toolsInstallTypeproperty with a# - Save each descriptor back into its respective vmdk file (
dsfi.exe "TDExpress16.20_Sles11-disk1.vmdk" 512 1024 descriptor1.txt, etc.) - Convert all disks (
ConvertTo-MvmcVirtualHardDisk -SourceLiteralPath path\to\TDExpress16.20_Sles11-disk1.vmdk -VhdType DynamicHardDisk -VhdFormat Vhdx -DestinationLiteralPath path\to\disk1.vhdx, etc) - 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.
- Boot from Recovery CD
- 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) - Build a new initial ramdisk using the steps below.
mount --bind /dev /run/media/linux/ROOT-BE1/devmount --bind /sys /run/media/linux/ROOT-BE1/sysmount --bind /mnt /run/media/linux/ROOT-BE1/mntchroot /run/media/linux/ROOT-BE1- (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 - Reboot. X will fail to start.
- SSH into the machine (or reboot and enter single user mode).
- Stash the old X configuration
mv /etc/X11/xorg.conf /etc/X11/xorg.conf.vmware - Run SaX2 to redetect the correct hardware (
sax2 -r) and confirm everything looks okay in the Hyper-V Console window. - Reboot. Teradata Express UI should appear.
- Optional: Use YaST to enable remote administration (VNC).