1
0
mirror of https://github.com/gryf/boxpy.git synced 2026-04-24 12:41:25 +02:00
Commit Graph

164 Commits

Author SHA1 Message Date
gryf 4c3aef3a85 Fix ssh command.
There was a leftover call for changed Run object initialization.
With this commit it's correct now.
2025-05-02 12:42:17 +02:00
gryf 189fbab17d Removed license classifier in favor of SPDX entry. 2025-04-18 16:04:42 +02:00
gryf eeebab74ad Fix some linting issues.
Also, changing workflow for image downloading fails.
1.11.0
2024-11-17 19:27:37 +01:00
gryf 81ab5de7c4 Bump Fedora version 2024-11-15 08:18:46 +01:00
gryf 62b86d5f81 Added poweroff option for stopping machine 1.10.1 2024-05-14 19:30:56 +02:00
gryf 14cd805e00 Bump the version.
Also, clean up raising exceptions.
1.10.0
2024-04-30 15:14:39 +02:00
gryf 86b02fca1b Keep image information right in the appropriate image subclass. 2024-04-30 15:14:13 +02:00
gryf 3d840de3ee Bump Debian, Fedora and Ubuntu versions.
Also, set Ubuntu latest LTS as default.
2024-04-30 15:10:03 +02:00
gryf 2a1a4cf40a Use pyproject.toml for installing box module. 2024-03-30 20:34:01 +01:00
gryf 71bf5b6d99 Bump Fedora version, remove archived versions prior to 37 1.9.3 2023-12-05 11:54:05 +01:00
gryf e73d5ce458 Update kuryr multinode setup example 2023-07-23 12:58:12 +02:00
gryf d623114f69 Update example for wmaker 2023-07-23 12:54:09 +02:00
gryf 51f642bea0 Updated ubuntu devstack example 2023-07-23 12:39:18 +02:00
gryf 12df0e97df Updated fedora devstack example 2023-07-23 11:53:59 +02:00
gryf 5f0def3103 Bump distribution latest version.
Also, updated mapping for the Fedora images.
1.9.2
2023-07-05 15:58:56 +02:00
gryf 43eabb9947 Fix nasty bug for debian images 1.9.1 2023-07-04 18:48:18 +02:00
gryf 55416db13d Added --type switch for start command 1.9 2023-04-20 19:42:21 +02:00
gryf 86a5655025 Improve detecting VM Operating System. 1.8 2023-04-20 19:21:24 +02:00
gryf 259d11e409 Don't reset Debian Bookworm on first run.
Issue/glitch with kernel panic on first run seems to be fixed on Debian
Bookworm (12). Do not reset VM for that version (and hopefully
upcoming).
1.7.1
2023-04-20 17:01:57 +02:00
gryf b2457d497e Add experimental Debian support.
Note, there is something weird with those images, as the will segfault
on the first run (I've checked that with latest Debian 11 images, maybe
it will change in the future), so there is forced reboot after certain
amount of time as a workaround.
1.7
2023-04-18 21:48:19 +02:00
gryf 15a6ecb540 Use predefined os types for vbox VMs.
It might have impact on how operating system inside VM is treated by
VirtualBox, so let's stick with proper distro for every OS. As an
outcome, it turns out, that for graphical side of the vm, for Linux OS
the vmsvga driver is recommended, as a little more amount of vram.
2023-04-18 21:39:56 +02:00
gryf 10543cb506 Don't create vm till it's still there during rebuild 2023-04-02 10:05:06 +02:00
gryf 1f1084f294 Readme update. 2023-02-26 19:20:11 +01:00
gryf f5ed3d37ac readme update 2023-02-22 21:10:59 +01:00
gryf 1483f49461 Added debug info about ssh connection to the vm 2023-02-22 21:08:43 +01:00
gryf f0282874f8 Added information regarding url for the dl image 1.6 2023-02-12 11:45:50 +01:00
gryf 4db0b422b8 Added missing fname from Centos class constructor 2023-02-12 11:45:19 +01:00
gryf c3ee529d95 Make 22.04 default version for ubuntu. 2022-12-24 12:29:49 +01:00
gryf cdcb7ffdce Added implementation for custom image. 2022-11-17 20:34:13 +01:00
gryf 9658a9ef36 Add commandline options for providing custom image.
Two new commandline options are added: image and default-user. When
image parameter has been add there are implications that:

- default-user is also provided by commandline - regardless it is
  already present in yaml config
- distro parameter is ignored
- custom username, which might be provided by yaml file will become
  default-user if absent.

All of that is the consequence, that by providing custom qcow2 image
there is no easy way to determine what operating system is passed by,
therefore it is purely declarative way of creating VM with such image.
2022-11-17 20:27:58 +01:00
gryf 706dfe8688 Decrease memory/disk size of default vm 2022-11-17 19:22:16 +01:00
gryf 8252e189cc Fix issue with condition for extra data 2022-11-16 09:11:27 +01:00
gryf e6d4d8ab7a Fix minor issue with pattern for centos image 2022-11-16 09:10:49 +01:00
gryf b7b4ba5cbc Readme update 1.5 2022-11-15 20:33:10 +01:00
gryf 47766b6cd9 Added ability to point to local qcow2 image.
Instead of downloading image from the network, there is a way to point
out cloud user and image within yaml configuration.
2022-11-15 20:27:14 +01:00
gryf 55cb8d5e30 Better messagingn in conf/modules vbox issues 2022-10-16 08:52:55 +02:00
gryf 276ddd8681 Added bash completion for start/stop commands. 1.4 2022-05-23 12:02:58 +02:00
gryf 0fb0d64db6 Added two new commands for starting and stopping VMs. 2022-05-23 12:02:28 +02:00
gryf 847279a990 Align case for command help messages. 2022-05-23 12:01:59 +02:00
gryf 38ed618b5b Added info if vm is running.
Also, added command for acpi shutdown.
2022-05-23 12:00:55 +02:00
gryf 1c39cd1985 Add ability to set different default username.
During cloud init user might want to change default user from the
distribution to something else. It will not be possible to ssh to such
machine using boxpy ssh command - only using ssh directly with the
correct user name would be possible. In this change there is added
possibility for setting username in boxpy_data section with desired
value to be used in ssh command.
2022-04-22 07:53:50 +02:00
gryf ed25a0d208 Fix typo in message. 2022-04-22 07:53:04 +02:00
gryf 20120d898a Add error message in case of wrong config 2022-04-22 07:52:22 +02:00
gryf e63d83fc7f Don't clutter current directory with checksum files.
In case of Centos, there is a need to get the checksum file first to
figure out the correct image filename, during that process checksum file
was left alone in the current directory. Place it in the temp dir in the
first place and than remove after we know the right image filename.
2022-02-08 20:39:03 +01:00
gryf 0093e32b74 Fix for rebuild command and calling vmdestroy function. 1.3.1 2021-11-04 09:26:38 +01:00
gryf 353d848072 Pass more than one machine to destroy command.
From now on, there is a possibility to pass more than one machine to be
destroyed.
1.3
2021-11-04 08:41:13 +01:00
gryf 4581ab0ed0 Specify from which Python version boxpy is supported. 2021-10-19 19:33:15 +02:00
gryf deba0aa621 Narrow down proposed VMs to running only for ssh command. 2021-10-19 19:32:30 +02:00
gryf 6528813d6a Update examples for multinode setup 2021-10-19 19:31:18 +02:00
gryf 9699e61b35 Exit, if image checksum is wrong. 2021-10-03 19:08:15 +02:00