Comments (7)
It seems that a few configuration options are missing to support virtio-blk
drives:
CONFIG_PCI=y
CONFIG_VIRTIO_PCI=y
CONFIG_VIRTIO_BLK_SCSI=y
This one might also be needed:
CONFIG_VIRTIO_PCI_LEGACY=y
from lupine-linux.
Same problem here.
@hlef were you able to get it to run on QEMU/KVM? If so, could you comment the line command in here?
from lupine-linux.
Yes, I managed to get it running on QEMU/KVM. You need to use the compressed kernel (Firecracker uses uncompressed kernels).
You can pass the usual ext2 filesystem using -drive
(virtio-blk-pci
, format raw
).
For networking, the usual tap
works.
For the kernel command line, pass something like
root=/dev/vda rw console=ttyS0 init=/guest_start.sh /bin/something
from lupine-linux.
If I understand you correctly, I have to compress the vmlinux
with gzip
in order for QEMU to run the kernel.
So I executed the following command:
sudo qemu-system-x86_64 -nographic -kernel vmlinux.gz \ -drive "file=$FILE.ext2,format=raw,if=none,id=hd0" \ -device virtio-blk-pci,id=blk0,drive=hd0,scsi=off \ -append "console=ttyS0 root=/dev/vda init=/bin/bash"
Sadly, this command gets me stuck in "Booting from ROM..".
As you can tell, I am fairly new to QEMU and thankful for any help.
from lupine-linux.
Oh, no, it's not only a matter of compressing the image, you should use vmlinuz-4.0.0
instead of vmlinux
. :-)
Otherwise it looks mostly okay.
from lupine-linux.
Thank you, the unikernel is up and running now.
Just one little problem: I want to be able to talk to the guest from outside the host. I tried setting up a tap, where the tap and interface are added to a bridge.
And then running Qemu with following two flags:
-netdev tap,id=mynet0,ifname=tap1,script=no
-device virtio-net-pci,netdev=mynet0,id=nic0
Do I have to do some extra stuff besides executing the 'guest_net.sh' to get access to my local network?
from lupine-linux.
No, it should work like that.
from lupine-linux.
Related Issues (20)
- writeup for app perf table HOT 1
- LTO???? HOT 3
- Perf analysis why it's good
- complexity comparison HOT 1
- threading experiment for beyond unikernels HOT 3
- CDF for docker hub stars HOT 2
- Recompute numbers with union config
- discussion of where manifest comes from HOT 1
- threats to validity HOT 2
- reference fig 7 after the intro
- remove fig 14
- rerun perf. experiments with union config
- Missing KML-enabled musl libc HOT 12
- Relating lupine `configs/*` to paper HOT 2
- Reproducing table & figure data HOT 1
- Broken with recent Redis releases HOT 5
- repository docker.io/linuxbuild not found: does not exist or no pull access HOT 1
- KML kernel on Firecracker fails to start HOT 1
- nokml config fails to build when CONFIG_PARAVIRT is set HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lupine-linux.