[Solved] How do you clone the CPUID and Intruction Set

Discussions related to using VirtualBox on Windows hosts.
Post Reply
JorgeAU
Posts: 2
Joined: 17. May 2019, 03:12

[Solved] How do you clone the CPUID and Intruction Set

Post by JorgeAU »

Hi,
I created a VM with 5.1.22 r115126 on a windows machine and want to move the VM to another windows machine, but I also want the CPU it detects not to change on the new machine when I boot the VM (its a Windows 7 32bit OS on it). The old machine has the following CPU and Instruction Set:
Number of cores         1 (max 1)
Number of threads       1 (max 1)
Name                    Intel Xeon
Codename                Haswell-E/EP
Specification           Intel(R) Xeon(R) CPU E5-2609 v3 @ 1.90GHz
Package (platform ID)   (0x6)
CPUID                   6.F.2
Extended CPUID          6.3F
Core Stepping           R2
Technology              22 nm
Instructions sets       MMX, SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, EM64T, AES, AVX
Microcode Revision      0x0
L1 Data cache           32 KBytes, 8-way set associative, 64-byte line size
L1 Instruction cache    32 KBytes, 8-way set associative, 64-byte line size
L2 cache                256 KBytes, 8-way set associative, 64-byte line size
L3 cache                15 MBytes, 20-way set associative, 64-byte line size
Max CPUID level         0000000Fh
Max CPUID ext. level    80000008h
Cache descriptor        Level 1, D, 32 KB, 1 thread(s)
Cache descriptor        Level 1, I, 32 KB, 1 thread(s)
Cache descriptor        Level 2, U, 256 KB, 1 thread(s)
Cache descriptor        Level 3, U, 15 MB, 1 thread(s)
FID/VID Control         no
I am using the same Vbox version on the new machine (which is using older hardware, but also a Xeon) and want the VMs OS (Windows 7 32bit) to see the exact same CPU and Instruction set as the old machine had (details above). How do I do this? I can update my version of Vbox if needed if that helps.
Last edited by socratis on 21. May 2019, 03:32, edited 1 time in total.
Reason: Marked as [Solved].
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 do you clone the CPUID and Intruction Set

Post by scottgus1 »

I'm not certain if it is possible to completely hide a CPU change from a guest. The host's physical CPU is the only piece of physical hardware the guest sees, it does not get emulated.

There are Vboxmanage commands that may help, but I have never used them. They may also require setting up before the guest OS is installed. See the Virtualbox manual. If you can open the PDF version in the Virtualbox main install folder, you can search for 'cpuid' and find these commands. Also see the "teleporting" sections.

Vboxmanage modifyvm <vmname> --cpuid .....
Vboxmanage list hostcpuids
JorgeAU
Posts: 2
Joined: 17. May 2019, 03:12

Re: How do you clone the CPUID and Intruction Set

Post by JorgeAU »

That list command was great, and I got what I needed thank you very much. I think you are right in that it doesn't clone everything about the CPU but it was enough for my needs. Thank you very much.
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 do you clone the CPUID and Intruction Set

Post by socratis »

Marking as [Solved].
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.
Post Reply