mirror of
https://github.com/retspen/webvirtcloud.git
synced 2026-04-26 07:55:52 +03:00
[GH-ISSUE #202] [Ubuntu] kvm #135
Labels
No labels
bug
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/webvirtcloud#135
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @iambenmitchell on GitHub (Nov 6, 2018).
Original GitHub issue: https://github.com/retspen/webvirtcloud/issues/202
Package kvm is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
@iambenmitchell commented on GitHub (Nov 6, 2018):
Downgraded from 18.04 to 16.04 and fixed the issue.
Looks like kvm got dropped in 18.04
@catborise commented on GitHub (Nov 7, 2018):
there is not any problem with install on 18.04.
which statement causes problem?
i installed webvirtcloud panel to 18.04 without any glitch
may be you should check and enable the universe repo.
sudo add-apt-repository universe
@iambenmitchell commented on GitHub (Nov 7, 2018):
18.10*
@garrettcorn commented on GitHub (Dec 7, 2018):
This issue is happening for me on 18.04.
$ lsb_release -a$ wget -O - https://clck.ru/9V9fH | sudo sh$ sudo add-apt-repository universe'universe' distribution component is already enabled for all sources.@catborise commented on GitHub (Dec 22, 2018):
Yes this script is old. It has to be updated.
The problem related with kvm package new installation like that . There is no kvm package.
sudo apt install qemu qemu-kvm libvirt-bin bridge-utils virt-manager
############################################################################
Ubuntu Install Functions
install_ubuntu() {
apt-get update || return 1
apt-get -y install kvm libvirt-bin bridge-utils sasl2-bin python-guestfs supervisor || return 1
return 0
}
install_ubuntu_post() {
if [ -f /etc/default/libvirt-bin ]; then
sed -i 's/libvirtd_opts="-d"/libvirtd_opts="-d -l"/g' /etc/default/libvirt-bin
else
echoerror "/etc/default/libvirt-bin not found. Exiting..."
exit 1
fi
if [ -f /etc/libvirt/libvirtd.conf ]; then
sed -i 's/#listen_tls/listen_tls/g' /etc/libvirt/libvirtd.conf
sed -i 's/#listen_tcp/listen_tcp/g' /etc/libvirt/libvirtd.conf
sed -i 's/#auth_tcp/auth_tcp/g' /etc/libvirt/libvirtd.conf
else
echoerror "/etc/libvirt/libvirtd.conf not found. Exiting..."
exit 1
fi
if [ -f /etc/libvirt/qemu.conf ]; then
if ([ $DISTRO_MAJOR_VERSION -eq 12 ] && [ $DISTRO_MINOR_VERSION -eq 04 ]); then
sed -i 's/# vnc_listen/vnc_listen/g' /etc/libvirt/qemu.conf
else
sed -i 's/#vnc_listen/vnc_listen/g' /etc/libvirt/qemu.conf
fi
else
echoerror "/etc/libvirt/qemu.conf not found. Exiting..."
exit 1
fi
if [ -f /etc/supervisor/supervisord.conf ]; then
wget -O /usr/local/bin/gstfsd https://raw.githubusercontent.com/retspen/webvirtcloud/master/conf/daemon/gstfsd
chmod +x /usr/local/bin/gstfsd
wget -O /etc/supervisor/conf.d/gstfsd.conf https://raw.githubusercontent.com/retspen/webvirtcloud/master/conf/supervisor/gstfsd.conf
else
echoerror "Supervisor not found. Exiting..."
exit 1
fi
return 0
}
daemons_running_ubuntu() {
if [ -f /etc/init.d/libvirt-bin ]; then
# Still in SysV init!?
service libvirt-bin stop > /dev/null 2>&1
service libvirt-bin start
fi
if [ -f /etc/init.d/supervisor ]; then
# Still in SysV init!?
service supervisor stop > /dev/null 2>&1
service supervisor start
fi
return 0
}
Ended Ubuntu Install Functions
@catborise commented on GitHub (Dec 28, 2018):
https://clck.ru/9V9fH --> that script is "webvirtcloud/dev/libvirt-bootstrap.sh"
i add support for 18.04+ and create a pull request. after merge you can use it.
thanks