I&#39;m attempting to configure a console for my vm so I can connect to it via &quot;virsh&quot;, but I believe I am screwing up the declaration in the template. <br><br>&lt;quote&gt;<br>RAW = [ type = &quot;kvm&quot;, data = &quot;&lt;console type=\&quot;stdio\&quot;&gt;&lt;target port=\&quot;1\&quot;/&gt;&lt;/console&gt;&quot; ]<br>

&lt;/quote&gt;<br><br>results in the following deployment descriptor:<br><br>&lt;domain type=&#39;kvm&#39;&gt;<br>    &lt;name&gt;one-31&lt;/name&gt;<br>    &lt;memory&gt;262144&lt;/memory&gt;<br>    &lt;os&gt;<br>        &lt;type&gt;hvm&lt;/type&gt;<br>

        &lt;boot dev=&#39;hd&#39;/&gt;<br>    &lt;/os&gt;<br>    &lt;devices&gt;<br>        &lt;emulator&gt;/usr/bin/kvm&lt;/emulator&gt;<br>        &lt;disk type=&#39;file&#39; device=&#39;disk&#39;&gt;<br>            &lt;source file=&#39;/opt/nebula/ONE/var//31/images/disk.0&#39;/&gt;<br>

            &lt;target dev=&#39;vda&#39; bus=&#39;virtio&#39;/&gt;<br>        &lt;/disk&gt;<br>        &lt;interface type=&#39;bridge&#39;&gt;<br>            &lt;source bridge=&#39;br0&#39;/&gt;<br>            &lt;model type=&#39;virtio&#39;/&gt;<br>

        &lt;/interface&gt;<br>        &lt;interface type=&#39;bridge&#39;&gt;<br>            &lt;source bridge=&#39;br0&#39;/&gt;<br>            &lt;mac address=&#39;00:03:0a:00:01:04&#39;/&gt;<br>            &lt;model type=&#39;virtio&#39;/&gt;<br>

        &lt;/interface&gt;<br>    &lt;/devices&gt;<br>    &lt;features&gt;<br>        &lt;pae/&gt;<br>        &lt;acpi/&gt;<br>    &lt;/features&gt;<br>    &lt;console type=&quot;stdio&quot;&gt;&lt;target port=&quot;1&quot;/&gt;&lt;/console&gt;<br>

&lt;/domain&gt;<br><br>But when I attempt to connect to the console I get the following error:<br><br>&lt;quote&gt;<br>sudo virsh console one-31<br>[sudo] password for xxxx: <br>Connecting to uri: qemu:///system<br>No console available for domain<br>

&lt;/quote&gt;<br><br>virsh dumpxml shows the following:<br><br>&lt;domain type=&#39;kvm&#39; id=&#39;13&#39;&gt;<br>  &lt;name&gt;one-31&lt;/name&gt;<br>  &lt;uuid&gt;89e69209-ba37-8ccf-832f-f637ab753710&lt;/uuid&gt;<br>

  &lt;memory&gt;262144&lt;/memory&gt;<br>  &lt;currentMemory&gt;262144&lt;/currentMemory&gt;<br>  &lt;vcpu&gt;1&lt;/vcpu&gt;<br>  &lt;os&gt;<br>    &lt;type arch=&#39;i686&#39; machine=&#39;pc-0.11&#39;&gt;hvm&lt;/type&gt;<br>

    &lt;boot dev=&#39;hd&#39;/&gt;<br>  &lt;/os&gt;<br>  &lt;features&gt;<br>    &lt;acpi/&gt;<br>    &lt;pae/&gt;<br>  &lt;/features&gt;<br>  &lt;clock offset=&#39;utc&#39;/&gt;<br>  &lt;on_poweroff&gt;destroy&lt;/on_poweroff&gt;<br>

  &lt;on_reboot&gt;restart&lt;/on_reboot&gt;<br>  &lt;on_crash&gt;destroy&lt;/on_crash&gt;<br>  &lt;devices&gt;<br>    &lt;emulator&gt;/usr/bin/kvm&lt;/emulator&gt;<br>    &lt;disk type=&#39;file&#39; device=&#39;disk&#39;&gt;<br>

      &lt;source file=&#39;/opt/nebula/ONE/var//31/images/disk.0&#39;/&gt;<br>      &lt;target dev=&#39;vda&#39; bus=&#39;virtio&#39;/&gt;<br>    &lt;/disk&gt;<br>    &lt;interface type=&#39;bridge&#39;&gt;<br>      &lt;mac address=&#39;52:54:00:9c:c1:cb&#39;/&gt;<br>

      &lt;source bridge=&#39;br0&#39;/&gt;<br>      &lt;target dev=&#39;vnet4&#39;/&gt;<br>      &lt;model type=&#39;virtio&#39;/&gt;<br>    &lt;/interface&gt;<br>    &lt;interface type=&#39;bridge&#39;&gt;<br>      &lt;mac address=&#39;00:03:0a:00:01:04&#39;/&gt;<br>

      &lt;source bridge=&#39;br0&#39;/&gt;<br>      &lt;target dev=&#39;vnet5&#39;/&gt;<br>      &lt;model type=&#39;virtio&#39;/&gt;<br>    &lt;/interface&gt;<br>  &lt;/devices&gt;<br>  &lt;seclabel type=&#39;dynamic&#39; model=&#39;apparmor&#39;&gt;<br>

    &lt;label&gt;libvirt-89e69209-ba37-8ccf-832f-f637ab753710&lt;/label&gt;<br>    &lt;imagelabel&gt;libvirt-89e69209-ba37-8ccf-832f-f637ab753710&lt;/imagelabel&gt;<br>  &lt;/seclabel&gt;<br>&lt;/domain&gt;<br><br>As you can see no console element.<br>

<br>If I redefine the domain and add the following (via virsh), I can connect successfully.<br><br>&lt;domain type=&#39;kvm&#39;&gt;<br>  &lt;name&gt;one-31&lt;/name&gt;<br>  &lt;uuid&gt;89e69209-ba37-8ccf-832f-f637ab753710&lt;/uuid&gt;<br>

  &lt;memory&gt;262144&lt;/memory&gt;<br>  &lt;currentMemory&gt;262144&lt;/currentMemory&gt;<br>  &lt;vcpu&gt;1&lt;/vcpu&gt;<br>  &lt;os&gt;<br>    &lt;type arch=&#39;i686&#39; machine=&#39;pc-0.11&#39;&gt;hvm&lt;/type&gt;<br>

    &lt;boot dev=&#39;hd&#39;/&gt;<br>  &lt;/os&gt;<br>  &lt;features&gt;<br>    &lt;acpi/&gt;<br>    &lt;pae/&gt;<br>  &lt;/features&gt;<br>  &lt;clock offset=&#39;utc&#39;/&gt;<br>  &lt;on_poweroff&gt;destroy&lt;/on_poweroff&gt;<br>

  &lt;on_reboot&gt;restart&lt;/on_reboot&gt;<br>  &lt;on_crash&gt;destroy&lt;/on_crash&gt;<br>  &lt;devices&gt;<br>    &lt;emulator&gt;/usr/bin/kvm&lt;/emulator&gt;<br>    &lt;disk type=&#39;file&#39; device=&#39;disk&#39;&gt;<br>

      &lt;source file=&#39;/opt/nebula/ONE/var//31/images/disk.0&#39;/&gt;<br>      &lt;target dev=&#39;vda&#39; bus=&#39;virtio&#39;/&gt;<br>    &lt;/disk&gt;<br>    &lt;interface type=&#39;bridge&#39;&gt;<br>      &lt;mac address=&#39;52:54:00:9c:c1:cb&#39;/&gt;<br>

      &lt;source bridge=&#39;br0&#39;/&gt;<br>      &lt;target dev=&#39;vnet4&#39;/&gt;<br>      &lt;model type=&#39;virtio&#39;/&gt;<br>    &lt;/interface&gt;<br>    &lt;interface type=&#39;bridge&#39;&gt;<br>      &lt;mac address=&#39;00:03:0a:00:01:04&#39;/&gt;<br>

      &lt;source bridge=&#39;br0&#39;/&gt;<br>      &lt;target dev=&#39;vnet5&#39;/&gt;<br>      &lt;model type=&#39;virtio&#39;/&gt;<br>    &lt;/interface&gt;<br>    &lt;serial type=&#39;pty&#39;&gt;<br>      &lt;source path=&#39;/dev/pts/5&#39;/&gt;<br>

      &lt;target port=&#39;0&#39;/&gt;<br>    &lt;/serial&gt;<br>    &lt;console type=&#39;pty&#39; tty=&#39;/dev/pts/5&#39;&gt;<br>      &lt;source path=&#39;/dev/pts/5&#39;/&gt;<br>      &lt;target port=&#39;0&#39;/&gt;<br>

    &lt;/console&gt;<br>  &lt;/devices&gt;<br>&lt;/domain&gt;<br><br>So I tried passing in the following as RAW attributes:<br><br>RAW = [ type = &quot;kvm&quot;, <br>              data = &quot;&lt;serial type=\&quot;pty\&quot;&gt;&lt;source path=\&quot;/dev/pts/5\&quot;/&gt;&lt;target port=\&quot;0\&quot;/&gt;&lt;/serial&gt;&lt;console type=\&quot;pty\&quot; tty=\&quot;/dev/pts/5\&quot;&gt;&lt;source path=\&quot;/dev/pts/5\&quot;/&gt;&lt;target port=\&quot;0\&quot;/&gt;&lt;/console&gt;&quot; ]<br>

<br>The above results in the following deployment descriptor being generated:<br><br>&lt;domain type=&#39;kvm&#39;&gt;<br>    &lt;name&gt;one-32&lt;/name&gt;<br>    &lt;memory&gt;262144&lt;/memory&gt;<br>    &lt;os&gt;<br>
        &lt;type&gt;hvm&lt;/type&gt;<br>        &lt;boot dev=&#39;hd&#39;/&gt;<br>    &lt;/os&gt;<br>    &lt;devices&gt;<br>        &lt;emulator&gt;/usr/bin/kvm&lt;/emulator&gt;<br>        &lt;disk type=&#39;file&#39; device=&#39;disk&#39;&gt;<br>
            &lt;source file=&#39;/opt/nebula/ONE/var//32/images/disk.0&#39;/&gt;<br>            &lt;target dev=&#39;vda&#39; bus=&#39;virtio&#39;/&gt;<br>        &lt;/disk&gt;<br>        &lt;interface type=&#39;bridge&#39;&gt;<br>
            &lt;source bridge=&#39;br0&#39;/&gt;<br>            &lt;model type=&#39;virtio&#39;/&gt;<br>        &lt;/interface&gt;<br>        &lt;interface type=&#39;bridge&#39;&gt;<br>            &lt;source bridge=&#39;br0&#39;/&gt;<br>
            &lt;mac address=&#39;00:03:0a:00:01:04&#39;/&gt;<br>            &lt;model type=&#39;virtio&#39;/&gt;<br>        &lt;/interface&gt;<br>    &lt;/devices&gt;<br>    &lt;features&gt;<br>        &lt;pae/&gt;<br>        &lt;acpi/&gt;<br>
    &lt;/features&gt;<br>    &lt;serial type=&quot;pty&quot;&gt;&lt;source path=&quot;/dev/pts/5&quot;/&gt;&lt;target port=&quot;0&quot;/&gt;&lt;/serial&gt;&lt;console type=&quot;pty&quot; tty=&quot;/dev/pts/5&quot;&gt;&lt;source path=&quot;/dev/pts/5&quot;/&gt;&lt;target port=&quot;0&quot;/&gt;&lt;/console&gt;<br>
&lt;/domain&gt;<br><br>But still cannot connect to the console. The dumpxml (via virsh) reveals the following:<br><br>oneadmin@uecB:~/domainTemplates$ virsh dumpxml one-32<br>Connecting to uri: qemu:///system<br>&lt;domain type=&#39;kvm&#39; id=&#39;15&#39;&gt;<br>
  &lt;name&gt;one-32&lt;/name&gt;<br>  &lt;uuid&gt;c51c3deb-7685-3722-9df1-10600d3f2df0&lt;/uuid&gt;<br>  &lt;memory&gt;262144&lt;/memory&gt;<br>  &lt;currentMemory&gt;262144&lt;/currentMemory&gt;<br>  &lt;vcpu&gt;1&lt;/vcpu&gt;<br>
  &lt;os&gt;<br>    &lt;type arch=&#39;i686&#39; machine=&#39;pc-0.11&#39;&gt;hvm&lt;/type&gt;<br>    &lt;boot dev=&#39;hd&#39;/&gt;<br>  &lt;/os&gt;<br>  &lt;features&gt;<br>    &lt;acpi/&gt;<br>    &lt;pae/&gt;<br>  &lt;/features&gt;<br>
  &lt;clock offset=&#39;utc&#39;/&gt;<br>  &lt;on_poweroff&gt;destroy&lt;/on_poweroff&gt;<br>  &lt;on_reboot&gt;restart&lt;/on_reboot&gt;<br>  &lt;on_crash&gt;destroy&lt;/on_crash&gt;<br>  &lt;devices&gt;<br>    &lt;emulator&gt;/usr/bin/kvm&lt;/emulator&gt;<br>
    &lt;disk type=&#39;file&#39; device=&#39;disk&#39;&gt;<br>      &lt;source file=&#39;/opt/nebula/ONE/var//32/images/disk.0&#39;/&gt;<br>      &lt;target dev=&#39;vda&#39; bus=&#39;virtio&#39;/&gt;<br>    &lt;/disk&gt;<br>
    &lt;interface type=&#39;bridge&#39;&gt;<br>      &lt;mac address=&#39;52:54:00:9c:1f:76&#39;/&gt;<br>      &lt;source bridge=&#39;br0&#39;/&gt;<br>      &lt;target dev=&#39;vnet4&#39;/&gt;<br>      &lt;model type=&#39;virtio&#39;/&gt;<br>
    &lt;/interface&gt;<br>    &lt;interface type=&#39;bridge&#39;&gt;<br>      &lt;mac address=&#39;00:03:0a:00:01:04&#39;/&gt;<br>      &lt;source bridge=&#39;br0&#39;/&gt;<br>      &lt;target dev=&#39;vnet5&#39;/&gt;<br>
      &lt;model type=&#39;virtio&#39;/&gt;<br>    &lt;/interface&gt;<br>  &lt;/devices&gt;<br>  &lt;seclabel type=&#39;dynamic&#39; model=&#39;apparmor&#39;&gt;<br>    &lt;label&gt;libvirt-c51c3deb-7685-3722-9df1-10600d3f2df0&lt;/label&gt;<br>
    &lt;imagelabel&gt;libvirt-c51c3deb-7685-3722-9df1-10600d3f2df0&lt;/imagelabel&gt;<br>  &lt;/seclabel&gt;<br>&lt;/domain&gt;<br><br>As you can see, the RAW attributes did not get generated here. Any idea what is going on and how I can get this resolved.<br>
<br><br>Also, the documentation at <a href="http://opennebula.org/doku.php?id=documentation:rel1.4:kvmg" target="_blank">http://opennebula.org/doku.php?id=documentation:rel1.4:kvmg</a> <br><br>&lt;quote&gt;<br><pre>  RAW = [ type = &quot;kvm&quot;, <br>

          data = &quot;&lt;console type=\&quot;stdio\&quot;&gt;&lt;target port=\&quot;1\&quot;&gt;&lt;/console&gt;&quot; ]</pre>&lt;/quote&gt;<br><br>causes the deployment to fail with the following error in the vm.log<br>

<br>Thu Feb  4 11:37:59 2010 [VMM][I]: error: Failed to create domain from /opt/nebula/ONE/var//30/images/deployment.0<br>Thu Feb  4 11:37:59 2010 [VMM][I]: error: at line 28: Opening and ending tag mismatch: target line 28 and console<br>

Thu Feb  4 11:37:59 2010 [VMM][I]: <br>Thu Feb  4 11:37:59 2010 [VMM][I]: ExitCode: 1<br>Thu Feb  4 11:37:59 2010 [VMM][E]: Error deploying virtual machine<br><br>Therefore please update the documentation.<br><br>Front Controller:<br>

---------------------<br>Ubuntu Karmic<br>Open Nebula 1.4<br><br>Node:<br>-------<br>Ubuntu Karmic<br>KVM hypervisor<br><br>Thanks in advance,<br>RS<br>