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

Rename instance #255

Open
johnsca opened this issue May 22, 2018 · 21 comments
Open

Rename instance #255

johnsca opened this issue May 22, 2018 · 21 comments

Comments

@johnsca
Copy link

johnsca commented May 22, 2018

It would be nice to be able to rename an existing instance.

@townsend2010
Copy link
Collaborator

@johnsca, yeah I think that's a good idea:)

@Saviq Saviq added this to To do in 19.10 cycle via automation Feb 21, 2019
@Saviq Saviq removed the help wanted label Feb 21, 2019
@Saviq
Copy link
Collaborator

Saviq commented Feb 21, 2019

We should switch to using UUIDs in image paths etc., and have the name just be a label.

@brlin-tw
Copy link

I would really like to have this implemented for making snapcraft-<snapname> instances which are created by multipass launch <image_url> due to download issues.

@Saviq
Copy link
Collaborator

Saviq commented Feb 27, 2019

I would really like to have this implemented for making snapcraft-<snapname> instances which are created by multipass launch <image_url> due to download issues.

Hey @Lin-Buo-Ren, would you please file a new issue describing your download issues? Note snapcraft uses a cloud-init template that you'd need to use. There's no reason why you couldn't multipass launch --name snapcraft-<snapname> snapcraft:core18 to start with - I believe snapcraft will realize the instance is there and use it.

@brlin-tw
Copy link

@Saviq I later found there's a --name option in the multipass launch command that I can make use of, thanks for your help!

@Saviq
Copy link
Collaborator

Saviq commented Feb 27, 2019

@Lin-Buo-Ren yes, that's exactly what I meant :)

@arafatx
Copy link

arafatx commented Aug 17, 2021

So we are not able to rename multpass instance in 2021?

@winkee01
Copy link

winkee01 commented Nov 16, 2021

probably add a rename sub command to multipass

@prncoprs
Copy link

Seem that we can not rename multipass instances now?

@glowinthedark
Copy link

while there doesn't seem to be an option to rename an existing instance, following the hint from @brlin-tw it is possible to use a predefined name (e.g. u20) on creation with:

multipass launch --name u20 ubuntu

@peret2000
Copy link

It seems a very basic functionality. Once an instance is created, it may grow in functions, contents, and seems logical to be able to rename it

@chav-n
Copy link

chav-n commented Nov 17, 2022

The instance resets the hostname on restart. In order to avoid this comment the lines
- set_hostname
- update_hostname
- update_etc_hosts
in the "/etc/cloud/cloud.cfg" file.

@ChangHoon-Sung
Copy link

Any updates?

@artsra
Copy link

artsra commented Feb 23, 2023

Bump

@troxycoru
Copy link

Does someone know how to rename instance (may be via renaming instance file or any config files)?

@pjmattingly
Copy link

This would also be very helpful for my usecase.

Then also, "--name" has no help dialog; It would be useful to know what the naming restrictions are. For example, multipass launch --name "00340599maas" failed, but multipass launch --name "case00340599" works.

@pythoninthegrass
Copy link

So we are not able to rename multpass instance in 2021?

2023 (almost 2024)

@huyz
Copy link

huyz commented Dec 8, 2023

2023 (almost 2024)

The most useless kind of comment on GitHub.

There used to be a time when GitHub users weren't so entitled…

@pythoninthegrass
Copy link

@huyz Renaming VMs is table stakes for hypervisors. Leaving an issue open for 5 years is hardly entitled. Either close the issue as "won't do" or put a time line on it.

@townsend2010
Copy link
Collaborator

townsend2010 commented Jan 4, 2024

An update regarding this...yes, we made a bad decision in the early days of Multipass to key everything off of the instance name and making assumptions around that. The fact we did that has made this seemingly easy request much more difficult than it should be. That said, we are working on a cloning feature which essentially copies and "renames" an instance (among some other things), but we think we can reuse the instance renaming part of that to allow renaming of existing instances. I'm not sure exactly when we can get to work on this after clone is released as we have a lot on our plates, but I really hope we can fix this in 2024.

@ylluminate
Copy link

Thank you for your work on this @townsend2010. As strange of a demand as it is to make of your great tool and an open source project, it is useful and still highly desired - as you know.

I have found myself finding real power with multipass on macOS to run light Linux (Ubuntu) instances in the background instead of using heavier Parallels in cases where I don't need a GUI. Unfortunately I've been bitten a few times now making an instance that I did not plan to have become a long term and integral component of workflow... I find myself highly frustrated to not be able to rename an instance to more meaningful names in these cases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
19.10 cycle
  
To do
Development

No branches or pull requests