Bug 683842 - wrong domain type for openvz VM
Summary: wrong domain type for openvz VM
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Virtualization Tools
Classification: Community
Component: libvirt
Version: unspecified
Hardware: Unspecified
OS: Linux
unspecified
low
Target Milestone: ---
Assignee: Libvirt Maintainers
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-03-10 13:35 UTC by knawnd
Modified: 2014-11-07 05:49 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-11-07 05:49:14 UTC


Attachments (Terms of Use)

Description knawnd 2011-03-10 13:35:35 UTC
Description of problem:
'virsh dumpxml <VMID>' returns wrong domain type (qemu instead of openvz). There was a discussion http://osdir.com/ml/libvir-list/2009-07/msg00635.html but I couldn't find any submitted bug about that issue to keep track on it.

Version-Release number of selected component (if applicable):


It can be reproduced as below:
$ cat ovz.xml.4
<domain type='openvz' id='144'>
  <name>144</name>
  <vcpu>1</vcpu>
  <memory>524288</memory>
  <os>
    <type>exe</type>
    <init>/sbin/init</init>
  </os>
  <devices>
    <filesystem type='template'>
      <source name='centos-5-x86'/>
      <target dir='/'/>
    </filesystem>
    <interface type='bridge'>
      <source bridge='br0'/>
    </interface>
  </devices>
</domain>

$ virsh create ovz.xml.4

$ virsh dumpxml 144
<domain type='qemu' id='144'>              
  <name>144</name>                         
  <uuid>fb213571-5674-f9d9-f3a3-3e13d23f350b</uuid>
  <memory>0</memory>                               
  <currentMemory>0</currentMemory>                 
  <vcpu>1</vcpu>                                   
  <os>                                             
    <type>exe</type>                               
    <init>/sbin/init</init>                        
  </os>                                            
  <clock offset='utc'/>                            
  <on_poweroff>destroy</on_poweroff>               
  <on_reboot>destroy</on_reboot>
  <on_crash>destroy</on_crash>
  <devices>
    <filesystem type='template' accessmode='passthrough'>
      <source name='centos-5-x86'/>
      <target dir='/'/>
    </filesystem>
  </devices>
</domain>

whereas <domain type='qemu' id='144'>  has to be <domain type='openvz' id='144'>  
ovzkernel release is 2.6.18-194.26.1.el5.028stab081.1, vzctl-3.0.26-1, OS is CentOS 5.5, libvirt/virsh version is 0.8.8.

Comment 1 Matthias Bolte 2011-06-02 15:43:19 UTC
This has been fixed by commit http://libvirt.org/git/?p=libvirt.git;a=commit;h=d173c12fe01bbc8892f93beaaa9c1ee4da3ff28f that will be part of the next libvirt release 0.9.2.

Comment 2 Damian Nowak 2014-11-07 00:43:19 UTC
Please close, this is already fixed.


Note You need to log in before you can comment on or make changes to this bug.