How to Solve NameError: name 'osinfo' is not defined -- nova

Solution: Import the 'osinfo' module

# Add the following line to the top of your code
from nova.virt import osinfo

 

For more information:
nova osinfo