[Libguestfs] building a supermin appliance with febootstrap...

Kashyap Chamarthy kchamart at redhat.com
Wed Aug 17 06:04:54 UTC 2011


Rich,

So, I tried to build the simple supermin app. from your blog. I can confirm that I did get 
to the shell when I invoked qemu-kvm.


I used the standard qemu-kvm cmdline (but appended a serial console). This boots fine.
########################################################
[root at moon appliance-test]# qemu-kvm -kernel kernel -append "console=tty0 
console=ttyS0,115200" -initrd initrd -hda root -nographic
.
.
.
insmod: error inserting 'ideapad-laptop.ko': -1 Unknown symbol in module
insmod: wait: File exists
febootstrap: insmod sym53c8xx.ko
febootstrap: picked /sys/block/sda/dev as root device
febootstrap: creating /dev/root as block special 8:0
febootstrap: mounting new root on /root
febootstrap: chroot
/proc/uptime: No such file or directory
Welcome to my world
bash: cannot set terminal process group (-1): Inappropriate ioctl for device
bash: no job control in this shell
bash-4.2# [    1.103034] input: ImExPS/2 Generic Explorer Mouse as 
/devices/platform/i8042/serio1/input/input2
[    1.334183] Refined TSC clocksource calibration: 1995.006 MHz.

bash-4.2#
########################################################


But when I try to 'exit', I notice a kernel panic. And it just seems to hung there, no 
more budging. I had to do 'ctl a + x' to get out of the serial console.
Is this expected?
########################################################
bash-4.2# exit
exit
[  153.520309] Kernel panic - not syncing: Attempted to kill init!
[  153.523584] Pid: 1, comm: init Not tainted 2.6.40-4.fc15.x86_64 #1
[  153.526990] Call Trace:
[  153.529039]  [<ffffffff814ae2cd>] panic+0x91/0x19c
[  153.531914]  [<ffffffff810580a2>] do_exit+0xb9/0x77b
[  153.534798]  [<ffffffff810589e9>] do_group_exit+0x7a/0xa2
[  153.537835]  [<ffffffff81058a28>] sys_exit_group+0x17/0x17
[  153.540924]  [<ffffffff814bd7c2>] system_call_fastpath+0x16/0x1b
########################################################

-- 
/kashyap




More information about the Libguestfs mailing list