[Lguest] Problem booting up Lguest

Vivek Thakkar vivekt.vivek at gmail.com
Mon Jun 26 18:10:06 AEST 2017


Hi,

I am trying out lguest for the first time and I have run in to some issue
while booting.
Here are the steps I followed.

a) Installed 32 bit ubuntu distribution 16.04 (this doesn't have the LGUEST
config options enabled)
b) Built ubuntu kernel sources with LGUEST support and installed kernel
image
c) Replaced the kernel from a) by b) by editing grub config.  Successfully
booted ubuntu with self made kernel
d) modprobe lg.ko
e) Created a rootfile image and installed same OS as is available with
ubuntu 16.04 distribution from step a). I used qemu-system-i386 to install
the OS image
f) At the end, I execute the following command to boot up the guest OS
using qemu but I get the following error:

vthakkar at ubuntu:~/ubuntu-xenial$ sudo ./tools/lguest/lguest 512 vmlinux -v
--tunnet=192.168.19.1 --block=/home/vthakkar/rootfile.img
root=/dev/vda[sudo] password for vthakkar:
device 2: tun tap1: 192.168.19.1
device 3: virtblock 20971520 sectors
Guest base is at 0x9745d000
Section 0: size 11083776 addr 0x1000000
Section 1: size 3715072 addr 0x1a92000
Guest: 0x9745d000 - 0xb745d000 (0x20000000, MMIO 0x20100180)
Emulating instruction at 0x1b589f2
lguest: Reinjecting trap 13 for fault at 0x1b589f2: Invalid argument
Resetting device console
Resetting device net
Resetting device block

Can anyone tell why I am getting this error?

Regards,
-Vivek
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ozlabs.org/pipermail/lguest/attachments/20170626/b93318e7/attachment.html>


More information about the Lguest mailing list