-
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Oh! No its working, I just have to interact with it via serial. |
Beta Was this translation helpful? Give feedback.
-
Here are some changes for your build-state.js script: @@ -28,7 +28,7 @@ var emulator = new V86({
vga_memory_size: 8 * 1024 * 1024,
// network_relay_url: "ws://localhost:8081",
bzimage_initrd_from_filesystem: true,
- cmdline: "rw init=/bin/sh root=host9p rootfstype=9p rootflags=trans=virtio,cache=loose modules=virtio_pci console=ttyS0", //spectre_v2=off pti=off tsc=reliable
+ cmdline: "rw root=host9p rootfstype=9p rootflags=trans=virtio,cache=loose modules=virtio_pci console=ttyS0 console=tty1", //spectre_v2=off pti=off tsc=reliable
filesystem: {
basefs: path.join(V86_ROOT, "/images/alpine-fs.json"),
baseurl: path.join(V86_ROOT, "/images/alpine-rootfs-flat/"), As I understand, in your case console is only enabled on serial port ( v86/tools/docker/alpine/Dockerfile Line 17 in 9286ca8 Also I changed init from @@ -49,7 +49,7 @@ emulator.add_listener("serial0-output-byte", function(byte)
serial_text += c;
- if(!booted && serial_text.endsWith("~ # "))
+ if(!booted && serial_text.endsWith(":~# "))
{
console.error("\nBooted in %d", (Date.now() - boot_start) / 1000);
booted = true; ...or use a examples/arch.html, change options for Alpine and you can save a state using your browser |
Beta Was this translation helpful? Give feedback.
Oh! No its working, I just have to interact with it via serial.