Giovanni Torres
8b01f23b75
Added support for Amazon Linux 2 distribution
8 years ago
Giovanni Torres
ba984143d2
Fix deleting of directory.
...
- In certain cases, the directory can exist when the domain is not defined.
When calling the 'remove' subfunction, it will now delete the directory as
expected, even if the domain doesn't exist.
8 years ago
Giovanni Torres
38e25380d2
Added F27 to usage and README
8 years ago
Giovanni Torres
2aeccff740
Added Fedora 27 and the atomic variant
8 years ago
Giovanni Torres
d39b00d6eb
Updated README
8 years ago
Giovanni Torres
cc489b59d1
Do not die if removing guest but guest is not running.
8 years ago
Giovanni Torres
160b7c841c
Merge pull request #6 from beelzetron/master
...
Added support for mkisofs to generate cloud-init image.
8 years ago
Lorenzo Dalrio
ae10a61c29
Added support for mkisofs to generate cloud-init image.
8 years ago
Giovanni Torres
1760177d67
Added checks for all other supported distributions.
8 years ago
Giovanni Torres
a28c68067b
Fix exit messages for better debugging.
8 years ago
Giovanni Torres
7251faa9b5
Only resize disk if DISK_SIZE is specified.
...
- also reformatted some lines for length.
8 years ago
Giovanni Torres
cb994e64c5
Fixed logic for resizing disk
8 years ago
Giovanni Torres
2666c0d280
Don't remove cloud-init on atomic hosts.
8 years ago
Giovanni Torres
fcc2ded316
Don't need to shift OPTIND in remove function
8 years ago
Giovanni Torres
884454fc5a
Set variables for -atomic distributions to avoid die()
8 years ago
Giovanni Torres
0a120305a4
Added .kivrc file for settting custom defaults.
8 years ago
Giovanni Torres
8931b18b76
Added set -e.
8 years ago
Giovanni Torres
940fcc854c
Updated output.
...
- Used helper output functions (die, output, outputn, etc.)
- moved `set_defaults` logic from create(). Run once at beginning.
- Fixed tests.
8 years ago
Giovanni Torres
719b69b675
Change output statements
8 years ago
Giovanni Torres
93ee5b1b0a
Added indentaton for better readability
8 years ago
Giovanni Torres
630050cbeb
Fixed markdown formatting.
8 years ago
Giovanni Torres
0090623fb3
Fixed markdown formatting.
8 years ago
Giovanni Torres
b504b22811
Added attach-disk as valid help subcommand; Updated README
8 years ago
Giovanni Torres
596b442f93
Merge branch 'attachdisk'
8 years ago
Giovanni Torres
fea73bc3cc
Added subcommand to attach a new disk.
...
- Added wrapper around `virsh attach-disk`
- Updated tests and README for attach-disk
- Added helper functions.
8 years ago
Giovanni Torres
0ed554f4e1
Set defaults when deleting VM to get missing variable.
...
- Added test to check for cleanup of files after deleting guest.
8 years ago
Giovanni Torres
99ac64303b
Expanded output for invalid command.
8 years ago
Giovanni Torres
dfae396622
Added tests to check for missing hostnames
8 years ago
Giovanni Torres
a3477c44ff
Avoid deleting directory when not specifying a hostname to create/remove.
...
- Exit when none or two or more hostnames are specified.
- Accept help as a subcommand for create and remove.
8 years ago
Giovanni Torres
deecbd5895
Fixed network restart.
...
- Restarting network alone seems to not work consistently. Stopping/restarting
seems better. Just need the hostname to get sent in the DHCP request to
dnsmasq.
- Fixed restart command for apt systems to "networking"
8 years ago
Giovanni Torres
39496f42f9
Updated bats tests.
...
- Use env var for VM name
- Added check for hostname resolution via libvirt-nss
- Added check for clout-init package removal
8 years ago
Giovanni Torres
852a67c8c1
Fixes #4
...
- Exit if PKGMGR is not set.
- Changed runcmd to list of strings and changed order to avoid to shellify error.
- Run function to set network restart command so that hostname is sent to dnsmasq and libvirt-nss works.
- Change delete_vm() to remove() when overwriting an exiting VM to avoid storage pool creation error.
8 years ago
Giovanni Torres
5d2d0833dc
Fix sudo option
8 years ago
Giovanni Torres
466b9f4a17
Updated README with dns option
8 years ago
Giovanni Torres
8d895068b8
Added option for specifying dns domain
8 years ago
Giovanni Torres
d1fa1b931d
Add running user to the VM.
...
- Aside from the default login, your local user is now added to the VM and you
can ssh to the VM as your local user as well.
- The local user also has sudo privileges.
8 years ago
Giovanni Torres
3ad63953e8
Updated to use subcommands.
...
- Now uses create|remove|list|help subcommands
- "main" is now just one case statement
- Updated README
- Updated tests
8 years ago
Giovanni Torres
26fa45ca8e
Fixed typo
9 years ago
Giovanni Torres
5d9537fc8a
Only run delete_vm if domain exists
9 years ago
Giovanni Torres
5aa82abf9e
More info about resolving guest hostnames in README
9 years ago
Giovanni Torres
3851b22462
Added a note about possible multiple DHCP leases
9 years ago
Giovanni Torres
bc39f03287
Fix typo
9 years ago
Giovanni Torres
5707c66492
Added notes about using libvirt-nss
9 years ago
Giovanni Torres
a73b367833
Restart network at instantiation time to force send hostname in the DHCP message.
...
- This is so that libvirt/dnsmasq have a mapping of the IP->guest_hostname. If
the libvirt-nss package is installed and configured in nsswitch.conf, you can
ssh to guest names by hostname!
9 years ago
Giovanni Torres
9039d904af
Added testing instructions
9 years ago
Giovanni Torres
0a507e85ce
Added initial Bats tests
9 years ago
Giovanni Torres
b3799bd910
Added quiet option for grep
9 years ago
Giovanni Torres
7811d73116
Added more functions.
...
- added function to get package manager
- added function to check and delete SSH known host entry
- alphabetized getopts
9 years ago
Giovanni Torres
8a75cfc0f7
Rearranged script, function at the top, main at the bottom.
9 years ago
Giovanni Torres
6c4527776c
Updated fedora26-atomic version to 20171003
9 years ago