We moved this page to our Documentation Portal. You can find the latest updates here. |
Question
How to enable PCI-E Flash support on Cloudboot HVs?
Environment
OnApp 3.4 or later
KVM HVs (CentOS 6 or higher)
Answer
0. Establish PCI-E flash PCI ID, 04:00.0 assumed below.
1. On the HV, edit /.rw/onappstore.conf and change the values:
- kernelversion=3.10.20-11.el6.centos.alt.x86_64
- pcidevs=[04:00.0]
- devpartitions=4
- (other changes that are normal for the customer)
2. On the CP, edit /tftpboot/pxelinux.cfg/<HV_MGT_MAC>, then add the following flags:
- pci_stub.bind=(04:00.0)
- ide=disable
- pci=resource_alignment=04:00.0
- intel_iommu=on
- iommu=pt
- iommu=1
3. Extract and put directories into place:
scp <HV_IP>:/onappstore/initrd.img ./ && mkdir foo && cd foo && zcat ../initrd.img | cpio -idv
cp -r ./modules/<kernal-version> /tftpboot/images/centos5/diskless/snapshot/<HV-MAC>/snkernels/
4. Copy the kernel binary into place:
cp /tftpboot/images/centos6/ramdisk-xen/vmlinuz-3.10.20-11.el6.centos.alt.x86_64 /tftpboot/images/centos5/diskless/snapshots/<MAC_OF_HV_MGT>/snkernels/
5. Reboot the HV.
6. On the HV, check that the kernel (with correct filename+version string) is now in /onappstore/.
7. On each storage node of the VM, run formatandconfigure on the devices /dev/mapper/sda_*
NOTE: If there is any existing data on the disk/storage node, running formatandconfigure will cause it to be lost!