I ran the script on a amzn2-ami-hvm-2.0.20210427.0-x86_64-gp2 instance. Just like what you have described, the result ...
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.
------------------ Original ------------------
Date: Wed, May 26, 2021 05:13 PM
To: "韩笑"<hanxiaobupt@xxxxxxxxxxx>; "virt-tools-list"<virt-tools-list@xxxxxxxxxx>;
Subject: Re: Some Confusion About virt-what
On Wed, May 26, 2021 at 04:28:05PM +0800, 韩笑 wrote:
> I've read through the source code of virt-what, there are codes like
> ---- echo "aws" ---- to reveal the virtualization technology of AWS.
> However, when I executed the script, the "aws" string did not come
> out, but there went "xen \n xen-hvm".
Did you run it on an AWS guest? What flavor of AWS were you using?
> So for what propose this script is designed?
It is supposed to tell you about the underlying hypervisor and/or
cloud, eg. if it's Xen, KVM, AWS, etc.
Rich.
--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-p2v converts physical machines to virtual machines. Boot with a
live CD or over the network (PXE) and turn machines into KVM guests.
http://libguestfs.org/virt-v2v
> I've read through the source code of virt-what, there are codes like
> ---- echo "aws" ---- to reveal the virtualization technology of AWS.
> However, when I executed the script, the "aws" string did not come
> out, but there went "xen \n xen-hvm".
Did you run it on an AWS guest? What flavor of AWS were you using?
> So for what propose this script is designed?
It is supposed to tell you about the underlying hypervisor and/or
cloud, eg. if it's Xen, KVM, AWS, etc.
Rich.
--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-p2v converts physical machines to virtual machines. Boot with a
live CD or over the network (PXE) and turn machines into KVM guests.
http://libguestfs.org/virt-v2v