Matt Churchyard
361856d23d
Merge pull request #437 from runhyve/cloud-init-override-hostname
...
Allow override hostname with cloud-init configuration
2022-02-17 08:59:38 +00:00
Matt Churchyard
b6e73e3a31
Merge pull request #440 from runhyve/vm-name-length
...
Allow to use up to 229 characters for VM names on >=13.0
2022-02-15 16:26:56 +00:00
Mateusz Kwiatkowski
346e5bb4bd
Allow to use up to 229 characters for VM names on >=13.0
...
The limit was increased in this commit: https://svnweb.freebsd.org/base?view=revision&revision=349948
2021-11-13 20:49:07 +01:00
Mateusz Kwiatkowski
c1d720d62c
Wait for zvol to appear
2021-11-13 20:26:19 +01:00
Mateusz Kwiatkowski
31bcb7aeef
Allow override hostname with cloud-init configuration
...
Currently hostname passed to cloud-init is set to VM's name.
With this change it's possible to override this with additional field
in network config. Example:
vm create -t grub -c 4 -m 4096M -i focal-server-cloudimg-amd64.img -s 12G -C -k /tmp/.sshpk.68067 -n 'nameservers=1.1.1.1,8.8.8.8;gateway=185.17.43.97;ip=185.17.43.100/27;netmask=255.255.255.224;hostname=myhostname.example.com' my_virtual_machine
2021-11-10 14:20:16 +01:00
Matt Churchyard
3b7560cba6
fix #392 zvol device may not be available immediately
2021-01-05 09:23:28 +00:00
Matt Churchyard
30eea9f3c1
Fix maximum name length in core::rename
2020-02-04 14:59:34 +00:00
Matt Churchyard
6e90fc9143
Create config::yesno to reduce clutter and vars in run functions just to check config file yes/no flags
2020-02-04 14:47:34 +00:00
Matt Churchyard
392a640b24
Fix get_part whitespace handling and add uptime to vm list -v
2020-02-04 10:13:26 +00:00
Matt Churchyard
21db926695
VSZ seems to be fairly useless as it simply matches configured memory
2020-01-31 14:00:53 +00:00
Matt Churchyard
c5250b8097
ps output appears to use K by default, not bytes
2020-01-29 14:50:13 +00:00
Matt Churchyard
7fcf2c1d92
Provide a verbose list option to include cpu and memory usage from ps(1)
2020-01-29 14:45:26 +00:00
Matt Churchyard
495a62c671
Pull in bootdisk change from 1.4 - issue #344
2020-01-14 10:23:03 +00:00
Matt Churchyard
de1a32d322
Merge pull request #319 from eborisch/iscsi
...
Add (existing session) iSCSI support.
2019-11-05 09:40:21 +00:00
Mateusz Kwiatkowski
7148594463
Include all files from cloud-init dir in seed.iso
2019-09-03 15:23:31 +02:00
Mateusz Kwiatkowski
fe0e1151ed
Move cloud-init bits to separate function
2019-08-30 21:11:05 +02:00
Mateusz Kwiatkowski
9dfa3e1f0c
Generate mac and pass to cloud-init
2019-08-21 23:38:59 +02:00
Eric A. Borisch
09b89a973a
Add (existing session) iSCSI support.
2019-06-25 17:08:14 -05:00
Jason Tubnor
27c48353cf
Add uefi-custom option
...
Modified the deprecation check to advise of the uefi-custom option.
2019-04-24 11:17:40 +10:00
Olivier Cochard-Labbé
36e35ff899
Fixing destroying vm in non-ZFS mode
...
Fixing issue https://github.com/churchers/vm-bhyve/issues/300
2019-04-16 17:26:18 +02:00
Matt Churchyard
d885a79ebd
Fix #283 we shouldn't try to create a sparse file if template specifies a custom disk
2019-02-08 14:22:15 +00:00
Mateusz Kwiatkowski
76ae90be71
Make cloud-init optional and add pre-flight checks
2019-01-28 12:20:11 +01:00
Mateusz Kwiatkowski
6df1c74a7d
Add support for injecting public key with cloud-init
...
Ref. https://github.com/churchers/vm-bhyve/issues/289
2019-01-28 11:52:06 +01:00
Mateusz Kwiatkowski
9e561ac284
Check qemu-img exit code
2018-12-05 00:31:04 +01:00
Mateusz Kwiatkowski
48a2a518cc
Add missing options to getopts in core::create
2018-11-29 14:29:01 +01:00
Matt Churchyard
b32f6826ef
Merge branch 'master' into vm-parameters
2018-11-29 11:18:59 +00:00
Matt Churchyard
36ad50e907
Merge pull request #262 from runhyve/feature/virtual-images
...
Initial support for cloud images
2018-11-29 11:17:43 +00:00
Mateusz Kwiatkowski
c76ae38bd2
Ability to override CPU and memory during VM creation
...
Fixes #273
2018-11-28 21:36:20 +01:00
Matt Churchyard
ed18290d1d
Make sure we provide a success exit code on create/destroy
2018-11-14 11:15:25 +00:00
Mateusz kwiatkowski
e8953f273e
Check whether qemu-img is available
2018-10-17 11:25:09 +02:00
Mateusz kwiatkowski
c880673426
Add support for .tar.gz cloud images
2018-10-17 11:13:40 +02:00
Mateusz kwiatkowski
9099746cba
Extract image decompression to separate function
...
I also added support for .gz file while on that.
2018-10-17 10:13:49 +02:00
Mateusz kwiatkowski
5df6608b59
Use qemu-img dd to write image to volume
...
qemu-img dd should detect format of image and automatically convert
it to raw while writing to volume
2018-10-17 08:42:52 +02:00
Mateusz kwiatkowski
db6df5b4a6
Unbreak creating virtual machines without cloud image
2018-10-17 08:07:49 +02:00
Mateusz kwiatkowski
3ffbb52d5c
Initial support for cloud images
...
Ref. https://github.com/churchers/vm-bhyve/issues/256
2018-10-17 07:47:19 +02:00
Matt Churchyard
c2ca98d4af
Warn users that we've combined uefi setting into loader
2018-10-16 09:24:10 +01:00
Matt Churchyard
5df10f2408
Add a "vm restart guest" command
...
This causes a guest shutdown but then restarts the guest without requiring a full
reload or destroying/re-creating network devices.
2018-10-09 11:09:09 +01:00
Matt Churchyard
f235a8ebbd
Change loader="" to support bhyveload/grub/uefi
...
Makes some sense as we display "uefi" under "Loader" when listing guests and only one can be set.
Old uefi="" setting can still be set to "csm" to choose the csm firmware.
2018-10-08 11:39:49 +01:00
Matt Churchyard
0cff09e2d8
may change this to "media" datastores at some point as it can be image files as well
2018-10-04 14:58:02 +01:00
Matt Churchyard
b9220eef62
Fix issue with ordered shutdown #244
2018-09-17 14:50:56 +01:00
Matt Churchyard
3deb348668
Various style changes
2018-07-02 13:53:35 +01:00
Matt Churchyard
a8e3b1c5cc
Change all option handling to be "vm subcommand <opts>"
...
To reduce code we originally parsed some options globally, such as "vm -f start ...".
However this was confusing and inconsistent, especially in relation to other commands
such as zfs(8).
2018-06-29 09:03:27 +00:00
Matt Churchyard
6b4b97584e
Tidy some functions up and limit switch names to 12 chars
2018-06-27 08:34:12 +00:00
Matt Churchyard
fed0ba11db
Have a go at ordered shutdown request #194
...
Look at running guests and try to stop any listed in $vm_list in reverse order.
Anything else is told to stop in bulk first
2018-06-26 14:06:55 +00:00
Matt Churchyard
4169a47875
Add support for vm destroy guest@snap. Fixes #126
2018-06-25 12:20:47 +00:00
Matt Churchyard
1dc6135cc9
Fix #147 . Exit with message if grub-bhyve requested but not found
2018-06-20 12:30:41 +00:00
Matt Churchyard
b4c24b33e8
Finally address #110
...
Use the -f option to force commands such as reset/destroy/poweroff.
Unfortunately this same option is used for foreground mode when running a vm,
but -f ties up with the force option for many other commands.
2018-06-20 11:59:09 +00:00
Matt Churchyard
a85ef7c4e9
Make sure owner the owner can read disk image files
2018-02-09 09:52:23 +00:00
Mark Johnston
4c931a7e01
Fix exit status for many vm commands
...
The pattern "[ $? -ne 0 ] && util::err ..." is problematic since it
leaves an exit status of 1 if the test fails, which is the non-error
case. So various commands (e.g., vm datastore add) return status 1 even
when they succeed if this pattern appears as the last line of a command
implementation.
Fix this by mechanically converting this pattern to
"[ $? -eq 0 ] || util:err ...".
2018-02-06 17:39:30 -05:00
Matt Churchyard
ac2cc9265c
Add support for virtio_console devices
2016-11-11 15:50:13 +00:00