Added kvm binary symlink

This commit is contained in:
Eliezer Croitoru 2024-09-19 06:36:46 +03:00
parent 16b10bd119
commit cfde9dac1b

View File

@ -30,6 +30,7 @@ install-gns3-deps:
install-gns3: install-gns3-deps get-busy-box-static install-docker create-gns3-user build-gns3-server build-gns3-gui build-gns3-vpcs build-gns3-dynamips build-gns3-ubridge
ln -s /usr/libexec/qemu-kvm /usr/bin/qemu-kvm;true
chown gns3:gns3 /home/gns3/ -R
systemctl daemon-reload
systemctl enable gns3.service
@ -40,7 +41,7 @@ build-gns3-server:
cd gns3-server && git config remote.origin.fetch '+refs/heads/*:refs/remotes/origin/*' && git pull origin && git checkout tags/v2.2.49
python3 -m pip install --upgrade pip
cd gns3-server && pip3 install -r requirements.txt && python3 setup.py install
ln -s /usr/bin/qemu-system-x86_64 /usr/bin/qemu-kvm;true
ln -s /usr/libexec/qemu-kvm /usr/bin/qemu-kvm;true
cd gns3-server/init && cp gns3.service.systemd /etc/systemd/system/gns3.service
chown root:root /etc/systemd/system/gns3.service
sed -i -e "s@^ExecStart=.*@ExecStart=/usr/local/bin/gns3server@g" /etc/systemd/system/gns3.service