正如标题所说,我正在尝试使用 python api 在 opennebula 上创建一个 vm。(这是我第一次和一个人一起工作,我对任何事情的线索都为零,所以请不要对我太苛刻)
#!/usr/bin/python3
import oca
client = oca.Client('username:passwd', 'ip:2633/RPC2')
oca.VirtualMachine.allocate(client, 'test')
#'test' is the name of the template i want to use
它给了我这个错误:
oca.exceptions.OpenNebulaException: [VirtualMachineAllocate] Error allocating a new virtual machine. Parse error: syntax error, unexpected $end, expecting EQUAL or EQUAL_EMPTY at line 1, columns 1:5
有人知道如何解决这个问题吗?提前致谢。