Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
windows_vm_in_kvm_on_headless_ubuntu_server [24.01.2016 10:59] – Pascal Suter | windows_vm_in_kvm_on_headless_ubuntu_server [09.04.2022 01:22] (current) – [example config] Pascal Suter | ||
---|---|---|---|
Line 15: | Line 15: | ||
run qemu and install windows. access the display via VNC | run qemu and install windows. access the display via VNC | ||
- | qemu-system-x86_64 -enable-kvm -k de-ch -name windows -vnc :1 -cdrom /dev/cdrom -boot d -drive file=/ | + | qemu-system-x86_64 -enable-kvm -k de-ch -name windows -vnc :1 -cdrom /dev/cdrom -drive file=/ |
now connect with your favourite vnc client to the ip of your server and install windows. you need to load the derivers from the second cdrom that is emulated. make sure you choose the correct virtio storage driver for your windows version. it may load the wrong one if you just select the root directory and let the installer search for it, resulting in an unstable windows vm | now connect with your favourite vnc client to the ip of your server and install windows. you need to load the derivers from the second cdrom that is emulated. make sure you choose the correct virtio storage driver for your windows version. it may load the wrong one if you just select the root directory and let the installer search for it, resulting in an unstable windows vm | ||
Line 42: | Line 42: | ||
bridge_maxwait 5 | bridge_maxwait 5 | ||
- | < | + | </code> |
Notice: you won't need any block for eth0 after you defined the bridge interface. | Notice: you won't need any block for eth0 after you defined the bridge interface. | ||
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 | ||
- | < | + | < |
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. | ||
+ | **Notice** you will need virtio drivers for the nic to work. you can leave the '' | ||
===== example config ===== | ===== 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! | 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! | ||
Line 68: | Line 69: | ||
-drive file=/ | -drive file=/ | ||
-m 4096 \ | -m 4096 \ | ||
- | -net nic \ | + | -net nic, |
-net tap \ | -net tap \ | ||
-vnc : | -vnc : |