- Create a Linux One Community Cloud Account
- Create an instance using a key pair
- Start the instance
- SSH to the instance using the command
ssh -i key.pem linux1@<ip>
- Get root privileges using the command
sudo -i
- Install KVM tools and server using the command
zypper in -t pattern kvm_server kvm_tools
- Start libvirtd using the command
systemctl start libvirtd.service
- To verify installation run the command
virsh list --all
, this should return nothing as we did not create any VM as of now - On your host system (your workspace machine you use, to access the cloud server), install the GUI manager Virtual Machine Manager or virt-manager using the command
sudo apt-get install virt-manager
- Give appropriate permissions using the command
usermod -G libvirt <username>
(here username = linux1)
- From your host system, try connecting to the linux1 hypervisor using the command
virsh -c qemu+ssh://linux1@<ip>/system?keyfile=<Key path> list
. This will return the same as that of step 8 of installation. - To simply the above command, go to the path
~/.config/libvirt/libvrit.conf
, if the path doesn't exist create the path. In that file add the below contentsuri_aliases=[ "l1cc=qemu+ssh://linux1@<ip>/system?keyfile=<Key path>", ]
The alias word 'l1cc' can be changed anything upto the user - Now you can run the
virsh ..
command asvirsh -c l`cc list
- To get the GUI run
virt-manager -c l1cc
. Given some time, remote hypervisor will be connected from your host machine - Use the GUI, to first create a network, storage and then start a VM.