libvirt.libvirtError: internal error no supported architecture for os type 'hvm'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
vm-builder (Ubuntu) |
Fix Committed
|
Undecided
|
devendra |
Bug Description
vm-builder 0.11.1-0ubuntu1
This is on kubuntu karmic intel x86_64 (fresh install using alpha6 alternate CD):
Description: Ubuntu karmic (development branch)
Release: 9.10
the problem is that creating a new VM image fails when registering new VM into libvirt.
Steps to reproduce: build a new VM using the following command:
sudo ubuntu-vm-builder kvm ${release} --tmpfs=- -d test-t1 --domain=test --hostname=t1 --user=toto --ssh-key=
where release is set to one of intrepid, jaunty, karmic.
Here is the output (for release set to jaunty):
2009-10-07 09:56:33,257 INFO : Creating disk image: /tmp/vmbuilder3
2009-10-07 09:56:33,278 INFO : Adding partition table to disk image: /tmp/vmbuilder3
2009-10-07 09:56:33,340 INFO : Adding type 1 partition to disk image: /tmp/vmbuilder3
2009-10-07 09:56:33,389 INFO : Adding type 3 partition to disk image: /tmp/vmbuilder3
2009-10-07 09:56:33,403 INFO : [0] ../../libparted
2009-10-07 09:56:33,439 INFO : Creating loop devices corresponding to the created partitions
2009-10-07 09:56:33,469 INFO : Creating file systems
2009-10-07 09:56:33,489 INFO : mke2fs 1.41.9 (22-Aug-2009)
2009-10-07 09:56:33,839 INFO : mkswap: /dev/mapper/
2009-10-07 09:56:33,840 INFO : on whole disk. Use -f to force.
2009-10-07 09:56:33,853 INFO : Mounting target filesystems
2009-10-07 09:56:33,861 INFO : Installing guest operating system. This might take some time...
2009-10-07 10:00:37,529 INFO : Can not write log, openpty() failed (/dev/pts not mounted?)
2009-10-07 10:00:37,657 INFO : Moving old data out of the way
2009-10-07 10:00:38,268 INFO : Can not write log, openpty() failed (/dev/pts not mounted?)
2009-10-07 10:00:39,042 INFO : Searching for GRUB installation directory ... found: /boot/grub
2009-10-07 10:00:39,086 INFO : Searching for default file ... Generating /boot/grub/default file and setting the default boot entry to 0
2009-10-07 10:00:39,087 INFO : Searching for GRUB installation directory ... found: /boot/grub
2009-10-07 10:00:39,090 INFO : Testing for an existing GRUB menu.lst file ...
2009-10-07 10:00:39,091 INFO :
2009-10-07 10:00:39,091 INFO : Could not find /boot/grub/menu.lst file.
2009-10-07 10:00:39,091 INFO : Generating /boot/grub/menu.lst
2009-10-07 10:00:39,134 INFO : Searching for splash image ... none found, skipping ...
2009-10-07 10:00:39,246 INFO : grep: /boot/config*: No such file or directory
2009-10-07 10:00:39,293 INFO : Updating /boot/grub/menu.lst ... done
2009-10-07 10:00:39,304 INFO :
2009-10-07 10:00:39,480 INFO : Searching for GRUB installation directory ... found: /boot/grub
2009-10-07 10:00:39,520 INFO : Searching for default file ... found: /boot/grub/default
2009-10-07 10:00:39,521 INFO : Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst
2009-10-07 10:00:39,604 INFO : Searching for splash image ... none found, skipping ...
2009-10-07 10:00:39,630 INFO : grep: /boot/config*: No such file or directory
2009-10-07 10:00:39,682 INFO : Updating /boot/grub/menu.lst ... done
2009-10-07 10:00:39,682 INFO :
2009-10-07 10:00:39,739 INFO : Searching for GRUB installation directory ... found: /boot/grub
2009-10-07 10:01:10,028 INFO :
2009-10-07 10:01:10,028 INFO : Current default timezone: 'Etc/UTC'
2009-10-07 10:01:10,030 INFO : Local time is now: Wed Oct 7 08:01:10 UTC 2009.
2009-10-07 10:01:10,031 INFO : Universal Time is now: Wed Oct 7 08:01:10 UTC 2009.
2009-10-07 10:01:10,031 INFO :
2009-10-07 10:01:12,588 INFO : update-initramfs: Generating /boot/initrd.
2009-10-07 10:02:14,262 INFO : Copying to disk images
2009-10-07 10:02:20,461 INFO : Installing bootloader
2009-10-07 10:02:27,581 INFO : Unmounting target filesystem
2009-10-07 10:02:30,790 INFO : Converting /tmp/vmbuilder3
libvir: Domain Config error : internal error no supported architecture for os type 'hvm'
2009-10-07 10:02:41,262 INFO : Cleaning up
Traceback (most recent call last):
File "/usr/bin/
VMBuilder.run()
File "/usr/lib/
frontend.run()
File "/usr/lib/
vm.create()
File "/usr/lib/
self.deploy()
File "/usr/lib/
if getattr(plugin, 'deploy')():
File "/usr/lib/
self.
File "/usr/lib/
if ret is None:raise libvirtError(
libvirt.
stack trace is the same when trying to build intrepid or karmic VMs
ProblemType: Bug
Architecture: amd64
Date: Wed Oct 7 10:17:55 2009
DistroRelease: Ubuntu 9.10
Package: ubuntu-vm-builder 0.11.1-0ubuntu1
PackageArchitec
ProcEnviron:
LANGUAGE=
PATH=(custom, user)
LANG=en_US.UTF-8
SHELL=/bin/bash
ProcVersionSign
SourcePackage: vm-builder
Uname: Linux 2.6.31-12-generic x86_64
Changed in vm-builder (Ubuntu): | |
assignee: | Itraju Devendra Babu (itraju-babu) → nobody |
Changed in vm-builder (Ubuntu): | |
assignee: | nobody → devendra (devedevendra) |
status: | Confirmed → Fix Committed |
virtualization was disabled in the BIOS (default settings):
kernel: [ 476.938973] kvm: disabled by bios
I think this is what caused the problem, closing...