Can you specify the Zone path in the Manifest file used tocreate a non-KVM 
Zone?  I see Manifestoptions like:



brand

image_uuid

alias

hostname

max_physical_memory

quota

resolvers

nics


 
Once the Zone is created I have found procedures on how tomove it to a new 
Zpool but is there a way to specify the pool location whilecreating the Zone?


Under the “vmadm JSON Quick Reference” documentation found 
@http://wiki.smartos.org/display/DOC/vmadm+JSON+Quick+Referencethere is a 
“Zpool” option but it specifies that is applies only to “KVM” Zones.


I noticed that after using “vmadm” to create a Zone from aJSON file like:


[root@headnode (bh1-kvm1:0) ~]# catzone.json

{

  "brand":"joyent",

  "zfs_io_priority": 30,

  "quota": 20,

  "nowait": true,

  "image_uuid":"47e6af92-daf0-11e0-ac11-473ca1173ab0",

  "max_physical_memory":256,

  "alias":"zone70",

  "nics": [

    {

      "nic_tag":"external",

      "ip":"10.2.121.70",

      "netmask":"255.255.0.0",

      "gateway":"10.2.121.1",

      "primary":1

    }

  ]

}

[root@headnode (bh1-kvm1:0) ~]# vmadmcreate < zone.json

Successfully created 1cdae426-b5ac-4098-b5ec-f765b3bc96b3


 

 
If you run “vmadm get54f1cc77-68f1-42ab-acac-5c4f64f5d6e0”|


There is a line item labeled 
“"zonepath":"/zones/54f1cc77-68f1-42ab-acac-5c4f64f5d6e0",”


 
I tried adding a “zonepath” option to the JSON file whilecreating the Zone but 
that did not seem to help.  

 

 

 

 
  


 




-------------------------------------------
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