Fedora example script to install dependencies use `-y` flag, so I added
it too on Ubuntu example.
Signed-off-by: Zasda Yusuf Mikail <zasdaym@gmail.com>
* Update README.md
on ubuntu 18.04 got following errors when tried to spin up VM:
./kvm-install-vm: line 470: osinfo-query: command not found
ERR: Unknown OS variant 'ubuntu18.04'. Please update your osinfo-db. See https://libosinfo.org/download for more information.
* Update README.md
updated packages names for ubuntu/debian based distros + added small troubleshooting hint
* Update README.md
* Update README.md
small fix
Co-authored-by: Tomas Bezdek <tomas.bezdek@tieto.com>
Check the osinfo-db is not too old, and if so issue an error message to
explain how to upgrade the osinfo-db.
The osinfo-db provided by package managers tend to lag the upstream
libosinfo project. This makes it harder to support new os versions when
your kvm is running on something like CentOS or Ubuntu LTS. Fortunately
the libosinfo project provides downloads and a tool to import the
osinfo-db without impacting the files managed by the package manager,
which makes using kvm-import-vm create a much more pleasant experience.
* Add check for bridge status file and assume it's a layer 2 bridge if it doesn't exist
* Move known_hosts check inside if condition
* Formatting
* Initial commit for custom runcmd support
* Add r as supported option
* Add option for graphics type
* Quotes
* No autoport with this version of virt-install
* Add listen
* Add option to customize additional user
* Custom port support for graphical console
* Fix typos
* Add verbosity to help
* Fix README text
* Unnecessary quotes
* Add workaround for VNC port number
* Load IMAGEDIR for bats tests, increase sleep before hostname resolution test, fix DISKDIR used by attach-disk function
* Make VM name unique to avoid issues with stale libvirt-nss hostname resolution
* Only set VMNAME if it's not already set
* Missing quote
* Export VMNAME
* Increase sleep to 45 seconds
* Add centos user to ssh command
* Fix description of attach-disk
* Change user-data to multipart MIME archive to allow inclusion of a shell script instead of additional runcmd items fs
* Fix boundary
* Remove comment line I never filled in
* Fix typo
* Fix typo and missing colon
* Add autostart option
* Handle output of autostart
* Redirect
* Use outputn
* Add -a to valid options
- Turns out setting --graphics=none was problematic only for Debian images. It
is now set to --graphics=spice. The Debian 8 openstack image still doesn't
work. I get connection refused on the SSH port. Will keep looking into it.