The magnetic moment of 11Be was measured by detecting nuclear magnetic resonance signals in a beryllium crystal lattice. The experimental technique applied to a 11Be+ ion beam from a laser ion source includes in-beam optical polarization, implantation into a metallic single crystal and observation of rf resonances in the asymmetric angular distribution of the β-decay (β-NMR). The nuclear magnetic moment μ(11Be)=−1.6816(8)μN provides a stringent test for theoretical models describing the structure of the 1/2+ neutron halo state