DragonFly kernel List (threaded) for 2008-02
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]
Re: vkernel manager
On Feb 9, 2008 7:04 AM, Aggelos Economopoulos <aoiko@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
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]