def get_ip(self):
        """Returns local IP address of VM."""
        command = 'ifconfig eth0 | awk \'/inet addr/ '
        command += '{gsub("addr:", "", $2); print $2}\''
        self._proc.sendline(command)
        self._proc.expect('10.0.2.*\r\n')
        return self._proc.after.strip()
Returns local IP address of VM.
lisa/core/qemu_guest.py