Skip to content

Commit e5d6d3b

Browse files
authored
enh: allow user to reboot from inside the VM (#790)
JIRA: ALEPH-472 Important note: Previously --no-reboot was used so if the BIOS failed to boot the VM because of for example an invalid disk image provided by the user then the QEMU process and the controller would halt. The new behaviour is that the VM will reboot indefinetly. But it should be catched by the wait for init procedure that will test by ping. This new modification was necessary because the GPU VM need a reboot for their setup. And generaly user would be confused when rebooted VM would not restart. The --no-reboot flag was kept for ConfidentialVM as confidential VM do not support reboot anyway
1 parent ba72293 commit e5d6d3b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/aleph/vm/hypervisors/qemu/qemuvm.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,8 @@ async def start(
9393
# To debug you can pass gtk or curses instead
9494
"-display",
9595
"none",
96-
"--no-reboot", # Rebooting from inside the VM shuts down the machine
96+
# "--no-reboot", # Rebooting from inside the VM shuts down the machine
97+
# Disable --no-reboot so user can reboot from inside the VM. see ALEPH-472
9798
# Listen for commands on this socket
9899
"-monitor",
99100
f"unix:{self.monitor_socket_path},server,nowait",

0 commit comments

Comments
 (0)