Hi,
Here is my json file for creating the vm:
{
"alias": "test",
"hostname": "test",
"autoboot": true,
"nowait": true,
"brand": "joyent",
"max_physical_memory": 1024,
"quota":10,
"image_uuid": "fec7e254-6e98-11e5-9284-3f9c607cb3e7",
"nics": [
{
"nic_tag": "admin",
"ip": "10.20.2.251",
"netmask": "255.255.255.0",
"gateway": "10.20.2.1",
"primary": true
}],
"resolvers": [“8.8.8.8"]
}
I’ve accepted Eric’s suggestion and set the “nowait” parameter. The create
method now only needs around 4 seconds.
Additional, I run a script to check the state after executing ‘vmadm create’
and found that the vm state transfer is:
‘provisioning’ - ‘running’ - ‘shutting_down’ - ‘down’ - ‘ready’ - ‘running’
Is there any reason why the vm reboots after creation?
--------------------------------------------------------------
Best Regards
Haochen Zhang
Beijing, China
Original Message
Sender:Josh [email protected]
Recipient:[email protected][email protected]
Date:Thursday, Dec 3, 2015 16:07
Subject:Re: [smartos-discuss] SmartOS vm creating time booting time
I have a system that needs to create and destroy vms very frequently. So the
startup time is a very important feature associating to the performance. I’d
like to know some common-use startup time and to check whether nearly 5s
waiting time is very common and whether there is some way to cut the waiting
time.
Hello,
Knowing what parameters your VM was created with and how you're measuring would
be important for doing any comparison.
For example, the 'joyent-minimal' brand I would expect to boot faster than the
'joyent' brand, and definitely should create faster.
Thanks,
Josh
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