You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can't seem to get any output with virtme-run's --script-exec or --script-sh flags. Without them I get kernel console message in my terminal as expected, but whenever I use either of these flags I get no output from either the guest kernel or my script -- or even any evidence that my script runs at all, actually. I put an infinite loop in a bash script (while :; do :; done) and passed it to --script-exec, hoping to see qemu continue to peg the CPU beyond a normal guest-boot duration, but its CPU consumption quieted down after about the same amount of time it does when booting into an interactive shell, so it seems like the script isn't getting executed.
I've tried both the cat | prefix mentioned in the --help output and < /dev/null to redirect stdin, but haven't seen any difference in behavior either way. (Using the --force-initramfs flag also hasn't made any difference, if it's relevant.)
I can't seem to get any output with
virtme-run
's--script-exec
or--script-sh
flags. Without them I get kernel console message in my terminal as expected, but whenever I use either of these flags I get no output from either the guest kernel or my script -- or even any evidence that my script runs at all, actually. I put an infinite loop in a bash script (while :; do :; done
) and passed it to--script-exec
, hoping to see qemu continue to peg the CPU beyond a normal guest-boot duration, but its CPU consumption quieted down after about the same amount of time it does when booting into an interactive shell, so it seems like the script isn't getting executed.I've tried both the
cat |
prefix mentioned in the--help
output and< /dev/null
to redirect stdin, but haven't seen any difference in behavior either way. (Using the--force-initramfs
flag also hasn't made any difference, if it's relevant.)Running with
--show-command
prints:and the contents of
/home/zev/test-script.sh
are:This is with python 3.5.0 and qemu 2.7.0, on a 4.7.0 kernel.
The text was updated successfully, but these errors were encountered: