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 [07.06.2021 11:50] – [Windows VM in KVM/QEMU on headless Ubuntu server] Pascal Suter | windows_vm_in_kvm_on_headless_ubuntu_server [09.04.2022 01:22] (current) – [example config] Pascal Suter | ||
---|---|---|---|
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 : |