Check vm's status before configuring XML.
It should be down for sync.