vmbuilder crashes with libvirtError in defineXML() when os type 'hvm' not available with kvm

Bug #727713 reported by pklaus
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
vm-builder (Ubuntu)
Triaged
Low
Unassigned

Bug Description

I tried to set up a kvm virtual machine while the host itself is a virtual machine (Ubuntu 11.04 running on Mac OS X using Parallels 6). It seems to me, that kvm cannot work in that setup but vmbuilder starts to set up the machine and fails in the end with this backtrace. I think the error should be caught.

ProblemType: Crash
DistroRelease: Ubuntu 11.04
Package: python-vm-builder 0.12.4+bzr462-0ubuntu1
ProcVersionSignature: Ubuntu 2.6.38-5.32-generic 2.6.38-rc6
Uname: Linux 2.6.38-5-generic x86_64
Architecture: amd64
Date: Wed Mar 2 11:09:47 2011
ExecutablePath: /usr/bin/vmbuilder
InterpreterPath: /usr/bin/python2.7
PackageArchitecture: all
ProcCmdline: /usr/bin/python /usr/bin/vmbuilder kvm hostname --hostname myvm --suite natty --addpkg vim-nox --arch amd64 --mem 256 --libvirt qemu:///system
ProcEnviron:
 PATH=(custom, no user)
 LANG=en_US.UTF-8
 LANGUAGE=en_US:en
 SHELL=/bin/bash
PythonArgs: ['/usr/bin/vmbuilder', 'kvm', 'hostname', '--hostname', 'myvm', '--suite', 'natty', '--addpkg', 'vim-nox', '--arch', 'amd64', '--mem', '256', '--libvirt', 'qemu:///system']
SourcePackage: vm-builder
Title: vmbuilder crashed with libvirtError in defineXML(): internal error no supported architecture for os type 'hvm'
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups:

Revision history for this message
pklaus (pklaus) wrote :
tags: removed: need-duplicate-check
pklaus (pklaus)
visibility: private → public
Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

Thanks for submitting this bug. Agreed, it should be caught.

Changed in vm-builder (Ubuntu):
status: New → Confirmed
importance: Undecided → Low
status: Confirmed → Triaged
Revision history for this message
Sergey Svishchev (svs) wrote :

KVM does support nesting, though.

Revision history for this message
pklaus (pklaus) wrote :

Yes. This is plausible. The user, however, should be given that answer when trying to do so instead of being given the backtrace.

Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

@pklaus

thanks. At this point, replacing informative python backtraces with pretty error messages is not a goal, but if you'd like to provide straightforward patches I'll apply them.

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.