Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Runing virtme in Docker #69

Open
facku24 opened this issue Feb 10, 2021 · 2 comments
Open

Runing virtme in Docker #69

facku24 opened this issue Feb 10, 2021 · 2 comments

Comments

@facku24
Copy link

facku24 commented Feb 10, 2021

Hi guys! I'm new in virtme. I'm starting working with drivers and want to start virtme to try them into a container of Docker.

But I face this problem:

[    1.982400] sr 1:0:0:0: [sr0] scsi3-mmc drive: 4x/4x cd/rw xa/form2 tray
[    1.983271] cdrom: Uniform CD-ROM driver Revision: 3.20
[    2.003071] sr 1:0:0:0: Attached scsi generic sg0 type 5
[    2.007171] md: Skipping autodetection of RAID arrays. (raid=autodetect will force)
[    2.012089] VFS: Cannot open root device "(null)" or unknown-block(0,0): error -19
[    2.012675] Please append a correct "root=" boot option; here are the available partitions:
[    2.013856] 0b00         1048575 sr0
[    2.013927]  driver: sr
[    2.015327] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[    2.015982] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 5.11.0-rc7+ #1
[    2.016359] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.13.0-1ubuntu1.1 04/01/2014
[    2.017063] Call Trace:
[    2.018535]  dump_stack+0x57/0x6a
[    2.018920]  panic+0xf6/0x2b7
[    2.019133]  mount_block_root+0x196/0x21a
[    2.019446]  mount_root+0xec/0x10a
[    2.019624]  prepare_namespace+0x136/0x165
[    2.019868]  kernel_init_freeable+0x1c8/0x1d3
[    2.020133]  ? rest_init+0xa4/0xa4
[    2.020323]  kernel_init+0x5/0xfc
[    2.020509]  ret_from_fork+0x22/0x30
[    2.021730] Kernel Offset: 0x30a00000 from 0xffffffff81000000 (relocation range: 0xffffffff80000000-0xffffffffbfffffff)
[    2.022684] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0) ]---

Seems like virtme can't find /.

Is there something that I'm missing in the configuration? Is virtme supported for Docker?

Thanks!

@lmb
Copy link
Contributor

lmb commented May 21, 2021

Most likely the kernel you are trying to boot doesn't have the correct configuration. See https://github.com/amluto/virtme#how-to-use-virtme

@marcosps
Copy link
Contributor

marcosps commented Jun 9, 2022

@facku24 what @lmb said makes sense. Can you run virtme outside of docker? can you past the arguments you use with virtme?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants