<div>I ran the script on a <span style="color: rgb(22, 25, 31); font-family: "Amazon Ember", "Helvetica Neue", Roboto, Arial, sans-serif;">amzn2-ami-hvm-2.0.20210427.0-x86_64-gp2 instance. Just like what you have </span><font color="#16191f" face="Amazon Ember, Helvetica Neue, Roboto, Arial, sans-serif">described, the result ...</font></div><div><img src="cid:B2C5565E@F8068E3F.FA16AE60.png" modifysize="75%" diffpixels="16px" style="width: 648px; height: 165px;"></div><div><font><br></font></div><div><font>I wish I cloud do something for this script, and add some codes in the project. But testing on the aws instance, the result confused me. I thought there should be "aws" on stdout.</font></div><div><includetail><div> </div><div style="font:Verdana normal 14px;color:#000;"><div style="FONT-SIZE: 12px;FONT-FAMILY: Arial Narrow;padding:2px 0 2px 0;">------------------ Original ------------------</div><div style="FONT-SIZE: 12px;background:#efefef;padding:8px;"><div id="menu_sender"><b>From: </b> "Richard W.M. Jones"<rjones@redhat.com>;</div><div><b>Date: </b> Wed, May 26, 2021 05:13 PM</div><div><b>To: </b> "韩笑"<hanxiaobupt@bupt.edu.cn>; "virt-tools-list"<virt-tools-list@redhat.com>; <wbr></div><div></div><div><b>Subject: </b> Re: Some Confusion About virt-what</div></div><div> </div><div style="position:relative;"><div id="tmpcontent_res"></div>On Wed, May 26, 2021 at 04:28:05PM +0800, 韩笑 wrote:<br>> I've read through the source code of virt-what, there are codes like<br>> ---- echo "aws" ---- to reveal the virtualization technology of AWS.<br>> However, when I executed the script, the "aws" string did not come<br>> out, but there went "xen \n xen-hvm".<br><br>Did you run it on an AWS guest?  What flavor of AWS were you using?<br><br>> So for what propose this script is designed?<br><br>It is supposed to tell you about the underlying hypervisor and/or<br>cloud, eg. if it's Xen, KVM, AWS, etc.<br><br>Rich.<br><br>-- <br>Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones<br>Read my programming and virtualization blog: http://rwmj.wordpress.com<br>virt-p2v converts physical machines to virtual machines.  Boot with a<br>live CD or over the network (PXE) and turn machines into KVM guests.<br>http://libguestfs.org/virt-v2v<br><br></div></div><!--<![endif]--></includetail></div>