Configure KVM 24.04LTS: Difference between revisions

From ScottWiki
Jump to navigation Jump to search
(Replaced content with "Install a few helper utils (Make sure Virtualization is enabled in the bios) apt install qemu-kvm libvirt-clients libvirt-daemon-system Check all is ok with a kvm-ok You need to do this and install askpass GNOME https://www.digitalocean.com/community/tutorials/how-to-set-up-ssh-keys-on-ubuntu-1604")
Tag: Replaced
No edit summary
 
(6 intermediate revisions by the same user not shown)
Line 8: Line 8:




After installing Windows WSL and Virtual Manager you can set up SSH key login to enable virtual manager to connect nicely.


You need to do this and install    askpass GNOME
ssh-keygen (you may need to run this command 1st if you don't have a keypair, (VM machine)
ssh-copy-id username@solaris.scottworld.net


https://www.digitalocean.com/community/tutorials/how-to-set-up-ssh-keys-on-ubuntu-1604
You will need to also add a line to the .bash shell config to let virtual machine manager save its settings.
 
nano ~/.bashrc
 
Add this line
 
export $(dbus-launch)
 
Start up virtual machine manager and check connection
 
== Configure Network ==
 
Right click host --> details --> Virtual Networks
 
The click the + button in the bottom left
<pre>
<network connections="1">
  <name>VMBridge</name>
  <forward mode="bridge"/>
  <bridge name="br0"/>
</network>
</pre>
 
Setup the virtual storage by clicking the storage tab
 
Select Logical LVM Volume Group to create the pool.
 
You can copy ISO images to the disk and then add a pool pointing to that location so the VMs can then use ISOs.

Latest revision as of 17:07, 26 March 2024

Install a few helper utils (Make sure Virtualization is enabled in the bios)

apt install qemu-kvm libvirt-clients libvirt-daemon-system

Check all is ok with a

kvm-ok


After installing Windows WSL and Virtual Manager you can set up SSH key login to enable virtual manager to connect nicely.

ssh-keygen (you may need to run this command 1st if you don't have a keypair, (VM machine)
ssh-copy-id username@solaris.scottworld.net

You will need to also add a line to the .bash shell config to let virtual machine manager save its settings.

nano ~/.bashrc

Add this line

export $(dbus-launch)

Start up virtual machine manager and check connection

Configure Network

Right click host --> details --> Virtual Networks

The click the + button in the bottom left

<network connections="1">
  <name>VMBridge</name>
  <forward mode="bridge"/>
  <bridge name="br0"/>
</network>

Setup the virtual storage by clicking the storage tab

Select Logical LVM Volume Group to create the pool.

You can copy ISO images to the disk and then add a pool pointing to that location so the VMs can then use ISOs.