VM manipulate DMI Chassis Serial value

This is a multi-part message in MIME format. --------------090501020300080704030705 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Hi list, it is possible to change the DMI Chassis Serial value in the VM config? Virtualbox is able to perform this via the following command for example: c:\Program Files\Oracle\VirtualBox\VBoxManage.exe setextradata "NAME_OF_VIRTUAL_MACHINE" "VBoxInternal/Devices/pcbios/0/Config/DmiChassisSerial" "123456789" Handle 0x0300, DMI type 3, 21 bytes Chassis Information Manufacturer: Red Hat Type: Other Lock: Not Present Version: RHEL 7.2.0 PC (i440FX + PIIX, 1996) * Serial Number: Not Specified* Asset Tag: Not Specified Boot-up State: Safe Power Supply State: Safe Thermal State: Safe Security Status: Unknown OEM Information: 0x00000000 Height: Unspecified Number Of Power Cords: Unspecified Contained Elements: 0 root@demo:~ # dmidecode -s chassis-serial-number *Not Specified* I want to change the red above!! Is there a way to change that in Ovirt as well? Best regards and thank you for your help. Christoph --------------090501020300080704030705 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit <html> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8"> </head> <body bgcolor="#FFFFFF" text="#000000"> Hi list,<br> <br> it is possible to change the DMI Chassis Serial value in the VM config?<br> <br> Virtualbox is able to perform this via the following command for example:<br> <tt>c:\Program Files\Oracle\VirtualBox\VBoxManage.exe setextradata "NAME_OF_VIRTUAL_MACHINE" "VBoxInternal/Devices/pcbios/0/Config/DmiChassisSerial" "123456789"</tt><br> <br> <tt>Handle 0x0300, DMI type 3, 21 bytes<br> Chassis Information<br> Manufacturer: Red Hat<br> Type: Other<br> Lock: Not Present<br> Version: RHEL 7.2.0 PC (i440FX + PIIX, 1996)<br> <font color="#ff0000"><b><big> Serial Number: Not Specified</big></b></font><br> Asset Tag: Not Specified<br> Boot-up State: Safe<br> Power Supply State: Safe<br> Thermal State: Safe<br> Security Status: Unknown<br> OEM Information: 0x00000000<br> Height: Unspecified<br> Number Of Power Cords: Unspecified<br> Contained Elements: 0<br> </tt><tt></tt><tt><br> </tt><tt>root@demo:~ # dmidecode -s chassis-serial-number</tt><tt><br> </tt><b><big><font color="#ff0000"><tt>Not Specified</tt></font></big></b><br> <br> <br> I want to change the red above!!<br> Is there a way to change that in Ovirt as well?<br> <br> Best regards and thank you for your help.<br> Christoph<br> <br> <br> </body> </html> --------------090501020300080704030705--

Adding Francesco On Fri, Jan 22, 2016 at 1:40 PM, <ovirt@timmi.org> wrote:
Hi list,
it is possible to change the DMI Chassis Serial value in the VM config?
Virtualbox is able to perform this via the following command for example: c:\Program Files\Oracle\VirtualBox\VBoxManage.exe setextradata "NAME_OF_VIRTUAL_MACHINE" "VBoxInternal/Devices/pcbios/0/Config/DmiChassisSerial" "123456789"
Handle 0x0300, DMI type 3, 21 bytes Chassis Information Manufacturer: Red Hat Type: Other Lock: Not Present Version: RHEL 7.2.0 PC (i440FX + PIIX, 1996) Serial Number: Not Specified Asset Tag: Not Specified Boot-up State: Safe Power Supply State: Safe Thermal State: Safe Security Status: Unknown OEM Information: 0x00000000 Height: Unspecified Number Of Power Cords: Unspecified Contained Elements: 0
root@demo:~ # dmidecode -s chassis-serial-number Not Specified
I want to change the red above!! Is there a way to change that in Ovirt as well?
Best regards and thank you for your help. Christoph
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users

On 01/22/2016 10:01 PM, Nir Soffer wrote:
Adding Francesco
On Fri, Jan 22, 2016 at 1:40 PM, <ovirt@timmi.org> wrote:
Hi list,
it is possible to change the DMI Chassis Serial value in the VM config?
Virtualbox is able to perform this via the following command for example: c:\Program Files\Oracle\VirtualBox\VBoxManage.exe setextradata "NAME_OF_VIRTUAL_MACHINE" "VBoxInternal/Devices/pcbios/0/Config/DmiChassisSerial" "123456789"
Handle 0x0300, DMI type 3, 21 bytes Chassis Information Manufacturer: Red Hat Type: Other Lock: Not Present Version: RHEL 7.2.0 PC (i440FX + PIIX, 1996) Serial Number: Not Specified Asset Tag: Not Specified Boot-up State: Safe Power Supply State: Safe Thermal State: Safe Security Status: Unknown OEM Information: 0x00000000 Height: Unspecified Number Of Power Cords: Unspecified Contained Elements: 0
root@demo:~ # dmidecode -s chassis-serial-number Not Specified
I want to change the red above!! Is there a way to change that in Ovirt as well?
Best regards and thank you for your help. Christoph
You should be able to change it from the GUI: Edit -> Show Advanced Options -> System -> General -> Provide Custom serial number policy -> Custom serial number. You can also change it with the API, for example with the Python SDK: ---8<--- #!/usr/bin/python from ovirtsdk.api import API from ovirtsdk.xml import params # Connect to the server: api = API( url="https://rhevm36.example.com/ovirt-engine/api", username="admin@internal", password="...", ca_file="/etc/pki/ovirt-engine/ca.pem", debug=True ) # Find the VM: vm = api.vms.get(name="myvm") # Set a custom serial number: vm.set_serial_number( params.SerialNumber( policy="custom", value="myserialnumber", ) ) vm.update() # Disconnect: api.disconnect() --->8--- -- Dirección Comercial: C/Jose Bardasano Baos, 9, Edif. Gorbea 3, planta 3ºD, 28016 Madrid, Spain Inscrita en el Reg. Mercantil de Madrid – C.I.F. B82657941 - Red Hat S.L.

Hi Juan, thank you so much for the information. Best regards Christoph Am 26.01.2016 um 17:41 schrieb Juan Hernández:
On 01/22/2016 10:01 PM, Nir Soffer wrote:
Adding Francesco
On Fri, Jan 22, 2016 at 1:40 PM, <ovirt@timmi.org> wrote:
Hi list,
it is possible to change the DMI Chassis Serial value in the VM config?
Virtualbox is able to perform this via the following command for example: c:\Program Files\Oracle\VirtualBox\VBoxManage.exe setextradata "NAME_OF_VIRTUAL_MACHINE" "VBoxInternal/Devices/pcbios/0/Config/DmiChassisSerial" "123456789"
Handle 0x0300, DMI type 3, 21 bytes Chassis Information Manufacturer: Red Hat Type: Other Lock: Not Present Version: RHEL 7.2.0 PC (i440FX + PIIX, 1996) Serial Number: Not Specified Asset Tag: Not Specified Boot-up State: Safe Power Supply State: Safe Thermal State: Safe Security Status: Unknown OEM Information: 0x00000000 Height: Unspecified Number Of Power Cords: Unspecified Contained Elements: 0
root@demo:~ # dmidecode -s chassis-serial-number Not Specified
I want to change the red above!! Is there a way to change that in Ovirt as well?
Best regards and thank you for your help. Christoph
You should be able to change it from the GUI: Edit -> Show Advanced Options -> System -> General -> Provide Custom serial number policy -> Custom serial number.
You can also change it with the API, for example with the Python SDK:
---8<--- #!/usr/bin/python
from ovirtsdk.api import API from ovirtsdk.xml import params
# Connect to the server: api = API( url="https://rhevm36.example.com/ovirt-engine/api", username="admin@internal", password="...", ca_file="/etc/pki/ovirt-engine/ca.pem", debug=True )
# Find the VM: vm = api.vms.get(name="myvm")
# Set a custom serial number: vm.set_serial_number( params.SerialNumber( policy="custom", value="myserialnumber", ) ) vm.update()
# Disconnect: api.disconnect() --->8---
participants (3)
-
Juan Hernández
-
Nir Soffer
-
ovirt@timmi.org