no internet on cloned virtual machine (Vmware workstation) - centos

so i setup a centOS vm in VMware workstation, installed qradar..everything ran fine. I call this vm as QR1.
I was able to use qradar console on QR1 from my host machine, the internet works perfectly fine in QR1.
I make a full clone of QR1 called it QR2.
I boot it up and only running QR2 vm (QR1 is closed) but there is no internet on this vm. Even though all the network setting are same as QR1 and QR1 works just fine(i double checked).
QR2 has same adapter, same ip, same gateway and dns as of QR1 but it doesnt work...
previously i was thinking that i cannot have them both running at same time but QR2 just doesnt connect.
I am also not able to ping QR2 from my host and other way around.
What could be causing this ?

According to this vmware link reference, try these steps:
To change the MAC address of the Linux operating system:
Connect to vCenter Server using the vSphere Client Right-click the
virtual machine and click Edit Settings. Click Network adapter and
note the MAC Address.
For example, you see a MAC Address similar to:
xx:xx:xx:xx:xx:xx
1.Power on the Linux virtual machine.
2.Open a console and log in as root.
3.Change directory to etc/sysconfig/network-scripts.
4.Edit ifcfg-eth0 using a plain text editor and update the MAC address to reflect the MAC address in Step 3.

Related

access windows 10 localhost from mac running parallels 14

How can I access the localhost of windows 10 from my mac.
I'm running parallels 14 from my mac.
If I look at my hosts file it looks like this:
10.211.55.3 windows-10.shared windows-10 #prl_hostonly shared
BUt I cannot curl windows 10 or 10.211.55.3 windows-10.shared
In configuration / setting of Window Parallels, select tab "Hardware" and look for Network. Make sure source option is selected as Shared Network (Recommended).
In Macbook, open System Preferences > Network, you will see IP address. Copy this IP address, you will need it to run as host for your local server.
Run local server with the host of the copied IP address. Use the same ip address to access your local server in Window Parallels' browsers.

Access guest from virsh

I am running Centos 7 x86-64. I installed a guest (again Centos 7) through kickstart as an exercise. I prepared my kickstart file, I validated it and I launched with virt-install.
If something went wrong with the network configuration (During install I got no problem, I created a local repo on Host FTP server as source for the install) how can I connect to the machine?
Only SSH or virsh foresee some other connection method?
How can I find my machine running network configuration from outside?
I am running a barebone Centos7 installation so only command line, no graphical interface at all.
Thanks,
M.
You can ssh to your physical host from another one having graphical interface with X forwarding enabled (ssh -X machinename), and look at the the VM with virt-manager
You will need X running on the machine you're connecting from. For Mac OS it's XQuartz

How to use a webserver installed on a guest machine from the host

I am using VMWare player and I have a webserver installed in my Linux guest machine
(Linux Mint with Tomcat).
I want to access the webserver from my host machine
(Windows 7).
What are the steps required?
Thank you
On your Linux box (the guest), open a terminal, and type:
ifconfig
Look at the output, you should see a INET ADDR (or something like that) and it will have your ip address beside it. Something like 192.168.7.10 (this is an example).
Then go back to your host, amd in a web browser type in 'http://(the ip you just found)'
This should connect to your webserver
Alternatively, use the hostname command on the guest Linux machine to figure out its name (I think the default is ubuntu), then use it from your host -- e.g. http://(the name you just found) (in my case, http://ubuntu/)

How to use RDC with VirtualBox and OSX

I'm trying to do some local RDC testing using VirtualBox. The host is OSX.8, the VM is ubuntu, and VirtualBox is version 4.1.22.
The VM starts fine without any problems. I shut it down and choose "Enable Server" from the Remote Display section of the Display options and start again, and again it starts fine. Note that the port is left default and the authentication is "null".
I start Microsoft's RDC (v2.1.0) and type in 'localhost' and get: You were disconnected from the Windows-based computer because of network problems.
I try 127.0.0.1 and get the same error. Then I type in the IP of my (host) computer and get the same error. I know the loopback address avoids the firewall but I turned it off anyway and got the same error.
I get the same error whether I'm using NAT networking or bridged. What am I doing wrong?
I should note that this is a vanilla install of VirtualBox and I haven't added any extensions or guest additions or anything like that.
Seems I'm doing everything right. What am I missing? Thanks for the help!
Problem Solved! You have to install the "VirtualBox 4.1.22 Oracle VM VirtualBox Extension Pack" (available on the VB download page) to make RDC work. I wish it would tell you this when you click "enable server" but I guess that's asking too much. I hope this helps someone else.

Accessing documents on a http server running in a virtual machine

I run Windows 7 as my main OS, and for development work I installed CentOS on a virtual machine under VirtualBox. Everything is installed, including httpd and php with mysql, but I can't figure out what IP to use to gain access to the server.
For example, I used to have XAMPP installed on 7 and I just used "localhost" to get to the servers document root, but I have no clue what it is for the virtual machine.
I have tried "locahost", "192.168.11.2" (my address on the network) and my own IP address and I can't seem to get it working.
Any help would be appreciated. Thank you. :)
I don't know VirtualBox, but can you do an ifconfig from the terminal window to your VM. If it doesn't give you a terminal window, your CentOS setup probably does DHCP to get an address. Browse to the web interface of your home router (192.168.11.1?) and check the DHCP clients table to see if it registered and get its address.