p4lang / tutorials

P4 language tutorials
Apache License 2.0
1.33k stars 878 forks source link

VM login and password #537

Closed eliaspiette closed 9 months ago

eliaspiette commented 9 months ago

Hello, are the login and password on the vm p4 and p4? If so, i still do not get a valid identification.

Have a good day ! Elias

jnfoster commented 9 months ago

Yes. See here:

https://github.com/p4lang/tutorials/blob/master/vm/root-bootstrap.sh#L70

zhihuacc commented 6 months ago

Yes. See here:

https://github.com/p4lang/tutorials/blob/master/vm/root-bootstrap.sh#L70

I typed p4 and p4, but got error and refused to login.

jafingerhut commented 6 months ago

@zhihuacc Did you create a VM using the vagrant up or vagrant up dev commands run within the vm-ubuntu-20.04 directory?

If not, how did you create the system you are trying to log into?

If yes, did you see anything that looked like error messages in the output?

zhihuacc commented 5 months ago

@zhihuacc Did you create a VM using the vagrant up or vagrant up dev commands run within the vm-ubuntu-20.04 directory?

If not, how did you create the system you are trying to log into?

If yes, did you see anything that looked like error messages in the output?

Hi, sorry for late reply. I created vm using vagrant up. The error just says "login incorrect" for p4:p4. But finally I login successfully with vagrant:vagrant. Not sure if it's normal.

RithvikChuppala commented 4 months ago

@jafingerhut @zhihuacc any updates? I'm seeing the same issue. It might be because the script hasn't finished installing yet (as per: https://github.com/p4lang/tutorials/issues/120) - could this be the issue and if so, how would we know that its finished installing? I'm doing this a Ubuntu 18.04 machine running VirtualBox Ubuntu 20.04

jafingerhut commented 4 months ago

You could also try downloading an already-built and lightly tested VM from here: https://github.com/jafingerhut/p4-guide/blob/master/bin/README-install-troubleshooting.md

I follow the instructions in the vm-ubuntu-20.04/README.md file every month to create those images and publish them there. Occasionally something goes wrong, but usually the installation completes as expected, resulting in a VM where I can log in with p4/p4, or with vagrant/vagrant.

zhihuacc commented 4 months ago

@jafingerhut @zhihuacc any updates? I'm seeing the same issue. It might be because the script hasn't finished installing yet (as per: #120) - could this be the issue and if so, how would we know that its finished installing? I'm doing this a Ubuntu 18.04 machine running VirtualBox Ubuntu 20.04

I can login with account vagrant:vagrant, instead of p4:p4 as stated.

RithvikChuppala commented 4 months ago

thanks @jafingerhut, using the prebuilt VM worked!