mirror of
https://github.com/vdsm/virtual-dsm.git
synced 2025-02-24 13:30:02 +08:00
Display correct CPU name
This commit is contained in:
parent
5264a890af
commit
dc3ac71a7a
@ -30,13 +30,16 @@ if [ -z "$GUEST_SERIAL" ]; then
|
||||
GUEST_SERIAL=$(cat "${FILE}")
|
||||
fi
|
||||
|
||||
CPU=$(lscpu | sed -nr '/Model name/ s/.*:\s*(.*) @ .*/\1/p' | sed ':a;s/ / /;ta')
|
||||
[ -z "$CPU" ] && CPU="QEMU, Virtual CPU, X86_64"
|
||||
|
||||
./run/serial.bin -cpu=$CPU_CORES \
|
||||
-cpu_arch="$CPU" \
|
||||
-buildnumber=42962 \
|
||||
-vmmts="1679863686" \
|
||||
-hostsn="$HOST_SERIAL" \
|
||||
-guestsn="$GUEST_SERIAL" \
|
||||
-vmmversion="2.6.1-12139" \
|
||||
-cpu_arch="QEMU, Virtual CPU, X86_64" \
|
||||
-guestuuid="ba13a19a-c0c1-4fef-9346-915ed3b98341" > /dev/null 2>&1 &
|
||||
|
||||
KVM_SERIAL_OPTS="\
|
||||
|
Loading…
x
Reference in New Issue
Block a user