Skip to content

Commit

Permalink
libvirt: Add storage pool support
Browse files Browse the repository at this point in the history
In order to be able to support disk image resizing in the libvirt
machine driver (through virStorageVolResize), we need to use libvirt
storage pools. This commit sets the name of the storage pool that the
machine driver should be using.
  • Loading branch information
cfergeau committed Oct 22, 2020
1 parent 867a16e commit 278603c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/crc/machine/libvirt/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ import "fmt"

const (
// Defaults
DefaultNetwork = "crc"
DefaultNetwork = "crc"
DefaultStoragePool = "crc"

// Static addresses
MACAddress = "52:fd:fc:07:21:82"
Expand Down
1 change: 1 addition & 0 deletions pkg/crc/machine/libvirt/driver_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ func CreateHost(machineConfig config.MachineConfig) *libvirt.Driver {
config.InitVMDriverFromMachineConfig(machineConfig, libvirtDriver.VMDriver)

libvirtDriver.Network = DefaultNetwork
libvirtDriver.StoragePool = DefaultStoragePool

return libvirtDriver
}

0 comments on commit 278603c

Please sign in to comment.