SOAP API, create qemu all params not understood

Z

Zanko

Guest
Hi,

I'm using the somewhat limited php api to create qemu guests. I can't get it to accept the params "net" or "net0" (containing virtio0=XX:XX:XX:XX:XX:XX,bridge=vmbr0 etc). The pvesh tool seems to indicate a lot of useful options, like:

-storage
-scsihw (lsi | megasas | virtio-scsi-pci) (default=lsi)
-ostype
l26 => Linux 2.6/3.X Kernel
-onboot boolean (default=0)
-net[n] bridge=vmbr0,virtio
-virtio0 cache=none,volume=aa
-pool string
-bootdisk virtio0
-sockets

Can someone provide an example that addresses the 'net' parameter, and optionally the storage type (where LVM is of interest) etc?

Thanks
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!