mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-08 05:26:58 +02:00
fix(image_to_vm): cleanup qemu-kvm output
- have the command use -curses to save people hassle on ssh sessions - forward ssh too - clean formatting up a bit
This commit is contained in:
parent
6bb635d51c
commit
b274a41f11
@ -241,7 +241,9 @@ fi
|
|||||||
|
|
||||||
if [ "${FLAGS_format}" == "qemu" ]; then
|
if [ "${FLAGS_format}" == "qemu" ]; then
|
||||||
echo "If you have qemu-kvm installed, you can start the image by:"
|
echo "If you have qemu-kvm installed, you can start the image by:"
|
||||||
echo "sudo kvm -m ${FLAGS_mem} -vga cirrus -pidfile /tmp/kvm.pid" \
|
echo "qemu-kvm -m ${FLAGS_mem} -curses -pidfile /tmp/kvm.pid -net nic,model=virtio \\"
|
||||||
"-net nic,model=virtio -net user,hostfwd=tcp::8080-:8080,hostfwd=::8000-:8000 \\"
|
echo " -net user,hostfwd=tcp::2222-:22,hostfwd=tcp::8080-:8080,hostfwd=::8000-:8000 \\"
|
||||||
echo " -hda ${FLAGS_to}/${DEFAULT_QEMU_IMAGE}"
|
echo " -hda ${FLAGS_to}/${DEFAULT_QEMU_IMAGE}"
|
||||||
|
echo "SSH into the host with:"
|
||||||
|
echo "ssh 127.0.0.1 -p 2222"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user