Xen VM Startup Process

Source: Internet
Author: User
Tags create domain domain list

Xenddomain. py: 1027

1 _ refresh ():

Refresh the domain list. needs to be called when either xenstore has changed or when

Method requires up to date information (like uptime, cputime stats ).

Call _ refreshtxn () to refresh the running state of the VM.
Update domaininfo by calling the update method of xenddomaininfo
Update with info from XC. domain_getinfo ()
In xenstore, but in xend, re-create
XC. domain_getinfo () is no longer running, and xend is still running, update xend
2 domain_lookup_nr (): Query VM Information
The domid parameter will be searched by name, ID, and UUID, instead of setting a type.
If the VM is not in the halt status, an error is returned.
3. Call xenddomaininof. Start () to start the VM.
Xendtask. log_progress (0, 30, self. _ constructdomain) # Add to xenddomain, determine the hvm, set the domain to TSC mode, set the time configuration, set the interface, the maximum number of CPUs, and PCI (xen is called. lowlevle. XC. XC () function to create domain)
Xendtask. log_progress (31, 60, self. _ initdomain)
Xendtask. log_progress (61, 70, self. _ storevmdetails) # Write VM information to xenstore
Xendtask. log_progress (71, 80, self. _ storedomdetails) # Same as above
Xendtask. log_progress (81, 90, self. _ registerwatches) # register watcher
Xendtask. log_progress (91,100, self. refreshshutdown) # checks the domain for whether a shutdown is required.

4 dominfo. waitfordevices ():
wait for the backend device to read the results of the following parameters, this value is determined by the
# xenstore-Read/local/domain/0/backend/VIF/2/0/hotplug-status
# connected
status by the xen-hotplug-common.sh script settings

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.