Make vminfo.vmwVmGuestOS wider (#15595)

With tools installed, the string provided by ESXi contains a lot more information. In 8.9, Red Hat have further extended the string to include a machine readable string, parsable by tools that are compatible with OVAL:

Linux 4.18.0-513.5.1.el8_9.x86_64 Red Hat Enterprise Linux 8.9 (Ootpa) 8.9 Red Hat Enterprise Linux 8.9 (Ootpa) cpe:/o:redhat:enterprise_linux:8::baseos
This commit is contained in:
AdamB
2023-11-23 01:53:19 +00:00
committed by GitHub
parent 149ecad745
commit a61c11db7e
2 changed files with 29 additions and 1 deletions

View File

@@ -0,0 +1,28 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::table('vminfo', function (Blueprint $table) {
$table->string('vmwVmGuestOS', 256)->change();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('vminfo', function (Blueprint $table) {
$table->string('vmwVmGuestOS', 128)->change();
});
}
};

View File

@@ -2171,7 +2171,7 @@ vminfo:
- { Field: vm_type, Type: varchar(16), 'Null': false, Extra: '', Default: vmware }
- { Field: vmwVmVMID, Type: int, 'Null': false, Extra: '' }
- { Field: vmwVmDisplayName, Type: varchar(128), 'Null': false, Extra: '' }
- { Field: vmwVmGuestOS, Type: varchar(128), 'Null': true, Extra: '' }
- { Field: vmwVmGuestOS, Type: varchar(256), 'Null': true, Extra: '' }
- { Field: vmwVmMemSize, Type: int, 'Null': false, Extra: '' }
- { Field: vmwVmCpus, Type: int, 'Null': false, Extra: '' }
- { Field: vmwVmState, Type: 'smallint unsigned', 'Null': false, Extra: '' }