How to change cpu revision, stepping and caption for the guest?

This is for discussing general topics about how to use VirtualBox.
Post Reply
Hitech
Posts: 2
Joined: 28. Jan 2017, 03:35

How to change cpu revision, stepping and caption for the guest?

Post by Hitech »

How to change cpu revision, stepping and caption in oracle virtualbox?


I've read the article about how to change the CPU name in the internet:

Code: Select all

vboxmanage setextradata %vm% VBoxInternal/CPUM/HostCPUID/80000002/eax 0x65746e49
vboxmanage setextradata %vm% VBoxInternal/CPUM/HostCPUID/80000002/ebx 0x2952286c
vboxmanage setextradata %vm% VBoxInternal/CPUM/HostCPUID/80000002/ecx 0x726f4320
vboxmanage setextradata %vm% VBoxInternal/CPUM/HostCPUID/80000002/edx 0x4d542865
vboxmanage setextradata %vm% VBoxInternal/CPUM/HostCPUID/80000003/eax 0x43203229
vboxmanage setextradata %vm% VBoxInternal/CPUM/HostCPUID/80000003/ebx 0x20205550
vboxmanage setextradata %vm% VBoxInternal/CPUM/HostCPUID/80000003/ecx 0x20202020
vboxmanage setextradata %vm% VBoxInternal/CPUM/HostCPUID/80000003/edx 0x20202020
vboxmanage setextradata %vm% VBoxInternal/CPUM/HostCPUID/80000004/eax 0x30303636
vboxmanage setextradata %vm% VBoxInternal/CPUM/HostCPUID/80000004/ebx 0x20402020
vboxmanage setextradata %vm% VBoxInternal/CPUM/HostCPUID/80000004/ecx 0x30342e32
vboxmanage setextradata %vm% VBoxInternal/CPUM/HostCPUID/80000004/edx 0x007a4847
It changes the Name of the CPU, and how I can change the info about stepping and revision?

The literature says this info must be written into EAX=1
I can get CPUID information from Oracle vm logs, I have plenty of them, there is a nice table there, but how can I convert it into proper commands for setextradata to proess it to the guest where I want to use it?
I know it's simple for a man who understands how to write it to EAX=1, please advise
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: How to change cpu revision, stepping and caption for the guest?

Post by socratis »

Hitech wrote:I've read the article about how to change the CPU name in the internet:
What's that article? And more important, what are you trying to do? And why?
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Hitech
Posts: 2
Joined: 28. Jan 2017, 03:35

Re: How to change cpu revision, stepping and caption for the guest?

Post by Hitech »

Hi, I'm trying to make my virtual machine look like running old processor, because some old stupid installers don't want to work when they detect unknown cpu that was produced much later.

Here is the topic I've read
http://superuser.com/questions/625648/v ... -the-guest

Intel's guide for their processors is also attached there
https://software.intel.com/sites/defaul ... /2/3/41604

How to get values like 0x65746e49 using virtual machine log (CPUID section) or how to find these values for "revision, caption, etc" parameters for needed processor? (old core duo is ok)

Thanks
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: How to change cpu revision, stepping and caption for the guest?

Post by socratis »

How old of a processor are we talking about? There are several things that might be easier, like use one of the following existing EXPERIMENTAL templates that change the CPU presented to the VM:
  • 
    VBoxManage modifyvm "<VM name>" --cpu-profile "Intel Xeon X5482 3.20GHz"
    VBoxManage modifyvm "<VM name>" --cpu-profile "Intel Core i7-2635QM"
    VBoxManage modifyvm "<VM name>" --cpu-profile "Intel Core i7-3960X"
    VBoxManage modifyvm "<VM name>" --cpu-profile "Intel Core i5-3570"
    VBoxManage modifyvm "<VM name>" --cpu-profile "Intel Core i7-5600U"
    VBoxManage modifyvm "<VM name>" --cpu-profile "Intel Core i7-6700K"
    
Try it with the VM shutdown. If you have any more specific needs, take a look at the User Manual, Ch. 8.8.6 Teleporting settings for the "--cpuidset" option and 10.5 Details about software virtualization. Just remember, the higher the chapter number, the more advanced it is and the less help you're going to find... ;)
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Tong
Posts: 5
Joined: 30. Jan 2018, 17:10

Re: How to change cpu revision, stepping and caption for the guest?

Post by Tong »

Hello there!
I would like to ask. There are two questions I would like to ask next.
The first question: How many CPU experiment template? I see you reply that six experimental templates.

The second question: The use of those Vboxmanage command operation and experimental template can achieve the same effect. Are there any examples?

Looking forward to your reply, thanks
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: How to change cpu revision, stepping and caption for the guest?

Post by socratis »

Tong wrote:How many CPU experiment template? I see you reply that six experimental templates.
This hasn't changed as far as I know.
Tong wrote:The use of those Vboxmanage command operation and experimental template can achieve the same effect.
I'm not sure I understand what you're saying here. Can you rephrase the question?
Tong wrote:Are there any examples?
Examples of where these profiles can be used? Just search for "cpu-profile site:forums.virtualbox.org". You don't have to use them if you don't need them. You shouldn't be using them in fact unless you know what you're doing. Or what problem you're trying to solve...
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Tong
Posts: 5
Joined: 30. Jan 2018, 17:10

Re: How to change cpu revision, stepping and caption for the guest?

Post by Tong »

Thank you, I went to check there is no content I need.
startergo
Posts: 8
Joined: 13. Aug 2019, 20:33

Re: How to change cpu revision, stepping and caption for the guest?

Post by startergo »

socratis wrote:How old of a processor are we talking about? There are several things that might be easier, like use one of the following existing EXPERIMENTAL templates that change the CPU presented to the VM:
  • 
    VBoxManage modifyvm "<VM name>" --cpu-profile "Intel Xeon X5482 3.20GHz"
    VBoxManage modifyvm "<VM name>" --cpu-profile "Intel Core i7-2635QM"
    VBoxManage modifyvm "<VM name>" --cpu-profile "Intel Core i7-3960X"
    VBoxManage modifyvm "<VM name>" --cpu-profile "Intel Core i5-3570"
    VBoxManage modifyvm "<VM name>" --cpu-profile "Intel Core i7-5600U"
    VBoxManage modifyvm "<VM name>" --cpu-profile "Intel Core i7-6700K"
    
Try it with the VM shutdown. If you have any more specific needs, take a look at the User Manual, Ch. 8.8.6 Teleporting settings for the "--cpuidset" option and 10.5 Details about software virtualization. Just remember, the higher the chapter number, the more advanced it is and the less help you're going to find... ;)
Vbox 6.1 has no such option:

Code: Select all

C:\Program Files\Oracle\VirtualBox>VBoxManage modifyvm "BigSur" -–cpu-profile “Intel Core i7-6700K”
Oracle VM VirtualBox Command Line Management Interface Version 6.1.10
(C) 2005-2020 Oracle Corporation
All rights reserved.

Usage:

VBoxManage modifyvm         <uuid|vmname>
                            [--name <name>]
                            [--groups <group>, ...]
                            [--description <desc>]
                            [--ostype <ostype>]
                            [--iconfile <filename>]
                            [--memory <memorysize in MB>]
                            [--pagefusion on|off]
                            [--vram <vramsize in MB>]
                            [--acpi on|off]
                            [--ioapic on|off]
                            [--hpet on|off]
                            [--triplefaultreset on|off]
                            [--apic on|off]
                            [--x2apic on|off]
                            [--paravirtprovider none|default|legacy|minimal|
                                                hyperv|kvm]
                            [--paravirtdebug <key=value> [,<key=value> ...]]
                            [--hwvirtex on|off]
                            [--nestedpaging on|off]
                            [--largepages on|off]
                            [--vtxvpid on|off]
                            [--vtxux on|off]
                            [--pae on|off]
                            [--longmode on|off]
                            [--ibpb-on-vm-exit on|off]
                            [--ibpb-on-vm-entry on|off]
                            [--spec-ctrl on|off]
                            [--l1d-flush-on-sched on|off]
                            [--l1d-flush-on-vm-entry on|off]
                            [--mds-clear-on-sched on|off]
                            [--mds-clear-on-vm-entry on|off]
                            [--nested-hw-virt on|off]
                            [--cpu-profile "host|Intel 80[86|286|386]"]
                            [--cpuid-portability-level <0..3>]
                            [--cpuid-set <leaf[:subleaf]> <eax> <ebx> <ecx> <edx>]
                            [--cpuid-remove <leaf[:subleaf]>]
                            [--cpuidremoveall]
                            [--hardwareuuid <uuid>]
                            [--cpus <number>]
                            [--cpuhotplug on|off]
                            [--plugcpu <id>]
                            [--unplugcpu <id>]
                            [--cpuexecutioncap <1-100>]
                            [--rtcuseutc on|off]
                            [--graphicscontroller none|vboxvga|vmsvga|vboxsvga]
                            [--monitorcount <number>]
                            [--accelerate3d on|off]
                            [--accelerate2dvideo on|off]
                            [--firmware bios|efi|efi32|efi64]
                            [--chipset ich9|piix3]
                            [--bioslogofadein on|off]
                            [--bioslogofadeout on|off]
                            [--bioslogodisplaytime <msec>]
                            [--bioslogoimagepath <imagepath>]
                            [--biosbootmenu disabled|menuonly|messageandmenu]
                            [--biosapic disabled|apic|x2apic]
                            [--biossystemtimeoffset <msec>]
                            [--biospxedebug on|off]
                            [--system-uuid-le on|off]
                            [--boot<1-4> none|floppy|dvd|disk|net>]
                            [--nic<1-N> none|null|nat|bridged|intnet|hostonly|
                                        generic|natnetwork]
                            [--nictype<1-N> Am79C970A|Am79C973|Am79C960|
                                            82540EM|82543GC|82545EM|
                                            virtio]
                            [--cableconnected<1-N> on|off]
                            [--nictrace<1-N> on|off]
                            [--nictracefile<1-N> <filename>]
                            [--nicproperty<1-N> name=[value]]
                            [--nicspeed<1-N> <kbps>]
                            [--nicbootprio<1-N> <priority>]
                            [--nicpromisc<1-N> deny|allow-vms|allow-all]
                            [--nicbandwidthgroup<1-N> none|<name>]
                            [--bridgeadapter<1-N> none|<devicename>]
                            [--hostonlyadapter<1-N> none|<devicename>]
                            [--intnet<1-N> <network name>]
                            [--nat-network<1-N> <network name>]
                            [--nicgenericdrv<1-N> <driver>]
                            [--natnet<1-N> <network>|default]
                            [--natsettings<1-N> [<mtu>],[<socksnd>],
                                                [<sockrcv>],[<tcpsnd>],
                                                [<tcprcv>]]
                            [--natpf<1-N> [<rulename>],tcp|udp,[<hostip>],
                                          <hostport>,[<guestip>],<guestport>]
                            [--natpf<1-N> delete <rulename>]
                            [--nattftpprefix<1-N> <prefix>]
                            [--nattftpfile<1-N> <file>]
                            [--nattftpserver<1-N> <ip>]
                            [--natbindip<1-N> <ip>]
                            [--natdnspassdomain<1-N> on|off]
                            [--natdnsproxy<1-N> on|off]
                            [--natdnshostresolver<1-N> on|off]
                            [--nataliasmode<1-N> default|[log],[proxyonly],
                                                         [sameports]]
                            [--macaddress<1-N> auto|<mac>]
                            [--mouse ps2|usb|usbtablet|usbmultitouch]
                            [--keyboard ps2|usb]
                            [--uart<1-N> off|<I/O base> <IRQ>]
                            [--uartmode<1-N> disconnected|
                                             server <pipe>|
                                             client <pipe>|
                                             tcpserver <port>|
                                             tcpclient <hostname:port>|
                                             file <file>|
                                             <devicename>]
                            [--uarttype<1-N> 16450|16550A|16750]
                            [--lpt<1-N> off|<I/O base> <IRQ>]
                            [--lptmode<1-N> <devicename>]
                            [--guestmemoryballoon <balloonsize in MB>]
                            [--vm-process-priority default|flat|low|normal|high]
                            [--audio none|null|dsound]
                            [--audioin on|off]
                            [--audioout on|off]
                            [--audiocontroller ac97|hda|sb16]
                            [--audiocodec stac9700|ad1980|stac9221|sb16]
                            [--clipboard-mode disabled|hosttoguest|guesttohost|
                                              bidirectional]
                            [--draganddrop disabled|hosttoguest|guesttohost|
                                           bidirectional]
                            [--vrde on|off]
                            [--vrdeextpack default|<name>]
                            [--vrdeproperty <name=[value]>]
                            [--vrdeport <hostport>]
                            [--vrdeaddress <hostip>]
                            [--vrdeauthtype null|external|guest]
                            [--vrdeauthlibrary default|<name>]
                            [--vrdemulticon on|off]
                            [--vrdereusecon on|off]
                            [--vrdevideochannel on|off]
                            [--vrdevideochannelquality <percent>]
                            [--usbohci on|off]
                            [--usbehci on|off]
                            [--usbxhci on|off]
                            [--usbrename <oldname> <newname>]
                            [--snapshotfolder default|<path>]
                            [--teleporter on|off]
                            [--teleporterport <port>]
                            [--teleporteraddress <address|empty>]
                            [--teleporterpassword <password>]
                            [--teleporterpasswordfile <file>|stdin]
                            [--tracing-enabled on|off]
                            [--tracing-config <config-string>]
                            [--tracing-allow-vm-access on|off]
                            [--usbcardreader on|off]
                            [--autostart-enabled on|off]
                            [--autostart-delay <seconds>]
                            [--recording on|off]
                            [--recordingscreens all|<screen ID> [<screen ID> ...]]
                            [--recordingfile <filename>]
                            [--recordingvideores <width> <height>]
                            [--recordingvideorate <rate>]
                            [--recordingvideofps <fps>]
                            [--recordingmaxtime <s>]
                            [--recordingmaxsize <MB>]
                            [--recordingopts <key=value> [,<key=value> ...]]
                            [--defaultfrontend default|<name>]

VBoxManage.exe: error: Unknown option: -–cpu-profile
fth0
Volunteer
Posts: 5677
Joined: 14. Feb 2019, 03:06
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Linux, Windows 10, ...
Location: Germany

Re: How to change cpu revision, stepping and caption for the guest?

Post by fth0 »

startergo wrote:Vbox 6.1 has no such option
Yes, it has. Take a look at the (wrong) quote characters you're using. ;)
startergo
Posts: 8
Joined: 13. Aug 2019, 20:33

Re: How to change cpu revision, stepping and caption for the guest?

Post by startergo »

fth0 wrote:
startergo wrote:Vbox 6.1 has no such option
Yes, it has. Take a look at the (wrong) quote characters you're using. ;)
Aah good catch. Thanks.
scottgus1
Site Moderator
Posts: 20945
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: How to change cpu revision, stepping and caption for the guest?

Post by scottgus1 »

One thing I noticed:
startergo wrote:C:\Program Files\Oracle\VirtualBox>VBoxManage modifyvm "BigSur"
Windows host OS and Mac guest OS is only allowed if the physical computer is an Apple computer.
OSX guests on non-Apple hardware
Post Reply