diff options
author | baude <bbaude@redhat.com> | 2021-03-25 10:35:43 -0500 |
---|---|---|
committer | baude <bbaude@redhat.com> | 2021-03-27 10:08:11 -0500 |
commit | 7a79f708a4521ba7c42da83a204a01ace010ace3 (patch) | |
tree | 42e4128908fa127d158ad0673b033740d416d1f4 /pkg/machine/config.go | |
parent | ec47312eebf11abcf74b5bf06df19ee2fb7b8afd (diff) | |
download | podman-7a79f708a4521ba7c42da83a204a01ace010ace3.tar.gz podman-7a79f708a4521ba7c42da83a204a01ace010ace3.tar.bz2 podman-7a79f708a4521ba7c42da83a204a01ace010ace3.zip |
Podman machine enhancements
Podman machine remove is now called `rm`.
Podman machine create now supports resizing the image to the value of
--disk-size as provided. The default is to 10G.
Added systemd unit file on guest via ignition that sends a Ready message
to the host over a virtio-socket so that we know when the VM is booted
and ready for use.
Podman machine commands no longer require a VM name as an argument. A
default VM name is defined and if no VM name is provided as a arg, the
default will be used.
[NO TESTS NEEDED]
Signed-off-by: baude <bbaude@redhat.com>
Diffstat (limited to 'pkg/machine/config.go')
-rw-r--r-- | pkg/machine/config.go | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/pkg/machine/config.go b/pkg/machine/config.go index 4933deee8..273deca00 100644 --- a/pkg/machine/config.go +++ b/pkg/machine/config.go @@ -7,19 +7,19 @@ import ( "path/filepath" "github.com/containers/storage/pkg/homedir" + "github.com/pkg/errors" ) type InitOptions struct { - Name string CPUS uint64 - Memory uint64 + DiskSize uint64 IgnitionPath string ImagePath string - Username string - URI url.URL IsDefault bool - //KernelPath string - //Devices []VMDevices + Memory uint64 + Name string + URI url.URL + Username string } type RemoteConnectionType string @@ -27,6 +27,8 @@ type RemoteConnectionType string var ( SSHRemoteConnection RemoteConnectionType = "ssh" DefaultIgnitionUserName = "core" + ErrNoSuchVM = errors.New("VM does not exist") + ErrVMAlreadyExists = errors.New("VM already exists") ) type Download struct { |