SHARE
TWEET

Untitled

a guest Aug 24th, 2013 33 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. [root@08-00-27-a2-75-1e ~]# vmadm create < vmspec.json
  2. Invalid nic tag "admin"
  3. [root@08-00-27-a2-75-1e ~]# nictagadm list
  4. NAME           MACADDRESS         LINK          
  5. admin          08:00:27:a2:75:1e  e1000g0
  6. [root@08-00-27-a2-75-1e ~]# cat vmspec.json
  7. {
  8.   "brand": "kvm",
  9.   "vcpus": 1,
  10.   "autoboot": false,
  11.   "ram": 256,
  12.   "resolvers": ["8.8.8.8", "8.8.4.4"],
  13.   "disks": [
  14.     {
  15.       "boot": true,
  16.       "model": "virtio",
  17.       "size": 4096
  18.     }
  19.   ],
  20.   "nics": [
  21.     {
  22.       "nic_tag": "admin",
  23.       "model": "virtio",
  24.       "ip": "10.88.88.51",
  25.       "netmask": "255.255.255.0",
  26.       "gateway": "10.88.88.1",
  27.       "primary": 1
  28.     }
  29.   ]
  30. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top