Linux - Virtualization and CloudThis forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have a Fedora 20 machine (native mode, no VM).
Each time i log in, i set (in .profile) an environment variable ROOT_PATH=/home/ddd/path1 which is then used by all the programs i start later (and which cannot be changed on the fly).
If i want to set ROOT_PATH=/home/ddd/path2, i must update the .profile file, then restart.
Question: It is possible to have 2 instances of the same Fedora20 running at the same time? I want one instance for path1 and another for path2.
Both instances would use the same HDD.
How to do it?
I have a Fedora 20 machine (native mode, no VM).
Each time i log in, i set (in .profile) an environment variable ROOT_PATH=/home/ddd/path1 which is then used by all the programs i start later (and which cannot be changed on the fly).
If i want to set ROOT_PATH=/home/ddd/path2, i must update the .profile file, then restart.
Question: It is possible to have 2 instances of the same Fedora20 running at the same time? I want one instance for path1 and another for path2.
Both instances would use the same HDD.
How to do it?
Thank you!
Create two different users, both with their own .profile file. No need for two OSes.
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233
Rep:
yes, 2 users is what you need, each user account has it's own .profile
running 2 or more simultaneous instances of an operating system would require some level of virtualization, either via a virtual machine running as a guest on top of a 'host' OS (such as virtualbox) or a 'bare metal' virtualization such as the xen hypervisor.
"It is possible to have 2 instances of the same Fedora20 running at the same time?"
A simple answer is no you can't for the most part. Not saying it can't be done just you don't want to even attempt it.
It is possible to chroot and I think that is what you may be asking or getting at.
Thank you all for your answers!
There is another constraint i forgot to mention: in each session i start several servers; i cannot run two instances of the same server on the same computer at the same time because only 1 will successfully bind to configured port, so i need a kind of "processes/memory/network isolation"; i posted my question in this forum because maybe there is a virtualization solution i coould use, but i was unable to find one so far.
If all you want is to have running the same server on different ports or even different IPs on the same machine than virtualization using Xen, KVM, Virtualbox, ..., is definitely overkill, this is a perfect job for LXC containers or, since you run Fedora, systemd-nspawn, it uses much less resources and is very easy to set up.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.