Tweak VirtualBox instructions

This commit is contained in:
Josh Holtrop 2022-10-14 16:05:35 -04:00
parent 6f94bc3ddd
commit d24eafbd63
2 changed files with 16 additions and 17 deletions

View File

@ -23,17 +23,18 @@ To install HOS to an EFI partition, follow these steps:
To create a VM in VirtualBox:
1. Build HOS ("./rscons").
2. Create a VirtualBox VMDK image with "./rscons mk-vmdk".
3. In VirtualBox, select Machine -> New.
4. Set name to HOS.
5. Set Type to Other.
6. Set Version to Other/Unknown (64-bit).
7. Click Next.
8. Set memory size to 512 MB.
9. Click Next.
10. Select Use an existing virtual hard disk file.
11. Browse and add the build/hello/HOS.vmdk file.
12. Click Create.
13. Open HOS VM settings.
14. Under System, check the Enable EFI checkbox and click OK.
15. To run HOS, either start the VM through VirtualBox or with "./rscons run-vb".
2. In VirtualBox, select Machine -> New.
3. Set name to HOS.
4. Set Type to Other.
5. Set Version to Other/Unknown (64-bit).
6. Click Next.
7. Set memory size to 512 MB.
8. Click Next.
9. Select Do not add a virtual hard disk.
10. Click Create.
11. From the HOS repository, create a VirtualBox VMDK image with "./rscons mk-vmdk".
12. Move the HOS.vmdk file generated to the HOS VirtualBox folder.
13. In VirtualBox Manager, open HOS VM settings.
14. Under System, check the Enable EFI checkbox.
15. Under Storage, add a hard disk and browse to select the HOS.vmdk file.
16. To run HOS, either start the VM through VirtualBox or with "./rscons run-vb".

View File

@ -149,9 +149,7 @@ end
# See README.md for how to set up VirtualBox for HOS.
task "mk-vmdk", desc: "Create VirtualBox VMDK virtual drive for HOS" do
vmdk = hello_env.expand("^/HOS.vmdk")
rm vmdk
sh %W[VBoxManage internalcommands createrawvmdk -filename #{vmdk} -rawdisk #{File.expand_path(hello_env.expand("^/HOS.img"))}]
sh %W[VBoxManage internalcommands createrawvmdk -filename HOS.vmdk -rawdisk #{File.expand_path(hello_env.expand("^/HOS.img"))}]
end
# See README.md for how to set up VirtualBox for HOS.