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

Create VM with bootdisk and additional disk via gce_vm_create #190

Open
assanstreamline opened this issue Oct 28, 2022 · 2 comments
Open
Assignees

Comments

@assanstreamline
Copy link

assanstreamline commented Oct 28, 2022

Is your feature request related to a problem? Please describe.
@muschellij2 and I would like to launch a GCP VM with boot disk and additional disks. The end goal is to mount these additional disks for saving data from RStudio.

Describe the solution you'd like

we would like to have the possibility to add multiple disks at VM creation

So, when creating the VM with 1 source disk + 1 additional disk I would call the function like below:

gce_vm_create <- function(name,
                          predefined_type = "f1-micro",
                          image_project = "debian-cloud",
                          image_family = "debian-10",
                          image = "debian-10-buster",
                          disk_attached_name="attached-disk-name",
                          network = gce_make_network("default", project = project), 
                          project = gce_get_global_project(), 
                          zone = gce_get_global_zone(),
                          dry_run = FALSE,
                          disk_size_gb = 20,
                          disk_attached_size_gb=10,
                          use_beta = TRUE)

Alternative
We can always create the instance with the current gce_vm_create with 1 disk_source and add + attach supplementary disks after creation (via gce_make_disk and gce_attach_disk)

Do you think this feature would make sense ?

@MarkEdmondson1234
Copy link
Collaborator

Sure, but is this not possible now with the attach disk functions? Or is that only working for the boot disk?

@assanstreamline
Copy link
Author

Currently you have to attach disks after VM creation via gce_attach_disk.
I managed to 1 create the VM, 2. create the disks 3. attach the disks.
What we would like is to have the additional disks attached to the VM at directly at creation, so that these disks can be easily mounted at startup.

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

No branches or pull requests

2 participants