title: Change hostname in mininet host
body: <p>I need to emulate a network with n hosts connected by a switch. The perfect tool for this seems to be mininet. The problem is that I need to run a python script in every host that makes use of the hostname. The skript acts different depending on the hostname, so this is very important for me :)</p>
  
  <p>But the hostname seems to be the same in every host! Example:</p>
  
  <blockquote>
    <p>h1 hostname</p>
  </blockquote>
  
  <p>outputs "simon-pc"</p>
  
  <blockquote>
    <p>h2 hostname</p>
  </blockquote>
  
  <p>outputs "simon-pc"</p>
  
  <p>"simon-pc" is the hostname of my "real" underlying ubuntu system.</p>
  
  <p>I don't find a possibility to change the hostname on the host. </p>
  
  <p>Is this even possible? And if yes, how? If no, why not?</p>
  
  <p>I read about mininet using one common kernel for every host. Might this be the problem?</p>