Question
Last activity: 30 Aug 2019 20:06 EDT
Even after Bridged Adaptor, not able to connect internet from VM
Hi Team,
I am using Lite Pega 7.3 VM and using Bridged Adaptor.
Still I am not able to access internet from VM. Also I am not sure how to share files between VM and desktop so as I can use internet from my desktop.
Any help in this context is greatly appreciated.
Thanks,
Smita
Thank you @PEDEL for reply.
Actually there is a typing mistake, I am not able to access internet from VM.
The thing I will be using this VM for LSA App Build. So once it is done I want to package it and share with Pega.
I tried google sites but it didnt work from VM.
I have created a shared directory using VM Setting but still I am not able to share.
If sharing didnt work, then I will not be able to use this VM.
I will try the tactics suggested by you and will get back.
Thanks again.
Smita
Something I can't say I have tried is the idea of having a Virtual Machine be able to see a directory on your laptop.
https://www.howtogeek.com/189974/how-to-share-your-computers-files-with-a-virtual-machine/
This way you can transfer files disk-to-disk without worrying about IP addresses.
The last paragraph is worth reading:
If you have multiple virtual machines, you’ll need to set up file sharing separately inside each one, although you can use the same shared folders within multiple virtual machines. Be careful when using shared folders, though. One of the great things about virtual machines is that they operate in their own sandbox—isolated from your real computer. If your virtual machine becomes compromised, the malware could potentially escape your virtual machine by infecting files in your shared folders.
After giving the shared folder idea try, I decided to simply switch VirtualBox's network settings to Host Adapter mode when wanting to transfer files, then switch back to Bridged Adapter mode when needing to access the Internet.
I was starting from scratch a Lubuntu VirtualBox VDI (virtual disk image) download.
From there I downloaded the16.04 Xenial VDI. Then followed the directions from VirtualBox how to add the VDI to its Virtual Media Manager. Then created a new VM pointing it at the VDI. Looks scary at first since it says 500GB but in reality the file is 3.5GB.
The user name is osboxes. Password is osboxes.org. But for some reason the root password was not also osboxes.org which is what it says on their web site. Found the workaround at: https://www.osboxes.org/faqs/
Lubuntu does not support SFTP which is required to connect to it from your laptop using WinSCP. Install instructions below.
export ME=`whoami`
sudo apt install openssh-server
sudo systemctl stop ssh.service
sudo systemctl start ssh.service
sudo systemctl enable ssh.service
sudo groupadd sftp_users
sudo usermod -aG sftp_users $ME
I enabled both NAT and Bridged Adapter on the VM Setting. Then found the IP Addr for eth0 using ifconfig.
Now if you hit that IP with url http://192.168.0.NNN on your local machine and not in the VM - you should be able to open the Pega Instance on VM outside on your local machine.
Finally, you can login and export RAP to local machine.
This approach can also be used to open Pega Instance outside of VM in case you are more comfortable with the tools you have already set up on local machine outside of VM.
Thanks.
In a "Command Line" terminal window, what do you see for "eth0" when you enter "ifconfig"?
architect@pega7:~$ ifconfig
eth0 Link encap:Ethernet HWaddr 00:0c:29:3b:e4:21
inet addr:192.168.118.136 Bcast:192.168.118.255 Mask:255.255.255.0
Are you on an intranet or VPN where the IP address for an internal server starts with 10.?
If so you would not be able to access your VM from your laptop
You should, though, be able to access the internet from the VM which you said you could.
You should also be able to use 10.* addresses from the VM.
If you are not on and intranet of VPN, then in a laptop browser you can use the IP address output by ifconfig. EX: http://192.168.118.136:9800/prweb
You either need to disconnect from VPN to transfer files using a transfer application such as WinSCP.
Or you need to upload your files to a cloud drive, then download them using a VM-resident browser. That may seem slow having to move files twice, but if later you need to download the same file again you not have to launch WinSCP.