gasilmybest.blogg.se

Set magic engine to boot fro g drive
Set magic engine to boot fro g drive







set magic engine to boot fro g drive

The size should match what you see in the Disks panel and should not be mounted to anything

  • Run lsblk to see a list of disks, their names, sizes, and mountpoints.
  • Create a new directory to mount this disk to: sudo mkdir /DIRECTORYNAME.
  • In Google Cloud Shell run: gcloud compute instances attach-disk NAMEOFINSTANCETOATTACHTO -disk=NAMEOFDISK (Again, NAMEOFDISK should be the same as what you picked for NAMEFORNEWINSTANCE) You should see in the Disks panel that it's now attached to your new instance.
  • SET MAGIC ENGINE TO BOOT FRO G DRIVE HOW TO

    You should see a disk named the same as whatever you picked for NAMEFORNEWINSTANCEĪttach Disk: (not exactly the same topic but putting the steps here for anyone who needs to know how to do this)

    set magic engine to boot fro g drive

    Don't check the box to delete the boot disk. Uncheck the box for "Delete boot disk when instance is deleted". Find the Instance that was just created.I couldn't get it to work just creating a new disk.) Run this command to create a new INSTANCE from the disk: gcloud compute instances create NAMEFORNEWINSTANCE -image IMAGENAMEYOUCHOSE -image-project ORIGINALPROJECTNAME (Yes, we're creating a new instance even though you really only want to create a new disk.Open Google Cloud Shell (button on top right of GCE console).I'm also not 100% positive this was a necessary step in the end) In Role(s) add the role: Compute Engine => Compute Image User (this assumes you're the owner of both projects. Go to IAM and look for your email address.(highly influenced from many other answers) Tried my best to follow all the directions here and from Google but couldn't get a brand new Disk created without creating an Instance first. I had an awful time getting data on a disk from one of my projects to another. You will end up with a copy of the given disk on the other project. (above command only works if the drive isn't live (attached), if you have to drop the VM make sure you don't let it delete the drive - make sure "Delete boot disk when instance is deleted" isn't checked if you use the web UI!)Īnd use what is hinted at by Jens, (which is spelled out in the answer to SO: How to share google compute engine images across projects?) I.E: gcutil -service_version="v1" -project= addinstance -machine_type= -network="default" -external_ip_address="ephemeral" -zone= -image="" -persistent_boot_disk="true" If you combine process in the document IanGSY references for turning the disk into an "image" I.E: gcloud compute images create example-image -source-disk example-disk -source-disk-zone ZONE While the following won't directly migrate a Persistence Disk, it will let you make a copy of one on a different project with only two commands.









    Set magic engine to boot fro g drive