def METHOD_NAME(self, uname_m, endianess):
    wordsize = 64 if '64' in uname_m else 32
    kernel_url, kernel_hash = self.get_kernel_info(endianess, wordsize)
    kernel_path = self.fetch_asset(kernel_url, asset_hash=kernel_hash)
    self.boot_debian_wheezy_image_and_ssh_login(endianess, kernel_path)
    stdout, _ = self.ssh_command('uname -a')
    self.assertIn(True, [uname_m + " GNU/Linux" in line for line in stdout])
    self.run_common_commands(wordsize)
    self.shutdown_via_ssh()
    # Wait for VM to shut down gracefully
    self.vm.wait()