boot: order=scsi0;ide2;net0
args: -cpu host,-hypervisor,kvm=off
cores: 28
cpu: host
ide2: local:iso/ubuntu-20.04.5-live-server-amd64.iso,media=cdrom,size=1373568K
memory: 32768
meta: creation-qemu=7.1.0,ctime=1675764010
name: 1
net0: virtio=06:D9:C6:52:41:BB,bridge=vmbr0,firewall=1
numa: 0
ostype: l26
scsi0: local:100/base-100-disk-0.qcow2,iothread=1,size=1250G
scsihw: virtio-scsi-single
smbios1: uuid=b3a0620c-51fd-4c4b-80e7-511424ceb728
sockets: 2
template: 1
vmgenid: af6bc46f-013a-4742-9c24-17ee82eff781
#!/bin/bash
echo -n "Is this a virtual machine? ..... "
hypervisorflag=$(grep flags /proc/cpuinfo 2>/dev/null | grep hypervisor)
if [ "$(command -v systemd-detect-virt 2>/dev/null)" ]; then
detectedvirt=$(systemd-detect-virt)
if [ "$hypervisorflag" ]; then printf "Yes ($detectedvirt)\n"; else printf "No\n"; fi
else
if [ "$hypervisorflag" ]; then printf "Yes\n"; else printf "No\n"; fi
fi
scsihw: virtio-scsi-single
Yes.Now that I've returned the value"No," does that mean my machine is already a physical computer?
If the bash script returns NO, you do not need to change anything else.Do I need to change those“Bios vendor strings” or other information?