On Thu, Sep 24, 2015 at 12:47 AM, Eric <[email protected]> wrote:
>
> Sorry, I had removed the gateway and netmask lines out of the json spec (it 
> had stopped it during vmadm create, but vmadm validate did not catch it).
>

Ah, sorry for that. I've filed a ticket (OS-4773) for this. Thanks for noticing!

- Cody

>
> On Thursday, September 24, 2015, Cody Mello <[email protected]> wrote:
>>
>> Hey Eric,
>>
>> Both "gateway" and "netmask" must be set to an IP address. Are you not 
>> getting an error when trying to create the vm? For any existing zone(s) like 
>> this, could you do the following:
>>
>> $ vmadm update $uuid <<EOF
>> {
>>     "update_nics": [ {
>>         "mac": "a2:65:18:b0:85:03",
>>         "ip": "dhcp"
>>     } ]
>> }
>> EOF
>> $ <do this to any other NICs of zones you have that are using DHCP>
>>
>> And then try again? This time, could you include the full output of `vmadm 
>> get' and 'update', along with the payload?
>>
>> - Cody
>>
>>
>>
>> On Wed, Sep 23, 2015 at 11:31 PM, Eric <[email protected]> wrote:
>>>
>>> Creating a joyent brand VM does not take the interface option. It doesn't 
>>> take it when the vm is being created, nor when updating the vm.
>>>
>>> The interface field is set to net0 after the vm is created, even though the 
>>> field is set to "eth0" in the vm spec.
>>>
>>> And after updating the joyent vm with interface=eth0, the update is 
>>> successful, but the vmadm get result still shows net0
>>>
>>>
>>> Joyent VM spec:
>>> {
>>>   "brand": "joyent",
>>>   "alias": "created-1443073710",
>>>   "hostname": "joyent",
>>>   "autoboot": false,
>>>   "max_physical_memory": 512,
>>>   "cpu_cap": 100,
>>>   "quota": "5",
>>>   "image_uuid": "62f148f8-6e84-11e4-82c5-efca60348b9f",
>>>   "nics": [
>>>     {
>>>       "interface": "eth0",
>>>       "nic_tag": "test0",
>>>       "ip": "dhcp",
>>>       "gateway": "dhcp",
>>>       "netmask": "dhcp",
>>>       "primary": true
>>>     }
>>>   ],
>>>   "resolvers": [
>>>     "8.8.8.8",
>>>     "8.8.4.4"
>>>   ]
>>> }
>>>
>>> Joyent VM vmadm get output:
>>> [
>>>   {
>>>     "interface": "net0",
>>>     "mac": "a2:65:18:b0:85:03",
>>>     "nic_tag": "test0",
>>>     "gateway": "dhcp",
>>>     "ip": "dhcp",
>>>     "netmask": "dhcp",
>>>     "primary": true
>>>   }
>>> ]
>>>
>>
> smartos-discuss | Archives | Modify Your Subscription


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