Electron hole generation and propagation in an inhomogeneous collisionless plasma