root and osboxes.org worked. The default osboxes username was not allowing me to login.
3 Likes
@smith2515
If you become root user, use ls /home
. You will find ‘osboxes’ user, set new password for osboxes with “passwd osboxes”. Restart your computer and try to login with new password.
1 Like
mahesh
February 5, 2023, 7:34am
#6
Hello @waiyanpyaesone06 ,
I am also facing the same issue on my Windows 11. I have downloaded the CentOS 9 image from osboxes. When I start the vm, it prompt me to enter a username and password. I have tried password osboxes.org and root but no luck.
Ayman
February 5, 2023, 10:14am
#7
try
Username: root
Password: osboxes.org
1 Like
mahesh
February 14, 2023, 6:07pm
#8
Hi @Ayman ,
Thanks, it worked. Now I am able to log in to VM. But when I try to ssh from a Windows machine using putty or mobaXterm then it returns an “Access Denied” error.
mmkmou
February 14, 2023, 11:19pm
#9
Hi @mahesh ,
Check on sshd_config file, if user root is authorized to ssh, the best way is to create a new user and add him to sudo group
adduser <new_user>
usermod -aG sudo <new_user>
and now use this new user on ssh
Regard
Hi @mahesh ,
Did you try the above method shared by @mmkmou ?
Regards,
mahesh
February 22, 2023, 4:50pm
#11
Hi @Tej-Singh-Rana , Sorry for the late reply. Yes, I created a new user and added it to sudoers. I am able to log in using the new user in VirtualBox. But when I try to log in through any other client such as Putty or mobaXtream it doesn’t connect.
When I run the ip addr show command, it doesn’t show the IP address.
After googling a little bit, I found that I need to activate the network. I executed nmcli con up ens33 to activate it. Now when I run ip addr show , it started to show the IP address.
But when I restart the virtual box the setting goes away. I am activating the network whenever I restart the virtual box. Can you please let me know how can I activate it permanently?
@Ayman please assist here.
mmkmou
February 22, 2023, 11:40pm
#13
@mahesh
How did you configure the network on VirtualBox? Can we have a screenshot ?
Regard
mahesh
February 25, 2023, 12:58pm
#14
Hi @mmkmou , I used the Bridged Adapter . Please find the settings in the attached screenshot.
Ayman
February 25, 2023, 2:29pm
#15
Hello @mahesh
What’s the output of this command please? nmcli connection show
mahesh
February 26, 2023, 6:02am
#16
The device column is empty.
Ayman
March 2, 2023, 11:24pm
#17
Hello @mahesh
Please execute the below command and give it a try
nmcli connection up enp0s3
mahesh
March 3, 2023, 10:54am
#18
Hello @Ayman , It will work if I execute the above command but I am facing the same issue when I shut down and start the VM again.
As I mentioned before in my comment, after restarting the VM, if I execute ip addr show
command, it shows an empty device column.
So every time I restart the VM I am executing the nmcli connection up enp0s3
command to activate the connection.
Ayman
March 3, 2023, 8:07pm
#19
Hello @mahesh
Please try this command and try again
nmcli con mod enp0s3 autoconnect yes
mahesh
March 6, 2023, 1:42pm
#20
Hello @Ayman , It’s working now. Thanks for your support.
when i am running nmcli con up ens33 it’s giving me an error ‘unknown connection ens33’
If you have configured the bridged adapter in VirtualBox as described in the course, then use this guide to enable networking
# How-To: Networking on CentOS 7
Applies to:
* Ansible for the Absolute Beginners ([KodeKloud](https://kodekloud.com/courses/ansible-for-the-absolute-beginners-course/), [Udemy](https://www.udemy.com/course/learn-ansible/))
* DevOps Pre-Requisite Course ([KodeKloud](https://kodekloud.com/courses/devops-pre-requisite-course/))
**Update** - I've now tested this on CentOS 9 image from oxboxes. The following steps also work for this, so by definition will work for CentOS 8 too. In CentOS 9, you'll find the terminal app from `Activities` at the top left, then click its icon at the bottom of the screen.
# Important
VirtualBox does not currently work correctly on Apple M1/M2 computers. We wait for Oracle who make VirtualBox to create a stable release.
This will only work for Intel Mac laptops.
# Outline
This guide will show you how to get networking functioning correctly on CentOS 7 desktop image from oxboxes that is used in the above courses. It is supplemental to the install instructions given in the courses. If you cannot connect to the VM using SSH (MobaXterm etc), or if the VM cannot reach the Internet, then this guide is for you!
This file has been truncated. show original
Deleted this post, since it is too long to be in a single post due to too many “links” (perceived) and my post is longer then 3 replies.
So I added it to my github repo
Hello, Everyone.
I experienced a similar issue with the [osboxes CentOS 9 VirtualBox Image](https://www.osboxes.org/centos/#centos-9-vbox) . In my case the bridge and network interface was not wired-up (connected) and the info for logging was incorrect.
Host: Windows 10
VirtualBox 7.0.12 with Extension pack installed
Guest: CentOS Server 9 (64 bit).vdi
Steps for my resolution: (after boot)
1. Logon as root using same password as osboxes
```
root
osboxes.org
```
2. Created the osbox user with the correct password
```
# useradd osboxes
# passwd osbox
```
Changing password for osboxes. \
This file has been truncated. show original