Skip to content

Instantly share code, notes, and snippets.

@aatizghimire
Created September 27, 2023 15:34
Show Gist options
  • Save aatizghimire/f4adb4cbb46cdb62bb9eaa4067cc638d to your computer and use it in GitHub Desktop.
Save aatizghimire/f4adb4cbb46cdb62bb9eaa4067cc638d to your computer and use it in GitHub Desktop.
Use QEMU to boot another OS (windows)
1. Set Up a Virtual Disk
Under C:/ Drive Run these command:
$ qemu-img create image.img 200M
2. To Run :
$ qemu-system-i386 -hda image.img -cdrom isofile.iso -m 16M -boot order=dc
qemu-system-i386 : Legacy System or you can use qemu-system-x86_64
-hda : denotes the image file of harddisk.
-cdrom: bootable iso image file
-m : memory allocated ( M for MB or G for GB)
-b order=dc:Boot sequence try d (cdrom), then c (hardisk)
@aatizghimire
Copy link
Author

use $qemu-img create image.img 20G -f qcow2 in 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment