This project is read-only.

Won't Create VHD/.img

Apr 20, 2008 at 8:20 PM
The virtual hard disk isn't getting created for some reason. I saw the note on it not working correctly on Vista when running in Program Files, but I tried installing to an alternate path (D:\filez\dev\Cosmos User Toolkit) and when I run from Visual Studio 2008 I keep getting errors because the virtual hard disk doesn't exist, after it's built.

Here's the log output for the qemu build:

BuildPath = 'D:\filez\dev\Cosmos User Kit\'
ToolsPath = 'D:\filez\dev\Cosmos User Kit\Tools\'
ISOPath = 'D:\filez\dev\Cosmos User Kit\ISO\'
PXEPath = 'D:\filez\dev\Cosmos User Kit\PXE\'
AsmPath = 'D:\filez\dev\Cosmos User Kit\Tools\asm\'
VMWarePath = 'D:\filez\dev\Cosmos User Kit\VMWare\'
VPCPath = 'D:\filez\dev\Cosmos User Kit\VPC\'
Now compiling
Initializing IL2CPU... This may take a minute so please wait for further status...

Recognized Plug methods:
SystemBoolean_SystemArrayTrySZBinarySearchSystemArray_SystemInt32_SystemInt32_SystemObject_SystemInt32__
SystemBoolean_SystemArrayTrySZIndexOfSystemArray_SystemInt32_SystemInt32_SystemObject_SystemInt32__
SystemBoolean_SystemArrayTrySZLastIndexOfSystemArray_SystemInt32_SystemInt32_SystemObject_SystemInt32__
SystemBoolean_SystemDelegateInternalEqualTypesSystemObject_SystemObject_
SystemBoolean_SystemEnumEqualsSystemObject_
SystemBoolean_SystemGlobalizationCultureInfoEqualsSystemObject
SystemBoolean_SystemObjectInternalEqualsSystemObject_SystemObject_
SystemBoolean_SystemStringEqualsHelperSystemString_SystemString_
SystemBoolean_SystemValueTypeEqualsSystemObject_
SystemByte_CosmosHardwareHardwareIOReadByteSystemUInt16
SystemByte_CosmosHardwarePCBusCPUBusRead8SystemUInt16
SystemChar_SystemStringgetCharsSystemInt32
SystemCollectionsArrayList_SystemCollectionsArrayListSynchronizedSystemCollectionsArrayList
SystemConsoleColor_SystemConsolegetBackgroundColor_
SystemConsoleColor_SystemConsolegetForegroundColor_
SystemGlobalizationCultureInfo_SystemGlobalizationCultureInfogetCurrentCulture_
SystemInt16_SystemInt16ParseSystemString_
SystemInt32_SystemArraygetLength_
SystemInt32_SystemArraygetRank_
SystemInt32_SystemArrayGetLowerBoundSystemInt32_
SystemInt32_SystemConsolegetCursorLeft_
SystemInt32_SystemConsolegetCursorTop_
SystemInt32_SystemConsolegetWindowHeight_
SystemInt32_SystemConsolegetWindowWidth_
SystemInt32_SystemStringCompareToSystemString_
SystemInt32_SystemStringgetLength_
SystemInt32_SystemStringIndexOfSystemChar_
SystemIntPtr_SystemThreadingThreadInternalGetCurrentThread_
SystemObject_SystemArrayGetValueSystemInt32_
SystemRuntimeTypeRuntimeTypeCache_SystemRuntimeTypegetCache__
SystemString_SystemBooleanToString__
SystemString_SystemByteToString__
SystemString_SystemCharToString__
SystemString_SystemConsoleReadLine__
SystemString_SystemEnumToString__
SystemString_SystemEnvironmentGetResourceFromDefaultSystemString_
SystemString_SystemEnvironmentGetResourceStringSystemString_
SystemString_SystemEnvironmentGetResourceStringSystemString_SystemObject___
SystemString_SystemExceptionGetClassName__
SystemString_SystemExceptionGetMessageFromNativeResourcesSystemExceptionExceptionMessageKind
SystemString_SystemExceptionToString__
SystemString_SystemInt16ToString__
SystemString_SystemInt32ToString__
SystemString_SystemInt64ToString__
SystemString_SystemIntPtrToString__
SystemString_SystemObjectToString__
SystemString_SystemRuntimeTypegetName_
SystemString_SystemRuntimeTypeRuntimeTypeCacheGetToString_
SystemString_SystemSRGetStringSystemString_
SystemString_SystemSRGetStringSystemString_SystemObject___
SystemString_SystemStringConcatSystemString_SystemString_
SystemString_SystemStringConcatSystemString_SystemString_SystemString_
SystemString_SystemStringConcatSystemString_SystemString_SystemString_SystemString_
SystemString_SystemStringFastAllocateStringSystemInt32_
SystemString_SystemStringFormatSystemIFormatProvider_SystemString_SystemObject___
SystemString_SystemStringSubstringSystemInt32_
SystemString_SystemStringSubstringSystemInt32_SystemInt32_
SystemString_SystemUInt16ToString__
SystemString_SystemUInt32ToString__
SystemString_SystemUInt64ToString__
SystemType_SystemObjectGetType__
SystemUInt16_CosmosHardwareHardwareIOReadWordSystemUInt16
SystemUInt16_CosmosHardwarePCBusCPUBusRead16SystemUInt16
SystemUInt32_CosmosHardwareCPUGetCurrentESP_
SystemUInt32_CosmosHardwareCPUGetEndOfStack_
SystemUInt32_CosmosHardwareHardwareGetAmountOfRAM_
SystemUInt32_CosmosHardwareHardwareGetEndOfKernel_
SystemUInt32_CosmosHardwarePCBusCPUBusRead32SystemUInt16
SystemUInt32_IndyIL2CPURuntimeEngineHeapAllocNewObjectSystemUInt32_
SystemUInt32_IndyIL2CPURuntimeEngineHeapFreeSystemUInt32_
SystemVoid_CosmosHardwareCPUCreateIDT_
SystemVoid_CosmosHardwareCPUDoTest_
SystemVoid_CosmosHardwareCPUZeroFillSystemUInt32_SystemUInt32
SystemVoid_CosmosHardwareHardwareIOWriteByteSystemUInt16_SystemByte
SystemVoid_CosmosHardwareHardwareIOWriteWordSystemUInt16_SystemUInt16
SystemVoid_CosmosHardwarePCBusCPUBusWrite16SystemUInt16_SystemUInt16
SystemVoid_CosmosHardwarePCBusCPUBusWrite32SystemUInt16_SystemUInt32
SystemVoid_CosmosHardwarePCBusCPUBusWrite8SystemUInt16_SystemByte
SystemVoid_CosmosHardwarePCProcessorCreateGDT__
SystemVoid_IndyIL2CPURuntimeEngineFinalizeEngine_
SystemVoid_IndyIL2CPURuntimeEngineInitializeEngine_
SystemVoid_SystemArrayClearSystemArray_SystemInt32_SystemInt32_
SystemVoid_SystemArrayCopySystemArray_SystemInt32_SystemArray_SystemInt32_SystemInt32_SystemBoolean_
SystemVoid_SystemArraySetValueSystemObject_SystemInt32_
SystemVoid_SystemBufferBlockCopySystemArray_SystemInt32_SystemArray_SystemInt32_SystemInt32_
SystemVoid_SystemBufferInternalBlockCopySystemArray_SystemInt32_SystemArray_SystemInt32_SystemInt32_
SystemVoid_SystemConsoleClear__
SystemVoid_SystemConsolesetBackgroundColorSystemConsoleColor
SystemVoid_SystemConsolesetCursorLeftSystemInt32
SystemVoid_SystemConsolesetCursorTopSystemInt32
SystemVoid_SystemConsolesetForegroundColorSystemConsoleColor
SystemVoid_SystemConsoleWriteSystemChar_
SystemVoid_SystemConsoleWriteSystemChar___
SystemVoid_SystemConsoleWriteSystemString_
SystemVoid_SystemConsoleWriteLine__
SystemVoid_SystemConsoleWriteLineSystemChar___
SystemVoid_SystemConsoleWriteLineSystemInt32_
SystemVoid_SystemConsoleWriteLineSystemString_
SystemVoid_SystemConsoleWriteLineSystemUInt32_
SystemVoid_SystemDiagnosticsDebugWriteLineSystemString
SystemVoid_SystemDiagnosticsDebugWriteLineIfSystemBoolean_SystemString
SystemVoid_SystemDiagnosticsDebuggerBreak_
SystemVoid_SystemEnum_cctor__
SystemVoid_SystemGlobalizationCultureInfo_cctor_
SystemVoid_SystemRuntimeCompilerServicesRuntimeHelpers_cctor__
SystemVoid_SystemRuntimeCompilerServicesRuntimeHelpersInitializeArraySystemArray_SystemRuntimeFieldHandle_
SystemVoid_SystemRuntimeType_cctor__
SystemVoid_SystemString_ctorSystemChar___
SystemVoid_SystemString_ctorSystemChar___SystemInt32_SystemInt32_
SystemVoid_SystemStringwstrcpySystemChar__SystemChar__SystemInt32_
SystemVoid_SystemType_cctor__

Completed
IL2CPU Run took 00:00:07.1833330
Please wait...executing D:\filez\dev\Cosmos User Kit\Tools\nasm\nasm.exe...
Please wait...executing D:\filez\dev\Cosmos User Kit\Tools\cygwin\ld.exe...
Now creating ISO
Try removing 'D:\filez\dev\Cosmos User Kit\cosmos.iso'
Try removing 'D:\filez\dev\Cosmos User Kit\ISO\output.bin'
Try copying 'D:\filez\dev\Cosmos User Kit\output.bin' to 'D:\filez\dev\Cosmos User Kit\ISO\'
Running mkisofs
Please wait...executing D:\filez\dev\Cosmos User Kit\Tools\mkisofs.exe...
Please wait...executing D:\filez\dev\Cosmos User Kit\Tools\qemu\qemu.exe...
Error when executing: D:\filez\dev\Cosmos User Kit\Tools\qemu\qemu.exe -hda "D:\filez\dev\Cosmos User Kit\hda.img" -L .
-cdrom "D:\filez\dev\Cosmos User Kit\Cosmos.iso" -boot d -serial "file:D:\filez\dev\Cosmos User Kit\serial-debug.txt" -k
ernel-kqemu -net nic,model=rtl8139 from directory D:\filez\dev\Cosmos User Kit\Tools\qemu\
qemu: could not open hard disk image 'D:\filez\dev\Cosmos User Kit\hda.img'
Press enter to continue.
Nov 19, 2008 at 7:43 AM
the option "Create HD image" in the builder is actually misleading. if enabled, it uses (instead of creates) hda.img and hdb.img (if existing). you need to create these images first using qemu-img. then, if you want to use them using our ext2 functionality (read-only for now), you need to format the image and put files on it (for example using linux..)