minishift unable to set profile name with single letter alphanumeric character

As per the current changes profile name should be alphanumeric. However there is an issue of profile name having single char or a single digit number. In both the case minishift fails to set the profile. Case 1:

Amits-MacBook-Pro:bin amit$ ./minishift profile set 'a'
Profile names must consist of alphanumeric characters only.
Amits-MacBook-Pro:bin amit$ ./minishift profile set 'aa'
Profile 'aa' set as active profile.

Case 2:

Amits-MacBook-Pro:bin amit$ ./minishift profile set '1'
Profile names must consist of alphanumeric characters only.
Amits-MacBook-Pro:bin amit$ ./minishift profile set '11'
Profile '11' set as active profile.
Asked Jun 13 '22 07:06
avatar amitkrout
amitkrout

9 Answer:

We do need to check if _ is vaild VM name for different hypervisors otherwise we might force it to use minimum 2 characters.

1
Answered Nov 24 '17 at 06:50
avatar  of praveenkumar
praveenkumar

I think single alpha numeric character is fine with any hypervisor. So we should fix it asap.

1
Answered Nov 24 '17 at 08:26
avatar  of LalatenduMohanty
LalatenduMohanty

We do need to check if _ is vaild VM name for different hypervisors otherwise we might force it to use minimum 2 characters.

You mean - right? not _. I do not think - should be allowed as a single character for profile name as - should be only used as a separator.

1
Answered Nov 24 '17 at 08:30
avatar  of LalatenduMohanty
LalatenduMohanty

You mean - right? not _.

@LalatenduMohanty No, I meant _ only because write now we are using \w which is word range and contain _ also so if we allow single character that means _ shouldn't have any issue.

1
Answered Nov 24 '17 at 09:08
avatar  of praveenkumar
praveenkumar

I am afraid _ (underscore) is not accepted as a valid character for VM name in KVM/libvirt. I need to first cross check it.

1
Answered Nov 24 '17 at 11:14
avatar  of LalatenduMohanty
LalatenduMohanty

Resolved via https://github.com/minishift/minishift/pull/1749/

1
Answered Nov 30 '17 at 18:04
avatar  of LalatenduMohanty
LalatenduMohanty

Thanks for sharing the link I never read about it before. In return, I would like to share nhs argos discount and some other discount codes that will be beneficial for everyone visiting here. If you are planning to travel you can go through the travelodge discount code student, it is easy to avail. 

1
Answered Dec 08 '21 at 11:32
avatar  of thisiskatewinsle
thisiskatewinsle

It is all set to rock the Drift Hunters with its impressive performance and ability to glue users for hours because it got thousands of active users within a few days.

1
Answered Apr 21 '22 at 07:04
avatar  of Effertz Braden
Effertz Braden

The same problem occurred to me as well. While I was designing the website for my client i.e professional cv writing service. try adding - instead of _ this might help you out rest of the coding is ok

1
Answered Jun 13 '22 at 07:06
avatar  of Alexa Chris
Alexa Chris

Read next