Public bug reported:

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=/home/toto/.ssh/id_dsa.pub 
--ssh-user-key=/home/toto/.ssh/id_dsa.pub --libvirt=qemu:///system

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/vmbuilder3jZa_6/disk0.img
2009-10-07 09:56:33,278 INFO    : Adding partition table to disk image: 
/tmp/vmbuilder3jZa_6/disk0.img
2009-10-07 09:56:33,340 INFO    : Adding type 1 partition to disk image: 
/tmp/vmbuilder3jZa_6/disk0.img
2009-10-07 09:56:33,389 INFO    : Adding type 3 partition to disk image: 
/tmp/vmbuilder3jZa_6/disk0.img
2009-10-07 09:56:33,403 INFO    : [0] ../../libparted/filesys.c:147 
(ped_file_system_type_get): File system alias linux-swap(new) is deprecated
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/loop0p2: warning: don't 
erase bootbits sectors                                           
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.img-2.6.28-15-server                                               
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/vmbuilder3jZa_6/disk0.img to 
qcow2, format test-t1/disk0.qcow2                               
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/ubuntu-vm-builder", line 28, in <module>                       
                                                               
    VMBuilder.run()                                                             
                                                               
  File "/usr/lib/python2.6/dist-packages/VMBuilder/__init__.py", line 65, in 
run                                                               
    frontend.run()                                                              
                                                               
  File "/usr/lib/python2.6/dist-packages/VMBuilder/plugins/cli/__init__.py", 
line 68, in run                                                   
    vm.create()                                                                 
                                                               
  File "/usr/lib/python2.6/dist-packages/VMBuilder/vm.py", line 490, in create  
                                                               
    self.deploy()                                                               
                                                               
  File "/usr/lib/python2.6/dist-packages/VMBuilder/vm.py", line 192, in deploy  
                                                               
    if getattr(plugin, 'deploy')():                                             
                                                               
  File 
"/usr/lib/python2.6/dist-packages/VMBuilder/plugins/libvirt/__init__.py", line 
64, in deploy                                            
    self.conn.defineXML(vmxml)                                                  
                                                               
  File "/usr/lib/python2.6/dist-packages/libvirt.py", line 1107, in defineXML   
                                                               
    if ret is None:raise libvirtError('virDomainDefineXML() failed', conn=self) 
                                                               
libvirt.libvirtError: internal error no supported architecture for os type 
'hvm'                                                               

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
PackageArchitecture: all
ProcEnviron:
 LANGUAGE=
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-12.39-generic
SourcePackage: vm-builder
Uname: Linux 2.6.31-12-generic x86_64

** Affects: vm-builder (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug

-- 
libvirt.libvirtError: internal error no supported architecture for os type 'hvm'
https://bugs.launchpad.net/bugs/445253
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to vm-builder in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs

Reply via email to