startqemu.sh 561 B

123456789101112
  1. pushd `dirname $0`
  2. cd ..
  3. # IGNITION_CONFIG="ignition/config.ign"
  4. # IGNITION_DEVICE_ARG="-fw_cfg name=opt/com.coreos/config,file=${IGNITION_CONFIG}"
  5. # sudo qemu-kvm -m 2048 -cpu host -drive if=virtio,file=ignition/my-fcos-vm.qcow2 \
  6. # ${IGNITION_DEVICE_ARG} \
  7. # -nic user,model=virtio,hostfwd=tcp::22-:22,hostfwd=tcp::80-:80,hostfwd=tcp::443-:443,hostfwd=udp::443-:443
  8. sudo qemu-kvm -m 1024 -cpu host -drive if=virtio,file=nixos.qcow2 \
  9. -nic user,model=virtio,hostfwd=tcp::22-:22,hostfwd=tcp::80-:80,hostfwd=tcp::443-:443,hostfwd=udp::443-:443
  10. popd