Write the /local/domain/<domid>/vm node early in the startup process
authorEwan Mellor <ewan@xensource.com>
Wed, 8 Nov 2006 18:29:16 +0000 (18:29 +0000)
committerEwan Mellor <ewan@xensource.com>
Wed, 8 Nov 2006 18:29:16 +0000 (18:29 +0000)
(immediately after the domain is created).  QEMU needs this in place when it
starts up, in order to find the VNC password.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
tools/python/xen/xend/XendDomainInfo.py

index 1231db6dc88db5eec946e86338ca786da9f6702c..03ca41660af669cf039d41450c53e3bcdeefc4a1 100644 (file)
@@ -678,6 +678,7 @@ class XendDomainInfo:
         t.remove()
         t.mkdir()
         t.set_permissions({ 'dom' : self.domid })
+        t.write('vm', self.vmpath)
 
     def _storeDomDetails(self):
         to_store = {