packer qemu vm builder with gentoo os.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
362B

  1. #!/bin/bash
  2. # pass qcow2 image path as first parameter
  3. if [ "$#" -lt 1 ]; then
  4. exit 1
  5. fi
  6. # -cdrom ./packer/assets/install-amd64-minimal-20200205T214502Z.iso \
  7. qemu-system-x86_64 \
  8. -boot order=d -m 1024 \
  9. -smp cpus=1,sockets=2,maxcpus=2 \
  10. -drive "file=$1,format=qcow2,index=1" \
  11. -net nic,model=virtio \
  12. -net user,hostfwd=tcp::5556-:22