[Solved] virt-install: command not found, debian 10

If none of the more specific forums is the right place to ask

[Solved] virt-install: command not found, debian 10

Postby Chiefahol2 » 2019-08-31 07:19

After installing kvm on a cli only machine (Debian 10) i get this error when attempting to make a VM:

Code: Select all
$ sudo apt install qemu-kvm libvirt-clients libvirt-daemon-system bridge-utils

$ sudo adduser <youruser> libvirt
$ sudo adduser <youruser> libvirt-qemu

$ export LIBVIRT_DEFAULT_URI='qemu:///system'

$ sudo virt-install --name=kvm1-website.org --vcpus=8 --memory=8192 --cdrom=/home/user/iso/debian-10.0.0-amd64-netinst.iso --disk path=/dev/sdb --os-type=linux --os-variant=debianbuster --network bridge=br0,model=virtio --autostart --extra-args "console=ttyS0"
[sudo] password for user:
sudo: virt-install: command not found


If anyone had any advice that would be great, thank you.
Last edited by Chiefahol2 on 2019-09-13 02:22, edited 1 time in total.
User avatar
Chiefahol2
 
Posts: 109
Joined: 2016-08-06 22:49

Re: virt-install: command not found, debian 10

Postby Chiefahol2 » 2019-08-31 08:38

Further digging reveals nothing. Almost like you should be using a different command now? Or perhaps i am missing a package?

Code: Select all
$ locate virt-install

$ ls /usr/bin/v*
/usr/bin/vdir  /usr/bin/vim.tiny    /usr/bin/virtfs-proxy-helper  /usr/bin/virt-pki-validate  /usr/bin/volname
/usr/bin/vi    /usr/bin/virsh       /usr/bin/virt-host-validate   /usr/bin/virt-xml-validate
/usr/bin/view  /usr/bin/virt-admin  /usr/bin/virt-login-shell     /usr/bin/vmstat

$ ls /usr/sbin/v*
/usr/sbin/validlocale   /usr/sbin/vgck       /usr/sbin/vgimport       /usr/sbin/vgrename  /usr/sbin/virtlockd
/usr/sbin/vcstime       /usr/sbin/vgconvert  /usr/sbin/vgimportclone  /usr/sbin/vgs       /usr/sbin/virtlogd
/usr/sbin/veritysetup   /usr/sbin/vgcreate   /usr/sbin/vgmerge        /usr/sbin/vgscan    /usr/sbin/virt-sanlock-cleanup
/usr/sbin/vgcfgbackup   /usr/sbin/vgdisplay  /usr/sbin/vgmknodes      /usr/sbin/vgsplit   /usr/sbin/visudo
/usr/sbin/vgcfgrestore  /usr/sbin/vgexport   /usr/sbin/vgreduce       /usr/sbin/vigr      /usr/sbin/vpddecode
/usr/sbin/vgchange      /usr/sbin/vgextend   /usr/sbin/vgremove       /usr/sbin/vipw

$ ls /sbin/v*
/sbin/validlocale   /sbin/vgchange   /sbin/vgexport       /sbin/vgmknodes  /sbin/vgscan     /sbin/virtlogd
/sbin/vcstime       /sbin/vgck       /sbin/vgextend       /sbin/vgreduce   /sbin/vgsplit    /sbin/virt-sanlock-cleanup
/sbin/veritysetup   /sbin/vgconvert  /sbin/vgimport       /sbin/vgremove   /sbin/vigr       /sbin/visudo
/sbin/vgcfgbackup   /sbin/vgcreate   /sbin/vgimportclone  /sbin/vgrename   /sbin/vipw       /sbin/vpddecode
/sbin/vgcfgrestore  /sbin/vgdisplay  /sbin/vgmerge        /sbin/vgs        /sbin/virtlockd

$ ls /bin/v*
/bin/vdir  /bin/view      /bin/virsh       /bin/virtfs-proxy-helper  /bin/virt-login-shell   /bin/virt-xml-validate  /bin/volname
/bin/vi    /bin/vim.tiny  /bin/virt-admin  /bin/virt-host-validate   /bin/virt-pki-validate  /bin/vmstat
User avatar
Chiefahol2
 
Posts: 109
Joined: 2016-08-06 22:49

Re: virt-install: command not found, debian 10

Postby p.H » 2019-08-31 09:14

https://packages.debian.org/search?sear ... e&arch=any
indicates that it is in the package virtinst.
Alternatively if you have enough disk space you can install and use apt-file to search which package provides a given file.

Note that locate will not list new files (and will continue to list deleted files) until its database has been updated (updatedb, done daily by a cronjob).
Last edited by p.H on 2019-09-01 10:40, edited 1 time in total.
p.H
 
Posts: 1091
Joined: 2017-09-17 07:12

Re: virt-install: command not found, debian 10

Postby Chiefahol2 » 2019-09-01 10:20

Thank you, virtinst was exactly what i needed. :mrgreen:
User avatar
Chiefahol2
 
Posts: 109
Joined: 2016-08-06 22:49

Re: virt-install: command not found, debian 10

Postby Virginia3099 » 2019-09-21 09:34

p.H wrote:https://packages.debian.org/search?searchon=contents&keywords=virt-install&mode=filename&suite=stable&arch=any
indicates that it is in the package virtinst.
Alternatively if you have enough disk space you can install and use apt-file to search which package provides a given file.

Note that locate will not list new files (and will continue to list deleted files) until its database has been updated (updatedb, done daily by a cronjob).


Your information is very interesting.

Thank you for sharing
Virginia3099
 
Posts: 1
Joined: 2019-09-21 09:29


Return to General Questions

Who is online

Users browsing this forum: No registered users and 10 guests

fashionable