Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
[root@00-25-90-74-3b-ad ~]# time vmadm create << EOF
> {
> "brand": "kvm",
> "vcpus": 1,
> "autoboot": true,
> "ram": 1024,
> "resolvers": ["208.67.222.222", "208.67.220.220"],
> "disks": [
> {
> "boot": true,
> "model": "virtio",
> "size": 40960
> }
> ],
> "nics": [
> {
> "nic_tag": "admin",
> "model": "virtio",
> "ip": "10.88.88.51",
> "netmask": "255.255.255.0",
> "gateway": "10.88.88.1",
> "primary": 1
> }
> ]
> }
> EOF
Successfully created VM ef7757f8-8b6f-47fb-9ed0-a25d84c017c8
real 0m5.951s
user 0m0.593s
sys 0m0.383s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.