We’d like to remind Forumites to please avoid political debate on the Forum.

This is to keep it a safe and useful space for MoneySaving discussions. Threads that are – or become – political in nature may be removed in line with the Forum’s rules. Thank you for your understanding.

📨 Have you signed up to the Forum's new Email Digest yet? Get a selection of trending threads sent straight to your inbox daily, weekly or monthly!
The Forum now has a brand new text editor, adding a bunch of handy features to use when creating posts. Read more in our how-to guide

Virtual Machines

Hi Guys,
Not being in the slightest bit techi would someone be able to explain to me the fors and against of a Virtual Machine and i it correct that someone told me you can run 2 screens side by side and each screen is basically run as separate machines, does it also change your IP address, sorry if all this sounds dumb but i really dont have a clue about this kind of stuff :doh:
«1

Comments

  • Why? is the best question, i.e. what are you trying to achieve
    4.8kWp 12x400W Longhi 9.6 kWh battery Giv-hy 5.0 Inverter, WSW facing Essex . Aint no sunshine ☀️ Octopus gas fixed dec 24 @ 5.74 tracker again+ Octopus Intelligent Flux leccy

    CEC Email energyclub@moneysavingexpert.com
  • basically run as separate machines, does it also change your IP address

    Basically yes, if you delve deeper then "it depends"

    "IP address" is not as universal as you may think. If you have a network of 10,000 computers each one on the network will have a unique IP however if there is only a single access point to the internet the outside world will only see a single IP for all 10,000 machines. With a few ISPs, even all their customers will have a single IP so the ISP only sees 1 IP for the network and the outside world sees only 1 IP for all customers of that ISP
  • Basically yes, if you delve deeper then "it depends"

    "IP address" is not as universal as you may think. If you have a network of 10,000 computers each one on the network will have a unique IP

    In fact, the standard set-up for desktop virtualisation has each of the guest operating systems NAT'd behind the host operating system's IP number. There are other ways to do it, and it's perfectly possible to instead bridge them and have them each get an IP number on the LAN. But out of the box, the default configuration has one IP number per hardware platform.

    I've got a /28 (16 IPv4 addresses) and a /48 (1208925819614629174706176 IPv6 addresses) at home, so all the VMs have their own public IP number. But that's not the standard setup.
  • In fact, the standard set-up for desktop virtualisation has each of the guest operating systems NAT'd behind the host operating system's IP number. There are other ways to do it, and it's perfectly possible to instead bridge them and have them each get an IP number on the LAN. But out of the box, the default configuration has one IP number per hardware platform.

    I've got a /28 (16 IPv4 addresses) and a /48 (1208925819614629174706176 IPv6 addresses) at home, so all the VMs have their own public IP number. But that's not the standard setup.

    You don't say!
  • esuhl
    esuhl Posts: 9,409 Forumite
    Part of the Furniture 1,000 Posts Name Dropper
    Hi Guys,
    Not being in the slightest bit techi would someone be able to explain to me the fors and against of a Virtual Machine and i it correct that someone told me you can run 2 screens side by side and each screen is basically run as separate machines, does it also change your IP address, sorry if all this sounds dumb but i really dont have a clue about this kind of stuff :doh:

    Imagine a window on your PC in which you can see the whole screen of another computer. That computer can be running any operating system (so long as it's supported/compatible with the virtualisation software).

    A virtual machine won't change your existing IP addresses (assuming you're using IPv4). If you use network address translation (NAT) to connect the virtual machine's network interface to your network, the guest operating system (i.e. the one running as a virtual machine) will have its own local IP address on your local network's subnet. The IP address of your internet connection will be used to route all internet traffic from all your devices.

    https://en.wikipedia.org/wiki/Network_address_translation
  • Mr_Toad
    Mr_Toad Posts: 2,462 Forumite
    As others have said. What are you wanting to do?

    I have several VMs on my Mac;

    Oracle Enterprise Linux for Oracle development stuff.
    Windows 8 - solely so I know what I'm doing when friends ask for support.
    Raspberry Pi, again for development work and testing scripts that I wrote for my robot.
    Several different Linux distros for testing of scripts etc.
    One by one the penguins are slowly stealing my sanity.
  • securityguy
    securityguy Posts: 2,465 Forumite
    Part of the Furniture 1,000 Posts Combo Breaker
    esuhl wrote: »
    If you use network address translation (NAT) to connect the virtual machine's network interface to your network, the guest operating system (i.e. the one running as a virtual machine) will have its own local IP address on your local network's subnet.

    That's not quite right. If you run NAT on the host, which is the standard set up, then the guests have separate IP numbers on a network which is internal to the host machine. They're all NAT'd to the address of the host as they are routed on to your local network, and then NAT'd again when they leave your local network for the Internet (assuming you're NAT'd at that point).

    If you want each guest VM to have a separate IP number on the local network, so that you can (for example) ssh/rdp/vnc in to the guest from elsewhere on the local network, then you need the host to bridge, not NAT.
  • paddyrg
    paddyrg Posts: 13,543 Forumite
    If you're asking, then VM's probably aren't the answer you're looking for.
  • tronator
    tronator Posts: 2,859 Forumite
    Part of the Furniture 1,000 Posts Name Dropper
    In fact, the standard set-up for desktop virtualisation has each of the guest operating systems NAT'd behind the host operating system's IP number. There are other ways to do it, and it's perfectly possible to instead bridge them and have them each get an IP number on the LAN. But out of the box, the default configuration has one IP number per hardware platform.

    I've got a /28 (16 IPv4 addresses) and a /48 (1208925819614629174706176 IPv6 addresses) at home, so all the VMs have their own public IP number. But that's not the standard setup.

    I think the OP's head just exploded :D

    @OP: If you only want to use 2 screens, then you only need a graphics card with two outputs and configure it accordingly.
  • I've got a /28 (16 IPv4 addresses) and a /48 (1208925819614629174706176 IPv6 addresses) at home, so all the VMs have their own public IP number. But that's not the standard setup.

    Mine is similar, although no IPv6 yet (soon though and driven by virtualisation).
    Proud member of the wokerati, though I don't eat tofu.Home is where my books are.Solar PV 5.2kWp system, SE facing, >1% shading, installed March 2019.Mortgage free July 2023
This discussion has been closed.
Meet your Ambassadors

🚀 Getting Started

Hi new member!

Our Getting Started Guide will help you get the most out of the Forum

Categories

  • All Categories
  • 353.5K Banking & Borrowing
  • 254.1K Reduce Debt & Boost Income
  • 455K Spending & Discounts
  • 246.6K Work, Benefits & Business
  • 602.9K Mortgages, Homes & Bills
  • 178.1K Life & Family
  • 260.6K Travel & Transport
  • 1.5M Hobbies & Leisure
  • 16K Discuss & Feedback
  • 37.7K Read-Only Boards

Is this how you want to be seen?

We see you are using a default avatar. It takes only a few seconds to pick a picture.