Public bug reported:

I tried to create an KVM Ubuntu 11.10 guest running on an Ubuntu 11.10
host by running:

    sudo vmbuilder kvm ubuntu --verbose --config new_vm.cfg

My new_vm.cfg:

    [DEFAULT]
    arch=amd64
    cpus=2
    mem=4096
    ip=192.168.1.10
    mask=255.255.255.0
    net=192.168.0.0
    bcast=192.168.1.255
    gw=192.168.1.1
    dns=192.168.1.1
    bridge=br0
    user=username
    name=realname
    pass=password
    part=/home/chris/vmbuilder.partition
    tmpfs=- 
    firstboot=/tmp/firstboot.sh
    firstlogin=/tmp/firstlogin.sh
    hostname=new_vm
    
    [ubuntu]
    suite=oneiric
    flavour=server
    addpkg=openssh-server, apache2, apache2-mpm-prefork, apache2-utils, 
apache2.2-common, dbconfig-common, wwwconfig-common, postgresql-9.1, 
unattended-upgrades, acpid, ntp
    
    [kvm]
    libvirt=qemu:///system

My vmbuilder.partition:

    root 8000
    swap 4000
    ---
    /var 120000

My firstboot.sh:

    #!/bin/bash
    passwd -e username
    rm /etc/ssh/ssh_host*key*
    dpkg-reconfigure -fnoninteractive -pcritical openssh-server

My firstlogin.sh:

    #!/bin/bash
    sudo dpkg-reconfigure console-setup

The command seemed to complete without error, so then I ran:

    sudo virsh --connect qemu:///system start new_vm

At this point, KVM consumes 100% CPU, but the VM doesn't seem to boot. I
used virt-manager to connect to the VM's console, and all it says is
"Booting from hard disk" and it doesn't seem to proceed. I waited 30
minutes, but nothing changes.

I tried with flavour=virtual, but the result is the same.

ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: python-vm-builder 0.12.4-0ubuntu0.2
ProcVersionSignature: Ubuntu 2.6.32-38.83-generic 2.6.32.52+drm33.21
Uname: Linux 2.6.32-38-generic x86_64
NonfreeKernelModules: wl nvidia
Architecture: amd64
Date: Sat Mar  3 21:01:25 2012
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release amd64 (20091027)
PackageArchitecture: all
ProcEnviron:
 PATH=(custom, user)
 LANG=en_US.utf8
 SHELL=/bin/bash
SourcePackage: vm-builder

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


** Tags: amd64 apport-bug lucid

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to vm-builder in Ubuntu.
https://bugs.launchpad.net/bugs/946022

Title:
  KVM Guest Hangs at Booting from hard disk

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/vm-builder/+bug/946022/+subscriptions

-- 
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