running WebRTC gateway on Linux KVM virtualisation
Linux KVM is currently not official supported. With a few steps it is possible to run WebRTC Gateway as KVM guest machine. The feature request is to gain official support for this solution.
I'd like to share the steps I've done to run it together with libvirt and qemu on Debian Linux as VM:
- obtain the rainbow-webrtc-gateway-1.xx.y.ova and uncompress it using
tar -xvf rainbow-webrtc-gateway-1.62.1.ova
- convert the vmware vmdk disk image file to qemus qcow2 format and copy it to a proper destination (for example to /var/lib/libvirt/images)
qemu-img convert -O qcow2 rainbow-webrtc-gateway-1.62.1.vmdk rainbow-webrtc-gateway-1.62.1.qcow2
mkdir -vp /var/lib/libvirt/images
mv -v rainbow-webrtc-gateway-1.62.1.qcow2 /var/lib/libvirt/images
- create the linux virtual machine on kvm host
virt-install --connect qemu:///system -n rainbow-webrtc-gateway-1-62 -r 2048 --vcpus=2 --disk /var/lib/libvirt/images/rainbow-webrtc-gateway-1.62.1.qcow2 --vnc -k de --os-variant debianwheezy --accelerate --network=bridge:br0 --hvm --noautoconsole --vncport=-1
- once VM has been started, connect using VNC to the guests screen and modify the Grub bootloader cmd option line from root=/dev/sda to root=/dev/vda the VM may be able to boot up now
- login to the freshly booted WebRTC gateway using the default user rainbow and become root
sudo -i
echo "GRUB_CMDLINE_LINUX=\"biosdevname=0 net.ifnames=0\"" >> /etc/default/grub; update-grub
Reboot and enjoy your WebRTC Gatway on Linux KVM
-
Small update for rainbow-webrtc-gateway-1.70.3-175:
- extract the zip archive
unzip rainbow-webrtc-gateway-1.70.3-175.zip
- create new disk image
sudo qemu-img create /var/lib/libvirt/images/rainbow-webrtc-gateway-1.70.3.qcow2 4G
- virt-install a new vm and use the iso as installation medium (-k de means german keyboard layout, alter it for your needs!)
sudo virt-install --connect qemu:///system -n rainbow-webrtc-gateway-1-70 -r 2048 --vcpus=2 --disk path=/var/lib/libvirt/images/rainbow-webrtc-gateway-1.70.3.qcow2,bus=scsi -c ovf/rainbow-webrtc-gateway-1.70.3-175.iso --vnc -k de --os-type linux --os-variant debian9 --accelerate --network=bridge:br0 --hvm --noautoconsole --vncport=-1
- connect with VNC to the screen and login continue with the normal install procedure
- extract the zip archive
-
I have also had requests for KVM support.
David LAMORSKI thanks for the post :)
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
2 Kommentare