Vertex operator algebras associated to representations of affine and Virasoro Algebras