VMware Cloud Community
OlivierD
Contributor
Contributor

Modify bios parameters with powercli

Hello

I want to disable the integrated serial ports in the bios of a vm.

In the Bios menu :

Advanced --> I/O device Configuration --> Serial Port A --> Disabled

Advanced --> I/O device Configuration --> Serial Port B --> Disabled

Is there a way to modify those 2 settings with VI Toolkit ?

Or I have to duplicate the nvram file ?

Olivier

0 Kudos
2 Replies
DougBaer
Commander
Commander

I have not seen a way to do this other than copying the nvram file. Since the CLI commands seem to work at a different level than the VM's BIOS (i.e. manipulating the 'physical' components of a VM's configuration), I think your best bet is the copy method.

Of course, I could be wrong -- I don't know what mechanism is used to change the boot order from CD-ROM first to Hard Disk first in the BIOS after the initial boot of the VM -- that could be a part of the BIOS code, though.

Doug Baer, Solution Architect, Advanced Services, Broadcom | VCDX #019, vExpert 2012-23
0 Kudos
LucD
Leadership
Leadership

There are a few levels on which you can interact with the devices on your guest that can be scripted.

1) the VMX file. This can be done with the ReconfigVm method. See Carter's blog.

But watch out for devices that can be manipulated through dedicated calls. See .

2) By using the ReconfigVm method to add/remove/change devices.

See for example

3) by using commands inside the guest itself via the Invoke-VMScript.

See

And there is one method that can't be scripted afaik.

That is to go into the BIOS of the guest and change the device options there.

The only way to propagate this is by copying the NVRAM file from a guest that you have already configured like you want your target guest to be.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos