How to write to configuration file to add the VirtioSerial of the virtual machine

Kelvin 0 Reputation points
2024-07-26T08:20:09.4666667+00:00

https://learn.microsoft.com/zh-cn/virtualization/api/hcs/schemareference#Devices

User's image

I want to add the VirtioSerial to the Devices of the configuration to create the virtual machine by hyper-v api, but I cannot create the virtual machine as the configuration's error. How can I write the configuration Json correctly?

Hyper-V
Hyper-V
A Windows technology providing a hypervisor-based virtualization solution enabling customers to consolidate workloads onto a single server.
2,706 questions
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.