Hello again kbp,
Quote:
Originally Posted by kbp
Try booting the vm in single user runlevel and check free space and logs, you could also mount the virtual disk and check the log files that way.
|
Quote:
Originally Posted by thomas.hedden
Hello kbp,
[snip]
In case anyone else has this problem, I suspect that the problem had something to do with the installation media, that is using an ISO image on the local HD instead of a CD-ROM, or with the sharing of the ISO image or (some part of) the HD where it was located during installation.
[snip]
|
What I wrote above was not the problem. After I thought that I had gotten
the VM working, I started having the same problem again.
I followed kbp's suggestion of mounting the VM. Location of image file is:
/var/lib/libvirt/images/Ubuntu11-32bit.img
# /sbin/losetup -f
/dev/loop0
# /sbin/losetup /dev/loop0 /var/lib/libvirt/images/Ubuntu11-32bit.img
# /sbin/kpartx -av /dev/loop0
add map loop0p1 (253:0): 0 29358080 linear /dev/loop0 2048
add map loop0p5 (253:1): 0 4190208 linear /dev/loop0 29362176
# ls -alF /dev/mapper
brw-rw----. 1 root disk 253, 0 2011-09-28 20:26 loop0p1
brw-rw----. 1 root disk 253, 1 2011-09-28 20:26 loop0p5
# mkdir /tmp/tempUbuntu
# mount /dev/mapper/loop0p1 /tmp/tempUbuntu
# cd /tmp/tempUbuntu
# ls
bin dev initrd.img lost+found opt sbin sys var
boot etc initrd.img.old media proc selinux tmp vmlinuz
cdrom home lib mnt root srv usr vmlinuz.old
At this point, I was able to enter my home directory
and fix the problem. Then, of course I removed all
the temporary stuff:
# cd /
# umount /tmp/tempUbuntu
# /sbin/kpartx -dv /dev/loop1
"Wait! What was the problem?", I hear you ask.
I had made a silly mistake in the .profile and
.kshrc files (I use the Korn shell), and it was
causing a loop in the login shell. I fixed the
problem and now the VM works fine.
Thank you again, kbp, for your suggestions.
Tom[/QUOTE]