Jump to content

ErmaC

ErmaC

Member Since 27 Jan 2009
Online Last Active 9 minutes ago
*****

Topics I've Started

VMWare Workstation 11.x e Kernel 3.19.x

22 March 2015 - 10:13 PM

Salve a tutti.

Posto una semplice procedura (che ritengo veramente utile) facendo una premessa:

PREMESSA >>
Non mi prendo assolutamente nessun merito per la procedura in quanto non sono l'autore,
le informazioni raccolte in questo topic provengono da qui-> https://wiki.archlin...ndex.php/VMware
ho semplicemente trascritto in italiano la procedura. << FINE PREMESSA

TESTATO e FUNZIONANTE con VMware Workstation 11.0.0 (2305329) e VMware Workstation 11.1.0 (2496824)
 

Se siete utilizzatori di VMWare su Linux e avete recentemente aggiornato il vostro Kernel alla versione 3.19+ oppure volete installare VMWare sul nuovo ubuntu 15.04 ad esempio (che ora viene di serie con il kernel 3.19+) vi ritroverete con il problema come mostrato in figura...
 
Attached File  001.png   26.86KB   0 downloads
seguito da
Attached File  002.png   59.68KB   0 downloads
Attached File  003.png   44.65KB   0 downloads
 
 
Seguendo ed applicando la patch consigliate sono riuscito a compilare i moduli di VMWare ed utilizzare nuovamente VMWare Workstation.

  • Apriamo il terminale:

    Attached File  004.png   29.38KB   0 downloads
  • Diamo i privilegi di root
    sudo -E -s
    Attached File  005.png   34.38KB   0 downloads
  • Cambiamo cartella
    cd /usr/lib/vmware/modules/source
    Attached File  006.png   39.37KB   0 downloads
  • Scompattiamo il file vmnet.tar
    tar -xf vmnet.tar
    Attached File  007.png   48.58KB   0 downloads
  • Creiamo il file da usare come patch (vmnet-3.19.patch) che verrà creato nella cartella /temp
    Spoiler
    Attached File  008.png   88.06KB   0 downloads
  • Applichiamo la patch
    patch -p0 -i /tmp/vmnet-3.19.patch
    Attached File  009.png   102.59KB   0 downloads
  • Ricomprimiamo vmnet-only
    tar -cf vmnet.tar vmnet-only
    Attached File  010.png   98.68KB   0 downloads
  • Eliminiamo la cartella generata dalla decompressione
    rm -r *-only
    Attached File  011.png   103.69KB   0 downloads
  • Ricompiliamo i moduli
    vmware-modconfig --console --install-all
    Attached File  012.png   113.64KB   0 downloads
  • Usciamo da root
    exit
    Attached File  013.png   100.5KB   0 downloads

Finalmente!!!
Attached File  014.png   96.04KB   0 downloads

 

 

Prova unlocker 2.0.4 su VMware Workstation 11.1.0 (2496824) su kernel 3.19 appena ripristinato per avvio OS X

Attached File  015.png   106.06KB   0 downloads

 

Perfetto!

Attached File  016.png   516.29KB   0 downloads

 

 

 

Buona virtualizzazione.

ErmaC

Nuovo evento Apple (9 Marzo 2015)

26 February 2015 - 11:44 PM

http://www.apple.com/live/

apple_event_spring_forward.jpg

 

Nuovo evento Apple previsto per il 9 Marzo.

 

Cosa ci sarà di nuovo?

 

Apple watch (ok confermato)

 

? iPad Pro ?

? MacBook Air 12'' Retina ?

? iPhone6c & iPhone6c Plus ?

? Presentazione del prossimo OSX ?

 

ErmaC

Boot from vanilla Recovery HD, Installation DMG

30 October 2014 - 10:36 PM

I open this new topic to discuss/test (and hopefully improve) the proposed changes made by the user N3 on http://forge.voodooprojects.org

Allows zero-config upgrade or reinstall, with app store downloaded installer app, or fresh install, with installer app or official bootable install media, and create bootable Recovery HD during installation. Patch worked on 10.7->10.8, 10.8->10.9 upgrade, reinstall or fresh install.
Updated for Yosemite.
Tested with 10.9->10.10 upgrade, 10.10 reinstall, and fresh install to external disk from existing 10.10.
(Might still require FileNVRAM)

 
So this code and work is not mine (ErmaC), also I not test it right now.
I recentrly merge on the main trunk project the base icons for the recovery disk made long time ago by blackosx (Many thanks! Finally we can use it!)
 
So let's start with the proposed patch:
 
boot.c
--- trunk/i386/boot2/boot.c    2014-10-30 15:01:44.000000000 +0000
+++ trunk_mod/i386/boot2/boot.c    2014-10-30 22:02:41.000000000 +0000
@@ -318,22 +318,28 @@ long LoadKernelCache(const char* cacheFi
     // If boot from a boot helper partition check the kernel cache file on it
     if (gBootVolume->flags & kBVFlagBooter)
     {
-        snprintf(kernelCachePath, sizeof(kernelCachePath), "com.apple.boot.P%s", kernelCacheFile);
+        snprintf(kernelCachePath, sizeof(kernelCachePath), "/com.apple.boot.P/%s", kernelCacheFile);
         ret = GetFileInfo(NULL, kernelCachePath, &flags, &cachetime);
 
         if ((ret == -1) || ((flags & kFileTypeMask) != kFileTypeFlat))
         {
-            snprintf(kernelCachePath, sizeof(kernelCachePath), "com.apple.boot.R%s", kernelCacheFile);
+            snprintf(kernelCachePath, sizeof(kernelCachePath), "/com.apple.boot.R/%s", kernelCacheFile);
             ret = GetFileInfo(NULL, kernelCachePath, &flags, &cachetime);
 
             if ((ret == -1) || ((flags & kFileTypeMask) != kFileTypeFlat))
             {
-                snprintf(kernelCachePath, sizeof(kernelCachePath), "com.apple.boot.S%s", kernelCacheFile);
+                snprintf(kernelCachePath, sizeof(kernelCachePath), "/com.apple.boot.S/%s", kernelCacheFile);
                 ret = GetFileInfo(NULL, kernelCachePath, &flags, &cachetime);
 
-                if ((flags & kFileTypeMask) != kFileTypeFlat)
+                if ((ret == -1) || ((flags & kFileTypeMask) != kFileTypeFlat))
                 {
-                    ret = -1;
+                    snprintf(kernelCachePath, sizeof(kernelCachePath), "/com.apple.recovery.boot/kernelcache", kernelCacheFile);
+                    ret = GetFileInfo(NULL, kernelCachePath, &flags, &cachetime);
+
+                    if ((flags & kFileTypeMask) != kFileTypeFlat)
+                    {
+                        ret = -1;
+                    }
                 }
             }
         }
 
gui.c
--- trunk/i386/boot2/gui.c    2014-10-30 16:41:03.000000000 +0000
+++ trunk_mod/i386/boot2/gui.c    2014-10-30 22:07:31.000000000 +0000
@@ -988,16 +988,14 @@ void drawDeviceIcon(BVRef device, pixmap
         {
             case kPartitionTypeHFS:
             {
-
                 // ErmaC : TODO test needed for recovery icon
-
                 // Use HFSRECOVERY icon.
-//                if (device->flags & kBVFlagBooter)
-//                {
-//                    devicetype = iDeviceHFSRECOVERY;
-//                }
-//                else
-//                {
+                if (device->flags & kBVFlagBooter)
+                {
+                    devicetype = iDeviceHFSRECOVERY;
+                }
+                else
+                {
 
                     // Use HFS or HFSRAID icon depending on bvr flags. Fallbacks are handled by alt_image above.
                     switch (device->OSVersion[3]) {
@@ -1032,7 +1030,7 @@ void drawDeviceIcon(BVRef device, pixmap
                             devicetype = (device->flags & kBVFlagBooter ? iDeviceHFSRAID : iDeviceHFS);
                             break;
                     }
-//                }
+                }
 
                 break;
 
disk.c
--- trunk/i386/libsaio/disk.c    2014-10-30 15:07:54.000000000 +0000
+++ trunk_mod/i386/libsaio/disk.c    2014-10-30 22:03:26.000000000 +0000
@@ -1575,21 +1575,43 @@ static bool getOSVersion(BVRef bvr, char
     config_file_t systemVersion;
     char  dirSpec[512];
 
-    sprintf(dirSpec, "hd(%d,%d)/System/Library/CoreServices/SystemVersion.plist", BIOS_DEV_UNIT(bvr), bvr->part_no);
+    sprintf(dirSpec, "hd(%d,%d)/com.apple.recovery.boot/SystemVersion.plist", BIOS_DEV_UNIT(bvr), bvr->part_no);
 
     if (!loadConfigFile(dirSpec, &systemVersion))
     {
+        bvr->OSisInstaller = true;
         valid = true;
     }
-    else
+
+    if (!valid)
     {
-        sprintf(dirSpec, "hd(%d,%d)/System/Library/CoreServices/ServerVersion.plist", BIOS_DEV_UNIT(bvr), bvr->part_no);
+        sprintf(dirSpec, "hd(%d,%d)/System/Library/CoreServices/SystemVersion.plist", BIOS_DEV_UNIT(bvr), bvr->part_no);
 
         if (!loadConfigFile(dirSpec, &systemVersion))
         {
-            bvr->OSisServer = true;
+            bvr->OSisInstaller = true;
             valid = true;
         }
+        else
+        {
+            sprintf(dirSpec, "hd(%d,%d)/System/Library/CoreServices/ServerVersion.plist", BIOS_DEV_UNIT(bvr), bvr->part_no);
+
+            if (!loadConfigFile(dirSpec, &systemVersion))
+            {
+                bvr->OSisServer = true;
+                valid = true;
+            }
+/*            else
+            {
+                sprintf(dirSpec, "hd(%d,%d)/.IAProductInfo", BIOS_DEV_UNIT(bvr), bvr->part_no);
+
+                if (!loadConfigFile(dirSpec, &systemVersion))
+                {
+
+                }
+            }
+*/
+        }
     }
 
     if (valid)
@@ -1633,7 +1655,19 @@ static bool getOSVersion(BVRef bvr, char
         }
         else
         {
-            close(fh);
+            sprintf(dirSpec, "hd(%d,%d)/.IAPhysicalMedia", BIOS_DEV_UNIT(bvr), bvr->part_no);
+            fh = open(dirSpec, 0);
+
+            if (fh >= 0)
+            {
+                valid = true;
+                bvr->OSisInstaller = true;
+                strcpy(bvr->OSVersion, "10.9"); // 10.9 +
+            }
+            else
+            {
+                close(fh);
+            }
         }
     }
     return valid;
 
stringTable.c
--- trunk/i386/libsaio/stringTable.c    2014-10-30 15:12:08.000000000 +0000
+++ trunk_mod/i386/libsaio/stringTable.c    2014-10-30 22:04:06.000000000 +0000
@@ -614,8 +614,11 @@ int loadConfigFile (const char *configFi
 int loadSystemConfig(config_file_t *config)
 {
     char *dirspec[] = {
+        "/Mac OS X Install Data/com.apple.Boot.plist",
         "/OS X Install Data/com.apple.Boot.plist",
+        "/.IABootFiles/com.apple.Boot.plist", // OS X Installer
         "/Library/Preferences/SystemConfiguration/com.apple.Boot.plist",
+        "/com.apple.recovery.boot/com.apple.Boot.plist" // OS X Recovery
     };
 
     int i, fd, count, ret=-1;
 
Here the diff file to apply on the current trunk(2456) --> recovery.diff Attached File  recovery.txt   5.15KB   8 downloads (I edit the file extension due to server restriction)

Here the precompiled binaries with the changes included.
Please don't upload it on other servers and don't repack it, thank you.
Attached File  i386_v2456_Recovery_v1.zip   1.19MB   19 downloads
Please don't upload it on other servers and don't repack it, thank you.
 
Credits to N3
 
Cordially
ErmaC
© 2015 InsanelyMac  |   News  |   Forum  |   Downloads  |   OSx86 Wiki  |   Mac Netbook  |   PHP hosting by CatN  |   Designed by Ed Gain  |   Logo by irfan  |   Privacy Policy