Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to provision an image with custom disk size #527

Open
nbari opened this issue Sep 27, 2023 · 3 comments
Open

how to provision an image with custom disk size #527

nbari opened this issue Sep 27, 2023 · 3 comments

Comments

@nbari
Copy link

nbari commented Sep 27, 2023

I am creating an image with:

vm image create -d  "base image" <name of VM>

And for provisioning:

vm image provision <uid> <name of vm>

The problem that I have is that if the image was created with a disk of 200GB for example, all the new images that I provision have a disk of the same size, therefore wondering how to adjust the size when creating/provisioning the images

@okalm
Copy link

okalm commented Sep 29, 2023

Have you tried the flag -s ? (from the file /vm/.templates/config.sample)
It can be something like this:
vm image create -d "base image" my_vm -s 50G

@nbari
Copy link
Author

nbari commented Sep 29, 2023

Hi, doesn't work, I think is expected otherwise you could truncate/corrupt the images, I think is easy to create a base image and then via ZFS only increase it from the host

@okalm
Copy link

okalm commented Sep 30, 2023

I think is expected otherwise you could truncate/corrupt the images

Indeed it makes sense.

I think is easy to create a base image and then via ZFS only increase it from the host

Can't tell, but let us know if it works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants