I saw this post about how to install macOS as a VM on truenas.
I don’t understand step 4 in there and I keep getting an error. Has anyone tried this?
I saw this post about how to install macOS as a VM on truenas.
I don’t understand step 4 in there and I keep getting an error. Has anyone tried this?
Well step 4 of chapter 10
Which step?
“4. Enter a name for your Virtual Machine. You can use any. For instance, we’ll be using macOS.”
??
Its the part where you “add the following” …
What error exactly do you get? There more information you provide the easier and quicker it will be for someone to be able to help you resolve this.
I’m not sure which part you’re struggling with. It tells you exactly what to do. You add those lines into the text file that opened from the result of step 2: service vm update 1
.
NOTE: I’m not familiar with this and have never followed it. I’m just reading the instructions from the screenshot you posted.
Be aware of the following points that are not mentioned in that tutorial:
This tutorial uses a monitor, that is locally attached to the Truenas machine. Is this also what you are planning ?
If you want remote access, i suggest Parsec (its seems to be available for Mac OS).
Hi all, Thanks for helping. I wasn’t specific enough.
In the guide the author said to add a section of code to a part of the config yaml. I dont know the correct way to add that string of code to the yaml and am running into that as a problem.
The code looks like this before I do anything
vm_update :
# string
# comand_line_args: ’ ’
I tried putting the section of code between the quotes and on a second line but neither would save the file. Where do I put it?
this is the code that goes with this line if the author is right.
-device isa-applesmc,osk="ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc" -smbios type=2 -device '{"driver":"usb-kbd","id":"input1","bus":"usb.0","port":"2"}' -global nec-usb-xhci.msi=off -global ICH9-LPC.acpi-pci-hotplug-with-bridge-support=off
I don’t have any GPUs, and my Mac VM works fine though a bit slower of course.
Why not screen capture the line you have for while editing the file for command_line_args, once you are done but before you save it? No one can guess what you are doing.
That’s not the same as what the document indicates, note it says spaces are significant, I can see (at least) you are missing leading spaces.
I also discovered that document is a work in progress. And with the adoption of LXC and Maybe Q35 in Electric Eel. This might be OBE.
First you ask about “step 4” from “chapter 10” in a document whose most chapters are actually numbered “chapter X”.
Now I have to ask how a New York bus line and the Order of the British Empire are related to TrueNAS… (These being my best guesses for the acronyms in the above post. Honest!)
The doc looked pretty good to me.
I bookmarked it.
Try adding spaces to the two left justified lines.
Yaml uses white space as syntax (ugh)
It looks like to me you’re not indenting the command line args lines correctly.
IIRC, indents matter in YAML, so the lines that start with smbios
and global
need to be indented after the command_line_args:
line.
Notice that the error says column 1
. In other words, there is NO indenting at all on those lines. They should probably be column 5 since it looks like the command_line_args
line is already at column 3.
I agree with you. I was messing up with indentation. I got the comand line parts to check out okay with indentation. However putting x86_64 and q35 seemed to be problematic.
arch: x86_64
machine_type: q35
or
arch:x86_64
machine_type:q35
Neither worked.
For machine type and archtype you dont need to edit the yaml file manually.
You can update said config with
cli -c "service vm update id=X machine_type=q35 arch_type=x86_64"
X = ID of your macOS VM