vmexec-exec(1)

πŸ“¦ version 0.8.1, in arch rolling

πŸ’… NAME

okay so bestie, let me introduce you to vmexec-exec β€” it runs a command in an existing virtual machine πŸ–₯️✨. That's it, that's the whole vibe. You've already got a VM up and running, and you wanna poke something inside it. This is the girl for the job.


🌸 SYNOPSIS

vmexec exec [-e|--env] [-w|--workdir] [-s|--ssh-timeout]
[-i|--interactive] [-t|--tty] [-h|--help] <VMID> [ARGS]

like, that's the whole spell you're casting πŸ’… β€” a pile of flags, your <VMID>, and then whatever [ARGS] you want to actually run in there.


πŸ¦‹ DESCRIPTION

Run a command in an existing virtual machine. That's THE description, no notes, she said what she said πŸ’– (the manual page itself is literally called vmexec-exec, section 1 of the General Commands Manual β€” so you know it's legit).


✨ OPTIONS ✨

  • -e, --env <ENV> β€” set environment variables for the process inside the virtual machine 🌈 You can pass this bad boy multiple times β€” stack 'em up, one variable per flag. Expected format: KEY=VALUE (do not get cute with it, that's the format, periodt).
  • -w, --workdir <WORKDIR> β€” the working directory inside the virtual machine πŸŽ€ ngl the default working directory for running binaries inside a VM depends on the image. Most commonly, it'll be /root. So like, don't @ her if it's somewhere else, it's giving image-dependent energy πŸ™ˆ
  • -s, --ssh-timeout <SSH_TIMEOUT> β€” SSH connection timeout 🌸 [default: 20] She'll try for this long (in seconds) to connect to the virtual machine's SSH server. That's the whole assignment. Tick tock ⏳
  • -i, --interactive <INTERACTIVE> β€” make STDIN available to the virtual machine's process πŸ’– [default: auto] If 'auto', this will try to read from stdin if it is available, and do nothing when stdin is not available. If 'always', this will try to read from stdin and abort when stdin is not available. No stdin, no service 😭 Possible values:
    • always β€” forward stdin and fail if it can't be opened (all or nothing, main character energy πŸ‘‘)
    • never β€” don't forward stdin
    • auto β€” forward stdin if it can be opened, otherwise carry on without it (the chill one 🧚)
  • -t, --tty <TTY> β€” allocate a pseudo-TTY for the virtual machine πŸ¦‹ [default: auto] If 'auto', this will be enabled in case vmexec is run from an interactive terminal. Yes she's checking the vibe first. Possible values:
    • always β€” allocate a pseudo-TTY
    • never β€” don't allocate a pseudo-TTY
    • auto β€” allocate a pseudo-TTY if stdout is a terminal
  • -h, --help β€” print help (see a summary with '-h') 🫢 so helpful of her honestly
  • <VMID> β€” identifier of a running virtual machine ⭐ note the running part bestie, she's not out here starting VMs for you πŸ’€
  • [ARGS] β€” arguments to run in the virtual machine πŸ”₯ this is the whole point, this is the moment, this is the actual command
heads up babes: <VMID> has to be a running virtual machine, and -h gives you the full help while '-h' gives you the summary. Also -e stacks, so bring as many env vars as your heart desires πŸ’œ

πŸŽ€ see you, bestie

and that's the page!! footer's giving <pink>exec</pink> on the left and <pink>vmexec-exec(1)</pink> on the right of the General Commands Manual page β€” no version number, no date, just vibes and a section number. slay, honestly πŸ’…βœ¨πŸ¦‹

πŸ“¦ where this page comes from