I could be missing something, but "vmadm update UUID -f
/path/to/update.json" should work. It's not immediately obvious, but the
info is in the vmadm manpage.

In the case of nics and disks, there are 3 special objects:

add_disks || add_nics
remove_disks || remove_nics
update_disks || update_nics

For NICs for example, you can include an array of NIC objects with the
parameter add_nics in your input. Those NICs would get added to the VM.
For update you also pass in a new NIC object but only need to specify
the "mac" parameter (to identify which NIC to update) and the
properties that you want to change. If you need to change the MAC
address itself, you'll need to add a new NIC with the same properties
and a different MAC, and remove the existing one. To remove a NIC, the
remove_nics property should be an array of MAC addresses only (not NIC
objects).

 For me, it helped to find examples, then started a small library of .json
files to use as templates.

On Fri, Jun 2, 2017 at 6:50 AM, Hanno Hirschberger <
[email protected]> wrote:

> Hello everyone,
> 
> I'm currently using SmartOS (build: SmartOS 20160218T022556Z x86_64) for a
> bunch of different KVM virtualized machines. Normally these machines are
> getting a vnic on the external network interface to communicate with the
> outside. Now I need to create two machines which are linked together in a
> private network. I want to use an etherstub and two vnics (one for each
> machine) linked to that etherstub to achieve this.
> 
> While this is no problem to do in a bash on SmartOS, I'd love to use a
> more cleaner approach with the JSON machine descriptors - if possible! But
> I don't know what to write in the machine settings JSON file. So maybe you
> can help me out. Is that possible or do I have to do this outside of the
> 'vmadm' command?
> 
> Best regards
> 
> Hanno
> 



-------------------------------------------
smartos-discuss
Archives: https://www.listbox.com/member/archive/184463/=now
RSS Feed: https://www.listbox.com/member/archive/rss/184463/25769125-55cfbc00
Modify Your Subscription: 
https://www.listbox.com/member/?member_id=25769125&id_secret=25769125-7688e9fb
Powered by Listbox: http://www.listbox.com

Reply via email to