Hi Nikita,
Sorry for bothering you. Do you mind commit an issue on
https://github.com/oVirt/ovirt-engine-sdk-go with the information you
provided above? In addition, it may help us more if you could tell us the
versions of oVirt and go-sdk. Thanks.
Regards,
Joey
On Wed, Sep 1, 2021 at 4:02 PM Nikita Zubarev <nzubarev(a)hostkey.ru> wrote:
Hello.
I need help creating a virtual machine using
https://github.com/oVirt/go-ovirt
I need set cmdline vm , Please help me
my create vm configuration, but cmd not set
[image: image.png]
Vm(
ovirtsdk4.NewVmBuilder().
Name(*name).
Console(
ovirtsdk4.NewConsoleBuilder().
Enabled(true).
MustBuild()).
Memory(ram2 * int64(1<<30)).
MemoryPolicy(
ovirtsdk4.NewMemoryPolicyBuilder().
Guaranteed(int64(ram2) * int64(1<<30)).
Max(int64(ram2) * 2 * int64(1<<30)).
Ballooning(true).
MustBuild()).
// Memory(int64(ram2) * int64(1<<30)).
Os(
ovirtsdk4.NewOperatingSystemBuilder().
CustomKernelCmdline("qemu_cmdline").Cmdline("qemu_cmdline").Boot(
ovirtsdk4.NewBootBuilder().
DevicesOfAny(
ovirtsdk4.BOOTDEVICE_NETWORK,
ovirtsdk4.BOOTDEVICE_HD).
MustBuild()).
MustBuild()).
HighAvailability(
ovirtsdk4.NewHighAvailabilityBuilder().
Enabled(true).
MustBuild()).
Cpu(
ovirtsdk4.NewCpuBuilder().
Topology(
ovirtsdk4.NewCpuTopologyBuilder().
Cores(cpu2).
Sockets(1).
MustBuild()).
MustBuild()).
Cluster(
ovirtsdk4.NewClusterBuilder().
Name(Cluster).
MustBuild()).
Template(
ovirtsdk4.NewTemplateBuilder().
Name("Blank").
MustBuild()).
MustBuild()).
Send()
_______________________________________________
Users mailing list -- users(a)ovirt.org
To unsubscribe send an email to users-leave(a)ovirt.org
Privacy Statement:
https://www.ovirt.org/privacy-policy.html
oVirt Code of Conduct:
https://www.ovirt.org/community/about/community-guidelines/
List Archives:
https://lists.ovirt.org/archives/list/users@ovirt.org/message/FCFQHYRIBCH...