Last active
September 27, 2022 11:48
-
-
Save vic3t3chn0/cc55788e7400dce1c87ffa780192d1c6 to your computer and use it in GitHub Desktop.
qemu snapshot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -e | |
qemu-img create -f qcow2 fedora.img 60G | |
curl -L -o Fedora-Workstation-Live-x86_64-36-1.5.iso https://download.fedoraproject.org/pub/fedora/linux/releases/36/Workstation/x86_64/iso/Fedora-Workstation-Live-x86_64-36-1.5.iso | |
qemu-system-x86_64 \ | |
-m 4G \ | |
-vga virtio \ | |
-cdrom Fedora-Workstation-Live-x86_64-36-1.5.iso \ | |
-accel hvf \ | |
-show-cursor \ | |
-usb \ | |
-device usb-tablet \ | |
-drive file=fedora.qcow2,if=virtio | |
qemu-system-x86_64 \ | |
-m 4G \ | |
-vga virtio \ | |
-accel hvf \ | |
-show-cursor \ | |
-usb \ | |
-device usb-tablet \ | |
-device virtio-net,netdev=vmnic \ | |
-netdev user,id=vmnic,hostfwd=tcp:127.0.0.1:9001-:22 \ | |
-drive file=fedora.qcow2,if=virtio -snapshot | |
#!/bin/bash -e | |
qemu-img create -f qcow2 ubuntu.img 60G | |
curl -L -o ubuntu-20.04.5-desktop-amd64.iso https://releases.ubuntu.com/20.04/ubuntu-20.04.5-desktop-amd64.iso | |
qemu-system-x86_64 \ | |
-m 4G \ | |
-vga virtio \ | |
-cdrom ubuntu-20.04.5-desktop-amd64.iso \ | |
-accel hvf \ | |
-show-cursor \ | |
-usb \ | |
-device usb-tablet \ | |
-drive file=ubuntu.img,if=virtio | |
qemu-system-x86_64 \ | |
-m 4G \ | |
-vga virtio \ | |
-accel hvf \ | |
-show-cursor \ | |
-usb \ | |
-device usb-tablet \ | |
-device virtio-net,netdev=vmnic \ | |
-netdev user,id=vmnic,hostfwd=tcp:127.0.0.1:9001-:22 \ | |
-drive file=ubuntu.img,if=virtio -snapshot |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment