Virtual-machine running from DVD? [closed] - vmware

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 5 years ago.
Improve this question
Greetings all,
I have this application which uses Tomcat and PostgreSQL (only involve database reads, no writes).
I need to make this application runnable from a DVD.(target platform is Windows).
So I was thinking to do these:
1) In a VirtualMachine (i prefer
virtualbox) install lightweight linux
distro.
2) Install Tomcat and Postgre,
3) Write virtualmachine into DVD which
loads above virtualmachine image
automatically when executed.
But I am not quite sure whether I can do step 3.Or is it possible ?
Note : My users cannot install VM software in their machines.I just give the DVD and they can execute the VM installed inside the DVD.
Any tips?

Can you put a vm image into a DVD?
Yes
Can you run the vm whithin (inside) the DVD?
Probably not, because the vm itself will need write permission for RAM files and things like that.

Is it possible ?
Sure. This approach is similar to what live CDs do, and a number of VM servers support this natively with no extra work on your part (e.g., VMWare GSX).
Of course, because the VM still needs space to write files (because the guest OS will need to write files even if your application doesn't), you're going to pay a hefty price in memory. Essentially the pieces of the VM that need to be written to must be offloaded to main memory, which reduces the memory available to the rest of the applications you have.

Related

How to create an OpenVPN client in C++? (not a tun/tap manager, a true client) [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 3 years ago.
Improve this question
The way OpenVPN3 library works is by creating a TUN/TAP interface on the host system. On Android, for example, it's not possible to create two different VPN connections at the same time, but I really need to be able to use 2 or more connections at the same time on my Android app (and possibly iOS and other systems like macOS, Linux, Fuchsia).
I'm reading the OpenVPN3 source code. Of course it can be modified to be used as a library in C++ to open direct connections without calling the system but I'm afraid I end up with something insecure. It's very hard to write secure crypto code.
I cannot use other VPN protocols, it must be OpenVPN.
Is there another option? Since OpenVPN is based on OpenSSL, isn't it just a matter of connecting through OpenSSL and then sending packets to the server? (of course doing the proper interpretation of the .ovpn client file)
Is there another way of doing it that I'm missing?
UPDATE:
I opened an issue and the dev said that I can create a TunBuilder interface. Does someone know where to start? There are millions of classes there
There is another project on github, dubbed as OpenVPN which doesn't appear to be the one you've cited. This is all done in C++, using OpenSSL. This build looks like it was benched on a fairly recent of Microsoft Visual Studio (2017) -- so at least all the branches aren't stale! :) I think this project may be closer to what you are looking for.

How to Shrink a VirtualBox Virtual Machine and Free Up Disk Space in nixos guest system? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 4 years ago.
Improve this question
I was following this instruction to try to shrink my virtual nixos.
It says,
You can’t actually use zerofree on your / partition while you’re booted into the standard Linux environment. Instead, you’ll want to boot into a special recovery mode where your normal root partition isn’t mounted.
But I can't find a place to boot into recovery mode in nixos.
Question: How to boot into some mode where my root partiion isn't mounted in nixos? Or how do I do zerofree in nixos?
NixOS does not have a recovery mode that uses an alternative root filesystem. You can do it yourself by adding extra entries to your bootloader by adding boot.loader.grub.extraEntries to your configuration.nix.
This way, you can boot into an another partition. You will need to prepare an extra installation on that partition. But considering that it's a VM there's probably a better option:
You may be able to attach the root filesystem of your stopped VM to a VM that has its own rootfs with zerofree on it. This way, you won't have to muck about with extra partitions.

Virtual machine with support for OpenGL [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 2 years ago.
Improve this question
We have an application that we want to compile, auto-build and auto-test on an virtual machine. The virtual machine "provider" has to be able to be cross-platform as we require this operation to be executed on both windows and several linux distrubtions at the same. Our application is
dependent on OpenGL, and require a rather new version of OpenGL in order to work properly.
We have decent experience with Oracles Virtual Box, where we are able to perform the above action with some effort, since we can hardware acceleration through the host-machine.
However it is somewhat limited as it is quite demanding on the host-machine, and it is not really well-suited for many virtual boxes running at the same time.
So ideally a solution could be Amazon EC2 cloud computing, but here we run into the 'usual' problem with, that we might be able to get a linux distribution (for instance Ubuntu) up and running with ease, but hits a very hard wall once we want to start installing some OpenGL drivers in order to be able to compile and test our application. Even mesa-drivers is impossible to get up and running to a degree that one can run glxinfo or glxgears.
We can't be the only one facing this problem, so what do other do ?
Even mesa-drivers is impossible to get up and running to a degree that one can run glxinfo or glxgears.
Mesa should always be able to fall back to swrast or llvmpipe. However for anything that uses GLX to work you need an X server. Instead of using Kdrive based servers (like Xvfb) I recommend using the regular Xorg server with the dummy driver. You'll have to write an xorg.conf for that.

Is VMWare installed in the current OS? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
My question is about VMWare. I read I can use VMWare to get another OS on my notebook (for example). I have a few questions:
Is it installed in the current OS, like any other application is?
Can it affect in any way the current OS?
I read that someone could get the OS to boot again after installing VMWare, is it possible?
Is the VMWare Workstation what I want?
Thank you :)
Not exactly sure what you are asking.
1. VMWare installs just like any other application.
2. Operating Systems running in the VM generally don't affect your data outside the VM, unless you set up syncing folder sor network shared folders.
3. I don't know how that would happen, but I can't tell you with 100% certainty that it couldn't happen to you.
4. I've been using VirtualBox for a while, mostly with linux type OSes. It's free, and I've had zero problems.
1- Yes.
2- Only Windows and Macintosh (I'm not sure about linux).
3- Yes.
4- I don't know :-D.
VMWare does not come along as a default application in the OS (Windows, Linux, MacOS). You have to download it from here and install it in order to get it work.
No. Since VMWare create a virtual machine for you. This virtual machine provides basic parts of a computer that are required to run an OS properly.
No idea.
The question isn't clear but I guess that you want to ask if there are any other applications similar to VMWare. If that's so, I suggest you VirtualBox. It's lightweight and free.

Does VMWare Fusion 2 have the "linked clones" feature ala VMWare Workstation? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
The title pretty much says it all, but for those of you who are familiar with both the latest VMWare Fusion and the "linked clone" feature found in VMWare workstation, can you confirm whether this feature is currently present or absent in Fusion?
This could be considered an update of this previous question:
Replacing Virtual PC/Server with VMWare Fusion/Server for Development Environments
That specified that Fusion does not support linked clones, but it looked like it may possibly have been written before Fusion 2.0 was out.
I tend to suspect that it does not, since the info on the respective product pages highlights the feature for Workstation but does not mention it at all for Fusion.
VMWare Fusion does support linked clones, but doesn't give you a GUI to create them.
Take a quick look at http://communities.vmware.com/docs/DOC-5611 for details. In short, you'll create the base VM, copy it's virtual hard drive to a safe place, then manually generate new VMs, using the initial hard drive as a base. It's a very straightforward process and you end up with exactly the results you desire.
VMWare fusion 2 does not have a clone feature like VMWorkstation. You will have to physically copy the vm folder to a new location to "clone" the vm. Pain yes, but it's what we have done with VMServer for years.
fusion 2 has full support for linked clones, except for actually creating them. If you use workstation to create clones, you can run them in fusion 2 without any issues or features missing.