virtualbox.txt 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. A couple of notes about running on VirtualBox
  2. I recently got Minoca OS booting with VirtualBox, but a couple of settings
  3. needed to be tweaked.
  4. I was testing on a Windows 7 x64 machine running VirtualBox 5.1.8 r111374.
  5. I've selected a machine type of Other, Other/Unknown. I was also able to get
  6. it working with Linux, Ubuntu (64-bit), but had to change the Storage settings
  7. (see below).
  8. In the System settings for the VM, under the Motherboard tab:
  9. * Chipset must be set to ICH9. Minoca OS requires an APIC, and the ancient
  10. PIIX3 chipset doesn't have that.
  11. * Enable I/O APIC must be checked. VirtualBox basically forces you to do this
  12. once you select ICH9.
  13. If you selected Linux, Ubuntu (64-bit), then you'll need to head into the
  14. settings for Storage:
  15. * Remove the hard disk from SATA, and add it under IDE. Minoca OS does not yet
  16. support SATA.
  17. Networking does not yet work in VirtualBox or VMWare, as we desperately need
  18. someone to write the AMD PCNet32 LANCE Ethernet driver.
  19. Creating a disk:
  20. Manual Method:
  21. A vmdk file (used to specify the hard disk to VirtualBox and VMWare) is just a
  22. text file. To create a .vmdk disk file from a flat image, you can use the
  23. following template (between the #### lines).
  24. ####
  25. # Disk DescriptorFile
  26. version=1
  27. encoding="windows-1252"
  28. CID=c326ee8a
  29. parentCID=ffffffff
  30. isNativeSnapshot="no"
  31. createType="monolithicFlat"
  32. # Extent description
  33. RW 1048576 FLAT "pc.img" 0
  34. # The Disk Data Base
  35. #DDB
  36. ddb.adapterType = "lsilogic"
  37. ddb.geometry.cylinders = "1040"
  38. ddb.geometry.heads = "16"
  39. ddb.geometry.sectors = "63"
  40. ddb.longContentID = "c102446c4b4b4547bf42db9ac326ee8a"
  41. ddb.uuid = "60 00 C2 9d f1 5b 82 d5-1f ee a1 52 dd 24 73 10"
  42. ddb.virtualHWVersion = "8"
  43. ddb.uuid.image="69a7ab8a-ac25-42c6-b673-6c6ca1a36594"
  44. ddb.uuid.modification="1eb47c96-30a3-48d8-89cc-bfd5706684d2"
  45. ddb.uuid.parent="00000000-0000-0000-0000-000000000000"
  46. ddb.uuid.parentmodification="00000000-0000-0000-0000-000000000000"
  47. ####
  48. Put the contents of the above template in a file called pc.vmdk in the same
  49. directory as pc.img (or whichever image you're trying to create a vmdk for).
  50. If your pc.img is not 512MB, change the 1048576 in the line RW 1048576 FLAT ...
  51. to the number of sectors in your disk. The number of sectors is the size of
  52. the image in bytes divided by 512. Also change ddb.geometry.cylinders to be
  53. equal to sectors/16/63.
  54. With VBoxManage:
  55. To create a .vmdk disk file from a flat image, you can use the following
  56. command with Virtual Box
  57. $ VBoxManage internalcommands createrawvmdk -filename pc.vmdk -rawdisk pc.img
  58. It will generate a file that has similar content as before, it should take care
  59. of the disk geometry for you as well.