Hi Michael,

I'm not sure if provisioning is logged there as well, but try looking into VM 
creation log file:
/var/log/zone_bh.{uuid-of-your-vm}
It might give you hint as to what command fails or if something went wrong 
during VM creation.

Regards,
MiroB.

----- Original Message -----
From: "Michael Cooper" <[email protected]>
To: [email protected]
Sent: Monday, September 11, 2017 9:55:42 AM
Subject: [smartos-discuss] Odd Problem

Hello Everyone,

             I have been reading about this issue for a couple of hours 
now, and yet to see a good resolution for it. I added an external nic on 
my SmartOS host in this manner (in /usbkey/config):

# External Nic
 external_nic=0:15:17:a7:51:b4
 external_ip=192.168.1.2
 external_netmask=255.255.255.0
 external_gateway=192.168.1.1
 
 The Global Zone image is this:
 
 [root@cfSOS1 /opt/vmdefs]# uname -a
 SunOS cfSOS1 5.11 joyent_20170831T155808Z i86pc i386 i86pc
 
 And now when I try and create a Firewall/NAT zone I get the following:
 
 [root@cfSOS1 /opt/vmdefs]# vmadm create -f nat.json
  timed out waiting for /var/svc/provisioning to move for
 afd88369-6d57-4d52-99c7-8b20bf06e2c6
 
 The image I am using is this:
 
 e1faace4-e19b-11e5-928b-83849e2fd94a minimal-64-lts
 1      smartos  zone-dataset 2016-03-03
 
 The json file is this:
 
 {
    "brand": "joyent",
    "image_uuid": "e1faace4-e19b-11e5-928b-83849e2fd94a",
    "autoboot": true,
    "alias": "nat",
    "hostname": "nat.cfs.loc",
    "dns_domain": "cfs.loc",
    "resolvers": [
      "8.8.8.8",
      "8.8.4.4"
    ],
    "max_physical_memory": 512,
    "nics": [
      {
        "nic_tag": "admin",
        "ip": "192.168.10.254",
        "gateway": "192.168.1.254",
        "netmask": "255.255.255.0",
        "allow_ip_spoofing": true,
        "primary": true
      },
      {
        "nic_tag": "external",
        "ip": "dhcp",
        "allow_ip_spoofing": true
      }
    ]
 }
 
 I tried this:
 
 [root@cfSOS1 /opt/vmdefs]# zoneadm -z
 afd88369-6d57-4d52-99c7-8b20bf06e2c6 boot
 
 and the result was this:
 
 UUID                                  TYPE  RAM STATE             ALIAS
 afd88369-6d57-4d52-99c7-8b20bf06e2c6  OS    512 failed            nat
 2ecf6908-579f-4dc5-ff21-f0b61bf0b547  OS    3072 running           cfFifo
 
 I have and can delete the zone and recreate it however it fails everytime.
 
 I am not sure what to do at this point or even how to troubleshoot what
 I am seeing, Any help would be greatly appreciated.
 
 This reason for this particular image is I can't get Triton Datacenter
 to boot on any of my Dell Servers with Intel Xeon 5420 processors, so I
 found a workaround in the Project FIFO and they said this was the latest
 image they tested with.
 
 For completeness sake I was able to ping the external gateway and
 google, results follow:
 
 [root@cfSOS1 /opt/vmdefs]# ping 192.168.1.1
           1 is alive
 
 [root@cfSOS1 /opt/vmdefs]# ping google.com
 google.com is alive
 
 Now I also have the admin nic working as well (I am able to ping the
 second SmartOS host I have):
 
 [root@cfSOS1 /opt/vmdefs]# ping 192.168.10.4
            4 is alive
 
 So the Nics are working fine.
 
 Thanks in Advance,
 
 --
 *Michael A Cooper*
 Linux Certified Professional
 http://www.coopfire.com
 


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