
This step is what you will do over and over again to run the VM each time you need it. It can take quite a while, especially when running as a non-admin user. When the installation is finished, the virtual machine will exit.

When prompted to install CentOS, hit the TAB key and replace the word quiet at the end of that line with the word text.įollow the installation instructions on screen. Start "QEMU" "%QEMUDIR%\%QEMUBIN%" -drive file=hda.img,index=0,media=disk,format=raw -cdrom %ISOFILE% -m 2G -L Bios -usbdevice mouse -usbdevice keyboard -boot menu=on -rtc base=localtime,clock=host -parallel none -serial none -name centos -no-acpi -no-hpet -no-reboot

Copy the follwing into installvm.bat: off Use a batch for this one, as you might use it often. "%QEMUDIR%\qemu-img.exe" create hda.img 40GĮcho file hda.img already exist. Set "QEMUDIR=%USERPROFILE%\Documents\Warez\qemu-2.8.0-win64" Copy the following to a file named createvm.bat and adjust the variables to suit your environment: off I used the Minimal distribution of CentOS 7, the file is called CentOS-7-x86_64-Minimal-1611.iso. Install in a folder where you have write permissions, like "My Documents" or something.Īgain, help yourself. To "install" this version as a non-admin, open a command prompt, issue the command set _COMPAT_LAYER=RunAsInvoker and run qemu-w64-setup-20170131.exe from that prompt.

Use a precompiled binary found on QEMU links page. Networking and fancy graphics are hard to get right.

