DEV Community

Humberto
Humberto

Posted on

1

Compartilhando o Serial do Windows com a VM

Os computadores mais antigos tinham uma etiqueta com o número serial. Nos computadores mais novos o número serial está gravado na Bios.

Para recuperar o número serial através do Linux:

sudo strings /sys/firmware/acpi/tables/MSDM
Enter fullscreen mode Exit fullscreen mode

Caso você não queira digitar o número serial, é possível compartilhar o serial diretamente com a VM através do VirtualBox:

VBoxManage setextradata VM-name \
"VBoxInternal/Devices/acpi/0/Config/CustomTable0" "/sys/firmware/acpi/tables/MSDM"
Enter fullscreen mode Exit fullscreen mode

É preciso alterar a permissão do arquivo /sys/firmware/acpi/tables/MSDM:

sudo chmod 444 /sys/firmware/acpi/tables/MSDM
Enter fullscreen mode Exit fullscreen mode

Referência: https://www.virtualbox.org/manual/ch09.html#changeacpicust

Top comments (1)

Collapse
 
golinuxcloudnative profile image
/dev/null

Excelente! Não precisa ficar perdendo tempo preenchendo.

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Engage with a sea of insights in this enlightening article, highly esteemed within the encouraging DEV Community. Programmers of every skill level are invited to participate and enrich our shared knowledge.

A simple "thank you" can uplift someone's spirits. Express your appreciation in the comments section!

On DEV, sharing knowledge smooths our journey and strengthens our community bonds. Found this useful? A brief thank you to the author can mean a lot.

Okay