Configure KVM 24.04LTS: Difference between revisions

From ScottWiki
Jump to navigation Jump to search
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 12: Line 12:
  ssh-keygen (you may need to run this command 1st if you don't have a keypair, (VM machine)
  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
  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
Start up virtual machine manager and check connection
Line 20: Line 28:


The click the + button in the bottom left
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.


Name br0
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.