Increase VM defaults, restart VM on new workspace, make rebuild writable
This commit is contained in:
parent
9aa72fade7
commit
e766c8466d
7 changed files with 35 additions and 364 deletions
24
bin/qvm-run
24
bin/qvm-run
|
|
@ -183,7 +183,29 @@ main() {
|
|||
newly_added=1
|
||||
fi
|
||||
|
||||
# Ensure VM is running
|
||||
# If this is a newly registered workspace, restart VM to mount it
|
||||
if [[ "$newly_added" -eq 1 ]] && is_vm_running; then
|
||||
log_info "New workspace registered. Restarting VM to mount it..."
|
||||
|
||||
# Path to qvm-stop and qvm-start scripts
|
||||
local script_dir="${QVM_LIB_DIR}/../bin"
|
||||
local qvm_stop="$script_dir/qvm-stop"
|
||||
local qvm_start="$script_dir/qvm-start"
|
||||
|
||||
# Stop the VM
|
||||
if ! "$qvm_stop"; then
|
||||
die "Failed to stop VM"
|
||||
fi
|
||||
|
||||
# Start the VM with new workspace mount
|
||||
if ! "$qvm_start"; then
|
||||
die "Failed to start VM"
|
||||
fi
|
||||
|
||||
log_info "VM restarted with new workspace mounted"
|
||||
fi
|
||||
|
||||
# Ensure VM is running (if it wasn't running before)
|
||||
if ! is_vm_running; then
|
||||
log_info "VM not running, starting..."
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue