virt-install fails because missing 'guest' node in the xml

Bug #402784 reported by Mazt
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
virtinst (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

Binary package hint: python-virtinst

1)
Ubuntu version : 9.04

2)
Package release : 0.400.1-2ubuntu2

3)
when trying to install a new virtual machine using virt-install using all the good options, I hope it works properly

4)
when trying to install a new virtual machine I have the following error :
virt-install -n foo -r 512 -f foo.vm -s 400 -c iso/jeos.iso --accelerate --connect=qemu:///system --vnc --noautoconsole -v
ERROR Unsupported virtualization type 'hvm'

It seems there is no guest node (never append any Guest in Capabilities.parseXML) so the Capabilities.guestForOSType return a None object !
After adding some print commands in the source code I see that conn.getCapabilities return the following xml :
<capabilities>
  <host>
    <cpu>
      <arch>x86_64</arch>
    </cpu>
  </host>
</capabilities>

So the Capabilities object only have the host property and no guests...

FINALLY :
- is the error message is correct (if guest is a None object it's not because of the virtualization type) ?
- is it possible to raise an error if no guest is found ?
- anything else ????

I had been able to reproduce this error on multiple servers for both ubuntu and fedora.

Revision history for this message
Marc Deslauriers (mdeslaur) wrote :

Thanks for reporting this issue. Are you still able to reproduce this with a current version of Ubuntu, such as 10.10 (maverick)?

Changed in virtinst (Ubuntu):
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for virtinst (Ubuntu) because there has been no activity for 60 days.]

Changed in virtinst (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.