Replies: 4 comments 5 replies
-
Hi @aledbf . Thanks for reaching out to us. |
Beta Was this translation helpful? Give feedback.
-
@aledbf Thanks for sharing. Another question, do you use a |
Beta Was this translation helpful? Give feedback.
-
Hi @aledbf , I have been working on a repro for this issue, but I couldn't reproduce in our integration tests. Could you point out what do you do differently?? from pathlib import Path
import pytest
def test_reboot_ext4_is_clean(microvm_factory, guest_kernel_linux_5_10, rootfs_rw):
"""Since Firecracker cannot reboot, we test it by running in 2 VMs:
vm1: boot, create a file and reboot (which kills Firecracker)
vm2: boot using vm1 ext4 rootfs, and check for the file
"""
filename = "/I_was_here"
vm = microvm_factory.build(guest_kernel_linux_5_10, rootfs_rw, monitor_memory=False)
vm.spawn()
vm.basic_config()
vm.add_net_iface()
vm.start()
res = vm.ssh.run(f"[ ! -e {filename} ] && touch {filename}")
print(res)
res = vm.ssh.run("reboot")
print(res)
vm2 = microvm_factory.build(guest_kernel_linux_5_10, rootfs_rw, monitor_memory=False)
vm2.rootfs_file = vm.rootfs_file
vm2.spawn()
vm2.basic_config()
vm2.add_net_iface()
vm2.start()
res = vm2.ssh.run(f"stat {filename}")
print(res)
assert res[0] == 0 Can be saved as ./tools/devtool test_debug test_repro.py |
Beta Was this translation helpful? Give feedback.
-
Hello @aledbf , if you're still seeing this issue, we'd appreciate it if you could answer @pb8o asked in the previous thread. Thanks! |
Beta Was this translation helpful? Give feedback.
-
Hello there! I have noticed some unexpected behavior during the reboot process. I have an ext4 disk image and without running
sync
before rebooting, I am experiencing some issues with the disk. Specifically, I am seeing detected issues with e2fsck and/or the disk being in an unexpected state with changes in files.I am not sure if this is an expected behavior, as I have not found any references to it. However, I did come across the old Kata containers agent that seems to do that.
Any pointers on what I might be doing wrong?
Thanks!
Guest: Ubuntu 22.04/23.10
firecracker: 1.4.1/1.5.0
kernel parameters:
console=ttyS0 reboot=k panic=1 pci=off random.trust_cpu=on acpi=off
Beta Was this translation helpful? Give feedback.
All reactions