How to run virt-manager(1) on Windows
-------------------------------------
~~~ for cmd ~~~
C:\cygwin64\bin\sh -lc ^"startxwin /bin/ssh -Y virbr0.venus.daz.cat. \''sh -lc '\''\'\'\''eval $^(dbus-launch --sh-syntax^); virt-manager --no-fork; kill $DBUS_SESSION_BUS_PID'\''\'\'\'\'^"
~~~ for other contexts ~~~
C:\cygwin64\bin\run sh -lc "\"startxwin /bin/ssh -Y virbr0.venus.daz.cat. \''sh -lc '\''\'\'\''eval $(dbus-launch --sh-syntax); virt-manager --no-fork; kill $DBUS_SESSION_BUS_PID'\''\'\'\'\'\""
• these commands require Cygwin, but are otherwise as portable as I could make them
• they don’t depend on any particular shells, working directories, or unusual server state
• they start a dedicated X server which quits cleanly, and integrates with the window manager
• replace C:\cygwin64 and virbr0.venus.daz.cat. with values that are appropriate for your guest
• other contexts include shortcuts, the Run window, and most places that aren’t fancy interpreters
• thanks to Øyvind Hvidsten for their approach to making ssh(1) quit cleanly when running virt-manager(1):
http://blog.dhampir.no/content/how-to-prevent-ssh-x-from-hanging-on-exit-when-dbus-is-used
Comments (0)
HTTPSSSH
You can clone a snippet to your computer for local editing.
Learn more.