I've recently copied my Debian KVM VPS using the dd command to a raw file which I've then converted to a .vdi image.
I would like to setup Virtualbox so that it mimics the network settings of the VPS environment.
The VPS is configured for instance to have: a
static IP of 107.XXX.120.142
Gateway: 107.155.120.1
Netmask: 255.255.255.0
Nameserver: 8.8.8.8
Nameserver: 8.8.4.4
Is there any way to create a virtual network that satisfies these network conditions so that it connects?
----------------------------------------------------------------------------------------------------------------------------
Maybe I'm not explaining the question the right way, very simply I've copied my vps to a virtual machine image, but this vps obviously has static network settings on it like a gateway and IP that doesn't match anymore (since its no longer on the VPS). I'd like to change the virtualbox network settings so it lets the guest virtual machine connect without changing anything in the guest virtual machine.
My goal is to essentially "emulate" the network environment of the guest VPS in VBox. Can it do this?
Network Settings to Mimic VPS guest environment
Network Settings to Mimic VPS guest environment
Last edited by BruceB on 8. Jan 2016, 19:44, edited 2 times in total.
-
socratis
- Site Moderator
- Posts: 27329
- Joined: 22. Oct 2010, 11:03
- Primary OS: Mac OS X other
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Win(*>98), Linux*, OSX>10.5
- Location: Greece
Re: Network Settings to Mimic VPS guest environment
As far as I know, no network options in VirtualBox offer the ability to set the IP as XXXXXXX. If we only knew if XXXXXXX was referring to a private, public or NATed network, we could offer more specific advice, but if you insist on hiding the details, there ain't much we can do.BruceB wrote:static IP of XXXXXXX
Gateway: XXXXXX
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Re: Network Settings to Mimic VPS guest environment
I've disclosed the ip address and gateway. The IP being referred to is public in its vps environment(source). Just for clarification, I don't need VirtualBox to set the IP. I need to configure the gateway IP for NAT that a VM connects to . For example, the default 10.0.2.2 I'd like to change to 107.155.120.1. Or if there's a different tactic to accomplish the process.socratis wrote:As far as I know, no network options in VirtualBox offer the ability to set the IP as XXXXXXX. If we only knew if XXXXXXX was referring to a private, public or NATed network, we could offer more specific advice, but if you insist on hiding the details, there ain't much we can do.BruceB wrote:static IP of XXXXXXX
Gateway: XXXXXX
-
socratis
- Site Moderator
- Posts: 27329
- Joined: 22. Oct 2010, 11:03
- Primary OS: Mac OS X other
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Win(*>98), Linux*, OSX>10.5
- Location: Greece
Re: Network Settings to Mimic VPS guest environment
OK, now that we've cleared that it is a public IP address that you're looking for, the only way that you're going to get it is if you use the Bridged Mode. I hope you read the link about the network options that I gave you, but is short, here's how it works:
- NAT will not work with a public IP. You have to use Bridged Mode.
- Your VM's virtual network card is piggybacking on your host's network card.
- You most probably have to have two network cards; one used by your host and one by your VM.
- If you're using a public IP in your host, you'd better have provisions with your ISP for a second public IP.
- Your VM is assigned an IP automatically if there is a DHCP server (think router). If not, you have to configure your guest with a static IP, the one given by your ISP.
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.