<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Hi there,<br><br>I'm trying to implement the GetConsoleOutput EC2 primitive. This is useful to get details about the booting processe of an instance. <br>Also, unchanged ubuntu cloudimages require the user to see the console output to see the generated password.<br>I need to create a serial port on each instance that points to a (ex.:) "console.log" file inside each VM directory.<br>Neither KVM nor Libvirt creates the file automatically. It must be there before booting the instance.<br><br>I  have three problems:<br><br>1st problem:<br>I need to add the following line to KVM deployment, using RAW:<br> <devices><serial type="file"><target port="0"/><source path="/var/lib/one/datastores/0/$VMID/console.log"/></serial></devices><br>OpenNebula does not seem to expand the $VMID on the raw parameters. So, how can I inject the correct parameters on the deployment file?<br><br>2nd problem:<br>I need to pre-create the console.log on the VM directory. I'm using a HOOK. <br>Problem is that VM TEMPLATE does not have the "systemds" the VM is using, neither has the path for the VM.<br>How can I get this?<br><br>Thanks,<br>Ricardo<br><br>                                      </div></body>
</html>