Advertisement
Guest User

Untitled

a guest
Dec 8th, 2016
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.04 KB | None | 0 0
  1. Help on method updateDeviceFlags in module libvirt:
  2.  
  3. updateDeviceFlags(xml, flags=0) method of libvirt.virDomain instance
  4. Change a virtual device on a domain, using the flags parameter
  5. to control how the device is changed. VIR_DOMAIN_AFFECT_CURRENT
  6. specifies that the device change is made based on current domain
  7. state. VIR_DOMAIN_AFFECT_LIVE specifies that the device shall be
  8. changed on the active domain instance only and is not added to the
  9. persisted domain configuration. VIR_DOMAIN_AFFECT_CONFIG
  10. specifies that the device shall be changed on the persisted domain
  11. configuration only. Note that the target hypervisor must return an
  12. error if unable to satisfy flags. E.g. the hypervisor driver will
  13. return failure if LIVE is specified but it only supports modifying the
  14. persisted device allocation.
  15.  
  16. This method is used for actions such changing CDROM/Floppy device
  17. media, altering the graphics configuration such as password,
  18. reconfiguring the NIC device backend connectivity, etc.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement