1 |
On Wednesday, 14 April 2021 10:28:32 BST Adam Carter wrote: |
2 |
> > > I tried running an old version of RHEL with an old 3.x kernel in |
3 |
> > > VirtualBox, however, it won't run due to my hosts Ryzen CPU so I |
4 |
> > > guess I need something that does CPU emulation. |
5 |
> > > |
6 |
> > > Is this likely to be achievable with qemu ? |
7 |
> > |
8 |
> > Yes. Look up the release date of your kernel[1] and pick a slightly |
9 |
> > older CPU[2]. |
10 |
> > |
11 |
> > [1] < |
12 |
> > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/refs/> |
13 |
> > [2] <https://qemu.readthedocs.io/en/latest/system/qemu-cpu-models.html>. |
14 |
> |
15 |
> Great. |
16 |
> |
17 |
> Ok i see 3.10 was released 2013-06-30, so looking for a cpu released the |
18 |
> previous year, say |
19 |
> IvyBridge, IvyBridge-IBR Intel Xeon E3-12xx v2 (Ivy Bridge, 2012) |
20 |
> |
21 |
> and $ qemu-system-x86_64 -cpu ? | grep -i ivy |
22 |
> x86 IvyBridge (alias configured by machine type) |
23 |
> |
24 |
> x86 IvyBridge-IBRS (alias of IvyBridge-v2) |
25 |
> |
26 |
> x86 IvyBridge-v1 Intel Xeon E3-12xx v2 (Ivy Bridge) |
27 |
> |
28 |
> x86 IvyBridge-v2 Intel Xeon E3-12xx v2 (Ivy Bridge, IBRS) |
29 |
> |
30 |
> |
31 |
> So if I run the following then RHEL will think it's running on an IvyBridge |
32 |
> cpu, right? |
33 |
> $ qemu-system-x86_64 -cpu 'x86 IvyBridge-v1' etc |
34 |
|
35 |
Try: |
36 |
|
37 |
qemu-system-x86_64 -cpu IvyBridge-v1 ... |
38 |
|
39 |
The x86 part is to indicate the arch only, not meant to be included in the |
40 |
stanza. |