[HOWTO] Longhorn on real PC using VBOOT

Tutorials for Operating Systems, Applications etc can be posted here.
Post Reply
User5274
User avatar
FTP Access
Posts: 85
Joined: Thu Apr 09, 2015 2:54 pm
Location: Tula, Russia
Contact:

[HOWTO] Longhorn on real PC using VBOOT

Post by User5274 »

1. Get the latest VBOOT version and install it. Do not forget that it does not support UEFI (only BIOS or legacy mode!).
http://www.vmlite.com/vboot/instructions.html#install
2. Install Longhorn on VM (onto VHD or VMDK).
3. Create an archive with "tools/x86" or "tools/amd64" (if you installed 32-bit or 64-bit Longhorn).
4. Transfer the archive into the guest OS and extract it.
5. Go to folder with extracted files and select vbootctl.exe.
6. Open properties and set compatibility to "Windows XP". Also check "Run as administrator".
7. Open command prompt and type "vbootctl prepare current". "VMLite Boot HBA" should now appear in the device manager. If that does not work for some reason then install this driver with "Install legacy device" or "Add new hardware wizard" (select vbootmp.inf).
8. Disable your network and audio cards via the device manager, then install default VGA driver. Do not install any new devices inside virtual machine, if system will detect them. Also disable SCSI controllers except "VMLite Boot HBA".
9. Replace all hardware-specific drivers with standard ones. For example, if you see something like "Intel 82371AB/EB PCI to ISA bridge", you have to click "Update Driver" and then manually choose "PCI standard ISA bridge". Repeat this operation for other drivers, including IDE controller, otherwise you will get 0x7B on boot.
10. The next step is different for pre-reset and post-reset builds. If you have PS/2 keyboard and mouse or do not need USB go to the paragraph 11.
10.1. Pre-reset (3683-4093, maybe 5048 too)
Download the ISO then mount it. Run both critical.reg and usbsupp.reg in the guest OS.
http://sbornik-obrazov-dlya-bochs-i-qem ... sbsupp.iso
10.2 Post-reset (everything from the build 5112)
Create a new text file with the following contents, then rename it into .reg and double click.

Code: Select all

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\systemdst\ControlSet001\Services\usbccgp] 
"Start"=dword:00000000 
"Group"="Boot Bus Extender" 

[HKEY_LOCAL_MACHINE\systemdst\ControlSet001\Services\usbehci] 
"Start"=dword:00000000 
"Group"="Boot Bus Extender" 

[HKEY_LOCAL_MACHINE\systemdst\ControlSet001\Services\usbhub] 
"Start"=dword:00000000 
"Group"="Boot Bus Extender" 

[HKEY_LOCAL_MACHINE\systemdst\ControlSet001\Services\usbohci] 
"Start"=dword:00000000 
"Group"="Boot Bus Extender" 

[HKEY_LOCAL_MACHINE\systemdst\ControlSet001\Services\usbstor] 
"Start"=dword:00000000 
"Group"="Boot Bus Extender" 

[HKEY_LOCAL_MACHINE\systemdst\ControlSet001\Services\usbuhci] 
"Start"=dword:00000000 
"Group"="Boot Bus Extender"
11. Remove the timebomb in the guest OS using modified winlogon and tweaknt.exe (you need AntiWPA for post-reset builds except 5048 and maybe 5112). If you do not do that you will have to set your PC BIOS date back before booting.
12. Copy your virtual disk to C: and then open C:\vboot\grub\grub.cfg. Edit it according to your current partition/disk number and VHD/VMDK filename. Example:

Code: Select all

...

menuentry "Longhorn build 4015" {
  vboot harddisk=(hd0,1)/b4015.vmdk
}

...
13. Reboot your PC and go to BIOS. Make sure that your SATA controller mode is set to IDE, not AHCI. Save new settings and shut down your PC.
14. Turn your PC on and select VBoot. A grub-like bootloader will start. You can now select the menu entry which you created previously.
15. Wait and pray that you will not get BSOD :mrgreen: . When the system boots to desktop, install all the detected hardware.

Tips:
1. After you finish playing with Longhorn, switch SATA mode back to AHCI in order to boot into your main system.
2. If Longhorn hangs or restarts before the loading screen without BSOD, it means problem with the HAL. Go back to your virtual machine, boot Longhorn here and select "Standard PC" instead of "ACPI Uniprocessor PC". Then shut down and try again via VBOOT.
P.S. You can also modify Longhorn's boot.ini as follows:

Code: Select all

[boot loader]
timeout=30
default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows Longhorn" /FASTDETECT /HAL=<YOUR_HAL>
halstnd.dll is "Standard PC"
halacpi.dll is "ACPI PC"
halaacpi.dll is "ACPI Uniprocessor PC"
halmacpi.dll is "ACPI Multiprocessor PC".

ovctvct
FTP Access
Posts: 1058
Joined: Fri Apr 25, 2014 6:19 pm

Re: [HOWTO] Longhorn on real PC using VBOOT

Post by ovctvct »

Image

...got this in 5219.
Image

User5274
User avatar
FTP Access
Posts: 85
Joined: Thu Apr 09, 2015 2:54 pm
Location: Tula, Russia
Contact:

Re: [HOWTO] Longhorn on real PC using VBOOT

Post by User5274 »

ovctvct wrote:Image

...got this in 5219.
Navigate to "C:\Windows\System32\DriverStore\FileRepository", look for folders which names contain "vbootmp.inf" or "vbootmpu.inf" (depending on which inf you are trying to install) and copy driver files manually inside them. After this operation retry to install the driver.

ovctvct
FTP Access
Posts: 1058
Joined: Fri Apr 25, 2014 6:19 pm

Re: [HOWTO] Longhorn on real PC using VBOOT

Post by ovctvct »

Alright done that, but some reason, it keeps reinstalling the vga driver..... EDIT: after fixing that,forget it, even after setting SATA to IDE mode 0x7b bsod after boot.
Image

User5274
User avatar
FTP Access
Posts: 85
Joined: Thu Apr 09, 2015 2:54 pm
Location: Tula, Russia
Contact:

Re: [HOWTO] Longhorn on real PC using VBOOT

Post by User5274 »

ovctvct wrote:Alright done that, but some reason, it keeps reinstalling the vga driver..... EDIT: after fixing that,forget it, even after setting SATA to IDE mode 0x7b bsod after boot.
Try to boot in safe mode and look if vbootmp.sys, vbootfs.sys, etc. are loaded. Did you read paragraph 9? There should be "Standard Dual-channel IDE controller" instead of "Intel 82371AB/EB PCI Bus Master IDE Controller" in the Device Manager. Do you have an exclamation mark near "VMLite Boot HBA"?

ovctvct
FTP Access
Posts: 1058
Joined: Fri Apr 25, 2014 6:19 pm

Re: [HOWTO] Longhorn on real PC using VBOOT

Post by ovctvct »

User5274 wrote:
ovctvct wrote:Alright done that, but some reason, it keeps reinstalling the vga driver..... EDIT: after fixing that,forget it, even after setting SATA to IDE mode 0x7b bsod after boot.
There should be "Standard Dual-channel IDE controller" instead of "Intel 82371AB/EB PCI Bus Master IDE Controller" in the Device Manager. Do you have an exclamation mark near "VMLite Boot HBA"?
Already replaced that IDE driver and VMLite driver is loaded, BSOD occurs in safe mode as well(on real hw, not vmware)
Image

User5274
User avatar
FTP Access
Posts: 85
Joined: Thu Apr 09, 2015 2:54 pm
Location: Tula, Russia
Contact:

Re: [HOWTO] Longhorn on real PC using VBOOT

Post by User5274 »

ovctvct wrote:
User5274 wrote:
ovctvct wrote:Alright done that, but some reason, it keeps reinstalling the vga driver..... EDIT: after fixing that,forget it, even after setting SATA to IDE mode 0x7b bsod after boot.
There should be "Standard Dual-channel IDE controller" instead of "Intel 82371AB/EB PCI Bus Master IDE Controller" in the Device Manager. Do you have an exclamation mark near "VMLite Boot HBA"?
Already replaced that IDE driver and VMLite driver is loaded, BSOD occurs in safe mode as well(on real hw, not vmware)
Can you send me a full screenshot of Device Manager contents?

ovctvct
FTP Access
Posts: 1058
Joined: Fri Apr 25, 2014 6:19 pm

Re: [HOWTO] Longhorn on real PC using VBOOT

Post by ovctvct »

Image
Image

User5274
User avatar
FTP Access
Posts: 85
Joined: Thu Apr 09, 2015 2:54 pm
Location: Tula, Russia
Contact:

Re: [HOWTO] Longhorn on real PC using VBOOT

Post by User5274 »

ovctvct wrote:Image
Strange... It worked on my HP (it has SATA). Are you sure that you put SATA into IDE or compatible mode?
P.S. Try to disable SCSI controller.

Post Reply