vkernel manager

Nuno Antunes nuno.antunes at gmail.com
Sat Feb 9 05:11:22 PST 2008


On Feb 9, 2008 7:04 AM, Aggelos Economopoulos <aoiko at cc.ece.ntua.gr> wrote:
> Working with vkernels involves a lot of vnconfig, mount, installworld etc
> commands and there's always the posibility that you'll try to write to
> a filesystem that is in use by a running vkernel. Some months ago I was
> using a set of scripts to help with managing vkernel instances and
> diskimages. I took some time to convert them to a single script and expand
> them a bit (probably adding some bugs in the process). I suppose other
> people have their own scripts; if so, please share them.
>
> You use the script like this:
>
> vkernmgr init -m /mnt/vkern -s 1024 -w /usr/src -k /path/to/vkernel test
> [creates and formats an 1G disk image, installs base system from /usr/src]
>
> vkernmgr run test [extra vkernel flags, if any]
> [ensures no vn device is configured for access to the diskimage, runs
> vkernel]
>
> vkernmgr iw test
> [ensures no vkernel is using the diskimage, installs world from /usr/src]
>
> vkernmgr {start,stop}vn test
> vkernmgr {,u}mount test
> vkernmgr halt test
> vkernmgr kill test
> [These do the obvious; stopvn may need to run umount, mount may need to run
> startvn]
>

Could you also add a:
vkernmgr gdb-run test  ;)

Cheers,
Nuno





More information about the Kernel mailing list