avisi-group / captive Goto Github PK
View Code? Open in Web Editor NEWThe Captive Hypervisor
License: MIT License
The Captive Hypervisor
License: MIT License
Hi,
I've tried to install and run captive following the instructions in README. However, it got stuck when launching it.
Here is some details about how I run it.
FSGSBASE
and NX
Captive got stuck at:
warning: ?: Unable to find parent logging context 'AIO' for 'LinuxAIO'
warning: ?: Unable to find parent logging context 'AIO' for 'POSIXAIO'
debug: ?: KVM read-only mem: 1
loading arm64 kernel to 0x80080000
*** guest starting
lapic: base=0xffff8000fee00000, msr=fee00900, ver=50014
cpu features:
apic fxsr sse sse2 sse3 fma pcid xsave osxsave avx fsgsbase mpx
set xcr0=00000000:00000007
lapic: calibrating
lapic: calibration ticks=11931
lapic: ticks-per-period=10013680
lapic: frequency=1001368000
rdtsc: calibrating
rdtsc: calibration ticks=11931
rdtsc: ticks-per-period=30000855
rdtsc: frequency=3000085500
page-allocator: init: va=0xffff800100000000, pa=0x100000000, zone_size=100000000, block_size=10000000
populating gpm mapping...
initialising soft-mmu strategy gs=0xffff80010afa0000
*** HOST STARTUP INFORMATION
cr0=80050003
cr4=000606b0
block-txln-cache: 0xffff80010af40258
core: register file @ 0xffff80010afc6000
env: preparing bootloader
env: preparing boot core entrypoint=80080000
cpu: starting block-jit cpu execution, PC=0000000080080000
--------------------------------------------------------------------
Here is something about my computer:
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 8
Socket(s): 1
NUMA node(s): 1
Vendor ID: GenuineIntel
CPU family: 6
Model: 158
Model name: Intel(R) Core(TM) i7-9700 CPU @ 3.00GHz
Virtualization: VT-x
Thanks for your help!
Hi,
@tspink I read your recent Usenix paper about Captive. I would like to build and reproduce the setup described in the paper with ARM VM running on a Linux OS running on bare metal using KVM to get a good understanding of your work.
Can you please provide steps to do so using Captive and Gensim?
Thanks!
I've built captive as presented in Readme, tried to use own kernel, and prebuilt one.
Own aarch64 fails with unknown instruction, so I started with presented in Readme kernel.
There are no rootfs binded to repo, so I used way to build as in first issue:
dd if=/dev/zero of=./archlinux.ext2 bs=4M count=1000
mkfs.ext4 ./archlinux.ext2
sudo mount ./archlinux.ext2 check
wget http://os.archlinuxarm.org/os/ArchLinuxARM-aarch64-latest.tar.gz
bsdtar -xpf ArchLinuxARM-aarch64-latest.tar.gz -C ./check
sudo chmod a+w check
and run as
./bin/captive --block-dev-file ./archlinux.ext2 \
--engine arch/arm64.arch \
--device-tree ./captive-platform.dtb \
--kernel ./arm64-kernel-image \
--platform virt
So the kernel ran well. There is no init file, so I made link to ./sbin/init but I receive next error:
[ 2.400000] Run /init as init process
*** unknown instruction: 6e22a446
Looks like, I cant run aarch64 executable. What I am doing wrong?
The repo does not have a license it seems. It might be useful to add one.
hi! Tom,
I have successfully run captive, thank you very much for your previous help.
But I seem to have encountered a bug in the process of running. When I don't operate the system for a while, this bug seems to appear:
SGIR 2000005
Do you know anything about this?
thanks!
alax
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.