windows_vm_in_kvm_on_headless_ubuntu_server

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revisionBoth sides next revision
windows_vm_in_kvm_on_headless_ubuntu_server [23.01.2016 17:08] Pascal Suterwindows_vm_in_kvm_on_headless_ubuntu_server [23.01.2016 23:07] Pascal Suter
Line 48: Line 48:
  
 now in your qemu command line you ened to add the parameters  now in your qemu command line you ened to add the parameters 
-  -net nic -net tap+<code>-net nic -net tap</code>
 the default qemu-ifup script in /etc/ will do the rest for you.  the default qemu-ifup script in /etc/ will do the rest for you. 
  
 +===== example config =====
 +here is an example configuration for a windows 7 machine using the above mentioned init script.. if you use another init script or run kvm manually you can simply use all the cli options listed below as an example of what you might want to pass on to qemu.. also take a look at the man page it is very informative and helpful! 
  
 +<code>
 +# Should be unique among all VMs
 +MONITOR_PORT=5801
  
 +# Not mandatory, but useful to keep it in a distinct variable
 +VNC_DISPLAY=1
 +
 +# KVM parameters
 +KVM_OPTS="\
 +-enable-kvm \
 +-k de-ch \
 +-name windows \
 +-drive file=/vm/windows.img,if=virtio,format=raw,index=0 \
 +-m 4096 \
 +-net nic \
 +-net tap \
 +-vnc :$VNC_DISPLAY \
 +-monitor tcp:127.0.0.1:$MONITOR_PORT,server,nowait \
 +-monitor vc \
 +-daemonize \
 +</code>
 +
 +===== Windows 10 upgrade =====
 +I had a windows 7 license laying around so i used that but wanted to upgrade to win 10. unfortunately the update crashed with error <code>0xC1900101 - 0x20017 The installation failed in the SAFE_OS phase with an error during BOOT operation</code>
 +
 +this was easily fixed by temporarily adding a <code>-cpu core2duo</code> to my options in the above config file. keep in mind you need to stop your VM and start it again for this change to be activated.. after the update the setting can be removed and the cpu can be reverted to kvm, the default. 
  • windows_vm_in_kvm_on_headless_ubuntu_server.txt
  • Last modified: 09.04.2022 01:22
  • by Pascal Suter