Difference between revisions of "KVM"
Jump to navigation
Jump to search
Michael.mast (talk | contribs) |
Michael.mast (talk | contribs) |
||
Line 6: | Line 6: | ||
sudo systemctl start libvirtd | sudo systemctl start libvirtd | ||
sudo dnf install qemu-kvm qemu-img libvirt-python python-virtinst libvirt-client virt-install virt-viewer device-mapper-libs libvirt-daemon-driver-qemu libvirt-daemon-config-network libvirt-daemon-kvm | sudo dnf install qemu-kvm qemu-img libvirt-python python-virtinst libvirt-client virt-install virt-viewer device-mapper-libs libvirt-daemon-driver-qemu libvirt-daemon-config-network libvirt-daemon-kvm | ||
+ | </pre> | ||
+ | ==Remove Default Network== | ||
+ | ===Purpose=== | ||
+ | To remove the default network from the host. This can conflict with other services running if this is a shared environment. In my case I run a DNS server off the host, and the default network uses DNS forwarding with dnsmasq. When dnsmasq is running it takes port 53 which prevents my DNS service from running. | ||
+ | ===Process=== | ||
+ | <ref>https://libvirt.org/sources/virshcmdref/html/sect-net-destroy.html</ref><pre> | ||
+ | [root@nas ~]# virsh | ||
+ | Welcome to virsh, the virtualization interactive terminal. | ||
+ | |||
+ | Type: 'help' for help with commands | ||
+ | 'quit' to quit | ||
+ | |||
+ | virsh # net-destroy default | ||
+ | Network default destroyed | ||
+ | |||
+ | virsh # net-list | ||
+ | Name State Autostart Persistent | ||
+ | ---------------------------------------------------------- | ||
+ | |||
+ | virsh # exit | ||
</pre> | </pre> |
Revision as of 09:43, 22 September 2018
Fedora 28
I had removed zfs-fuse, which also removed a number of kvm modules that I needed. To re-install I was able to follow the following link [1]
sudo dnf install libvirt-daemon sudo systemctl enable libvirtd sudo systemctl start libvirtd sudo dnf install qemu-kvm qemu-img libvirt-python python-virtinst libvirt-client virt-install virt-viewer device-mapper-libs libvirt-daemon-driver-qemu libvirt-daemon-config-network libvirt-daemon-kvm
Remove Default Network
Purpose
To remove the default network from the host. This can conflict with other services running if this is a shared environment. In my case I run a DNS server off the host, and the default network uses DNS forwarding with dnsmasq. When dnsmasq is running it takes port 53 which prevents my DNS service from running.
Process
[root@nas ~]# virsh Welcome to virsh, the virtualization interactive terminal. Type: 'help' for help with commands 'quit' to quit virsh # net-destroy default Network default destroyed virsh # net-list Name State Autostart Persistent ---------------------------------------------------------- virsh # exit