Two cases of the new Omicron variant of coronavirus have been detected in Karnataka, the Union government said today.