You need to decide which machines you want to run, get the necessary licenses to operate them (you're selling items so you need to get sales licenses and whatnot from your state), buy the machines and a truck for the items in the machines, find a supplier of the products, and then finally you can secure locations. Finally, you need to service them periodically or hire someone to service them.
There are a couple of problems with direct investment in real estate though. It’s expensive to buy even a single property, a minimum of tens of thousands of dollars, and there’s no way most investors can build a portfolio of different property types and in different regions to protect from those risks when you have all your money in just one or two investments.
If you can save a lot early on in life, you can build up sources of unearned income, and this income will be exempt from payroll taxes. This is good news for investors and for retirees. Any pre-tax salary deferral contribution made to a retirement account, pension plan, or other pre-tax contribution will lower the amount of federal and state income tax liabilities, however, they do not lower your payroll/FICA tax - the FICA tax has already been taken out of gross wages. 
If you sell your entire interest in a passive activity through an installment sale to figure the loss for the current year that isn’t limited by the passive activity rules, multiply your overall loss (not including losses allowed in prior years) by a fraction. The numerator of the fraction is the gain recognized in the current year, and the denominator is the total gain from the sale minus all gains recognized in prior years.
Try going to our post: 20 Sites That Will Pay You to Read Books: Even though editing is not what this post is about, there are several companies that might do book editing such as Kirkus: I hope this helps and good luck on your book!