Under the Rent a Motor Cycle Scheme, 1997, no one may run a motorcycle rental without a licence from the State Transport Authority. A licensed operator keeps at least 5 motorcycles with permits, insurance and fitness certificates, and must show the licence and keep a complaint book at its office.
Lines from Wikivoyage, which is not a government source. Prices may be old: ask before you pay.
Renting a bike like a Scooty or Kinetic Honda will cost you about ₹350 a day (without fuel) on the north side of the river. However, if it has a white license place (very likely), you can't use it on the south side (i.e. Hampi). Hiring a bike south of the river sounds like a good idea since that's where the ruins are. But for some reason, it costs much more there per day and there's only one place to rent from.
A liter of petrol will be sufficient for sightseeing around Hampi, but two liters would be handy if you have plans to go to Tungabadra Dam (some 15 km from Hampi). When renting a scooter/motor bike, petrol costs extra, and is normally sold at 40-50% premium in the place you rent (A liter may cost ₹120). A petrol pump is located in Kamalapur (and north of the river in Anegundi), which sell petrol at ordinary price.
Map: OpenStreetMap contributors. This street map is for finding your way around the city; it is not an authority on boundaries.
On the map: government and trust first, then nearest the city centre
From OpenStreetMap contributors: hours, phone and notes are as the map gives them. Distances are straight-line, so roads are longer. Small shops are often not mapped. Green: government. Blue: trust or NGO. Yellow: private. Read from the map's operator details and the place's name, so a place we could not recognise is shown as private.