KVM Guest Hangs at Booting from hard disk
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
vm-builder (Ubuntu) |
Confirmed
|
High
|
Unassigned |
Bug Description
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=
net=192.168.0.0
bcast=
gw=192.168.1.1
dns=192.168.1.1
bridge=br0
user=username
name=realname
pass=password
part=
tmpfs=-
firstboot=
firstlogin=
hostname=new_vm
[ubuntu]
suite=oneiric
flavour=server
addpkg=
[kvm]
libvirt=
My vmbuilder.
root 8000
swap 4000
---
/var 120000
My firstboot.sh:
#!/bin/bash
passwd -e username
rm /etc/ssh/
dpkg-
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
ProcVersionSign
Uname: Linux 2.6.32-38-generic x86_64
NonfreeKernelMo
Architecture: amd64
Date: Sat Mar 3 21:01:25 2012
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release amd64 (20091027)
PackageArchitec
ProcEnviron:
PATH=(custom, user)
LANG=en_US.utf8
SHELL=/bin/bash
SourcePackage: vm-builder
Changed in vm-builder (Ubuntu): | |
importance: | Undecided → High |
I based by scripts on the instructions at https:/ /help.ubuntu. com/community/ JeOSVMBuilder.