At the early stages you get biomass (lots of it) by destroying biter nests and harvesting the "creep" they have with a creep collector (or drones/robots!)
Using that biomass you can do a few of the initial researches that let you produce it without the need of going outside and killing biters... a few couple hundreds should be enough to bootstrap all that, and each biter base you destroy gives you plenty.