-
Notifications
You must be signed in to change notification settings - Fork 25
Update instructions for testing in QEMU #189
Comments
Looks like the readme has been updated. Can we close the issue? |
I don't think it's ready to close yet. We made a switch this summer from copying the ISO to |
When I was using syslinux, i found that my usb stuck was under /dev/sdb1 instead of /dev/sda. /sda was my VM. That is probably just because I had more devices, though. |
Do you mean that there were multiple USB sticks plugged in? Like one USB stick had syslinux and the u-root stuff, and the other had files you wanted to access? |
Nope, just had my VM and my USB stick. Then using QEMU, I had to use /sdb1. Can you confirm that your current USB stick partition is /sda and not /sdb? |
On my main Linux system, my USB stick is at /dev/sdb. What parameters are you using when you boot up QEMU? |
It's been a few months since I've tried it. I can find my commands |
I used @orangecms shell program to launch QEMU. run-webboot.sh |
With the See also https://wiki.gentoo.org/wiki/QEMU/Options#Hard_drive |
I don't quite know. I ran your shell script, then selected "b" from the graphics option and then i was able to use webboot. Bare in mind, this was probably 3 months ago 😀 |
Ok, good points about the shell script and AHCI. I think I got it working with this command. Once QEMU started, I located the USB stick in u-root, and was able to use Webboot to boot into Tinycore. qemu-system-x86_64 -m 2G -drive id=disk,file=/dev/sdb,if=none -device ahci,id=ahci -device ide-drive,drive=disk,bus=ahci.0 Except there's a few issues:
|
So /dev/sdb worked for you? @orangecms will be able to give you a far better explanation about his shell script, but here is probably the most important line for wifi configuration: 'netdev user,id=network0 -device rtl8139,netdev=network0' |
Is your feature request related to a problem? Please describe.
The README instructions for testing in QEMU are currently out of date. We need to figure out the arguments for QEMU to locate the USB stick so that we can use the ISO cache.
Describe the solution you'd like
When we start up
webboot
in QEMU, we should be able to locate the USB stick containing the ISO cache.Describe alternatives you've considered
One configuration we tried was:
This allowed us to boot into the kernel and initrd on the USB stick, but we couldn't access the USB stick once we booted into the u-root environment.
Additional context
N/A
The text was updated successfully, but these errors were encountered: