Browse files

Add compatibility with older versions of QEMU and TMUX

QEMU 3 is fine with relative paths for backing QCOW files.
But QEMU 2 requires absolute paths to work consistently.

Also, TMUX 1.X requires the command to be a single string,
while TMUX 2.X doesn't require this.

This patch address both things.

Note: QEMU 3 would be better, because it would allow to
move the littleboxes directory around without breaking
  • Loading branch information...
jpetazzo committed Nov 26, 2018
1 parent 2119fdd commit 28ceadcbe7d7e3a65920e60df67c9bd88c57f440
Showing with 2 additions and 2 deletions.
  1. +2 −2 lbx
4 lbx
@@ -84,7 +84,7 @@ _cmd_create () {
die "VM $VM already exists."
mkdir vms/$VM
qemu-img create -f qcow2 -b ../../images/$IMAGE/hda vms/$VM/hda
qemu-img create -f qcow2 -b $PWD/images/$IMAGE/hda vms/$VM/hda
cloud-localds --disk-format qcow2 --hostname $VM vms/$VM/hdb cloud-init
_cmd_config $VM
@@ -153,7 +153,7 @@ _cmd_start () {
tmux new-session -d -s "$VM" sh vms/$VM/
tmux new-session -d -s "$VM" "sh vms/$VM/"
info "VM $VM started."

0 comments on commit 28ceadc

Please sign in to comment.