mirror of
https://github.com/cirruslabs/orchard.git
synced 2026-09-30 03:51:43 +02:00
orchard create vm: introduce --disk-size command-line argument (#313)
This commit is contained in:
@@ -251,6 +251,14 @@ func (vm *VM) cloneAndConfigure(ctx context.Context) error {
|
||||
}
|
||||
}
|
||||
|
||||
if diskSize := vm.Resource.DiskSize; diskSize != 0 {
|
||||
_, _, err = tart.Tart(ctx, vm.logger, "set", "--disk-size",
|
||||
strconv.FormatUint(diskSize, 10), vm.id())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
// Randomize VM's MAC-address, this is important when using shared (NAT) networking
|
||||
// with full /var/db/dhcpd_leases file (e.g. 256 entries) having an expired entry
|
||||
// for a MAC address used by some OCI image, for example:
|
||||
|
||||
Reference in New Issue
Block a user