Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [virtual-machine]

A virtual machine (VM) is a guest Operating System running in a completely isolated environment within a normal host operating system. Modern virtual machines are implemented with either software emulation or hardware virtualization or (in most cases) both together.

212
votes
17answers
125k views

Any reason NOT to run Linux in a VM all the time?

I've switched to using Arch Linux for most of my day to day work and don't need Windows for anything but gaming and the couple of apps that aren't ported to Linux like OneNote. My Linux distribution ...
113
votes
13answers
96k views

Easy way to determine virtualization technology

I have command line access to a Linux machine which may or may not be virtualized. I want to determine what kind of virtualization technology it runs on, if any (VMWare, VirtualBox, KVM, OpenVZ, Xen, )...
96
votes
8answers
196k views

File permission issues with shared folders under Virtual Box (Ubuntu Guest, Windows Host)

I am using Ubuntu on Virtual Box and I have a folder which is shared between the host (Windows) and the VM (Ubuntu). When I open any file in the share folder in Ubuntu, I can not change it as its ...
86
votes
6answers
73k views

Does LVM impact performance?

I have to migrate a few servers to Linux, and one important aspect that I need to evaluate is that my new host system must have elastic storage capacity. Naturally, doing some basic research, I came ...
73
votes
2answers
94k views

How do I run 32-bit programs on a 64-bit Debian/Ubuntu?

I have a 64-bit (amd64 a.k.a. x86_64) Debian or Ubuntu installation. I need to run 32-bit (i386/i686) programs occasionally, or to compile programs for a 32-bit system. How can I do this with a ...
62
votes
1answer
45k views

Linux LXC vs FreeBSD jail

Are there any notable differences between LXC (Linux containers) and FreeBSD's jails in terms of security, stability & performance? On first look, both approaches look very similar.
52
votes
10answers
113k views

How to automatically start and shut down VirtualBox machines?

I need to run a software system that is intended to be installed as an appliance on a dedicated machine. In order to save energy, I plan to run the system on a VirtualBox VM instead. The host is a ...
46
votes
4answers
91k views

VirtualBox: two network interfaces (NAT and host-only ones) in a Debian guest on Ubuntu

I created a Debian VM on VirtualBox with two interfaces: a NAT one (for accessing internet) and a host-only one. However, I do not know how to make both interfaces work at the same time. If I the ...
45
votes
8answers
46k views

Should LVM partitions be used in virtual machine images?

Should LVM be used for the partitions when creating VM images (e.g., KVM images)? It seems like it adds complexity if you want to, say, mount a qcow2 image in the host if the image has LVM partitions. ...
44
votes
4answers
111k views

How to install VirtualBox Guest Additions in a Debian virtual machine

I have been struggling to install VirtualBox Guest Additions in a Debian Virtual Machine (Debian 7, Debian 8 and Debian 9).
43
votes
12answers
71k views

Find out if the OS is running in a virtual environment [duplicate]

Is there any way to find out if the OS I'm running (actually installing) is running in a VMWare machine. I need to disable ntp settings if the automated install is done on a virtual machine but keep ...
37
votes
3answers
28k views

VirtualBox: Is it a bad idea to assign more virtual CPU cores than number of physical CPU cores

As I have a Hyper-Threading capable CPU, I wonder, is it a bad idea to assign more virtual CPU cores than number of physical CPU cores as the following warning suggests: Transcript: More virtual ...
32
votes
2answers
15k views

What do the processes inside a Docker container look like?

I've heard confusion come up several times recently around what a Docker container is, and more specifically what's going on inside, with respect to commands & processes that I invoke while inside ...
25
votes
3answers
9k views

how to send CTRL-ALT-Fn to virtual box guest Linux?

This should be a simple question: Host OS: Arch Linux Guest OS: Arch Linux (GNOME) How can I send Ctrl+Alt+F1 to my Guest Linux OS?
21
votes
6answers
75k views

“echo 3 > /proc/sys/vm/drop_caches” - Permission denied as root

I am currently having some issues with the cache. It is a little too much right now so I wanted to clear it. I googled and found this little command: sync && echo 3 > /proc/sys/vm/...
21
votes
1answer
76k views

Booting a raw disk image in QEMU

I have a disk image file from here; that page says I can boot this image with QEMU and the following command: $ qemu-system-x86_64 -m 4096 -ctrl-grab -no-reboot x86-64.img That gives a message: ...
21
votes
2answers
8k views

Emulate unplugging a network cable with qemu-kvm

[Background: I'd like to actually test How to take down a static network interface when not connected? ] I'm setting up a QEMU-KVM virtual machine using libvirt (via virt-manager). I put two NICs on ...
19
votes
5answers
12k views

Convert image of a partition into image of a disk with partition table

I have an image of an existing partition generated with dd if=/dev/sdXN of=image.bin. Now I want to use this image as the basis for a virtual machine. I know how to convert the image into a format ...
18
votes
2answers
2k views

Is developing/testing a linux module safe using a virtual machine?

I'm in an operating systems class. Coming up, we have to do some work modifying kernel code. We have been advised not to use personal machines to test (I suppose this means install it) as we could ...
17
votes
2answers
23k views

virt-manager copy paste functionality to the vm

Anyone know how to get Virtual Manager to install copy-paste functionality to the Virtual Machine? Can't find anything on Google.
17
votes
1answer
63k views

Can't resize a partition using resize2fs

I recently resized the hard drive of a VM from 150 GB to 500 GB in VMWare ESXi. After doing this, I used Gparted to effectively resize the partition of this image. Now all I have to do is to resize ...
17
votes
1answer
28k views

Do VirtualBox or VMWare use the Intel VT-d feature?

I'm thinking about a new laptop, which has Intel VT support, but recently I discovered a feature other than Intel® Virtualization Technology (VT-x), which is Intel® Virtualization Technology for ...
16
votes
4answers
12k views

Good distro for a VM?

I want a lightweight Linux VM that I can run with VirtualBox on Windows so I can test how to deploy PHP apps, Mono apps, etc. I don't need the UI and was thinking of going with the Ubuntu server ISO. ...
16
votes
3answers
7k views

What are benefits and downsides of unprivileged containers?

The technical explanation of what is unprivileged container is quite good. However, it is not for ordinary PC user. Is there a simple answer when and why people should use unpriviliged containers, and ...
16
votes
2answers
19k views

Linux-KVM, QEMU, Virtualbox, VMWare [closed]

I'm new to Linux. I'm trying to build Chromium OS and run it on QEMU. Meanwhile I came across Linux KVM, Virtualbox and VMWare. So I have basically two questions about virtualization in Linux: What ...
15
votes
7answers
13k views

Install virtual machine as non-root?

Is it possible to install any virtual machine software as non-root user and run it ? Which VM's are possible to be installed with out need of root access ? If it is not possible what would be the ...
15
votes
4answers
7k views

Lightweight isolated linux environment

I want an isolated (guest) Linux environment on my computer that I can mess up without worrying about the host. E.g. install a lot of stuff from source without package management, pollute environment ...
15
votes
5answers
23k views

Booting the already installed Windows from the VirtualBox installed in Ubuntu

I want to boot the Windows which is installed in laptop's internal harddisk(/dev/sda1) from the VirtualBox installed in my Ubuntu. Can somebody tell me how to do this in VirtualBox.
14
votes
1answer
11k views

Using a LVM partition as a Virtualbox drive

Is it possible to use a LVM partition as a Virtualbox disk? I can't find any option to use a device as a Virtualbox disk, only disk images.
14
votes
3answers
13k views

How to create user cgroups with systemd

I use unprivileged lxc containers in Arch Linux. Here are the basic system infos: [chb@conventiont ~]$ uname -a Linux conventiont 3.17.4-Chb #1 SMP PREEMPT Fri Nov 28 12:39:54 UTC 2014 x86_64 GNU/...
13
votes
1answer
35k views

Qemu USB passthrough (windows guest)

I have a USB ADC/DAC and a HASP protected proprietary data acquisition system for it, both of which do not work in linux. I am trying to make it work in Windows virtual machine using qemu. Here are ...
12
votes
5answers
68k views

How to improve Windows perfomance when running inside KVM

I use Ubuntu 12.04 64-bit and KVM, my CPU is Core i5 3.3 GHz and I have 8 GB of DDR3 RAM. I run Windows 7 in KVM and it's extremely slow. My co-worker use Debian on the same PC configuration and can ...
12
votes
2answers
4k views

Tools for Monitoring Steal Time (st)

We're running on a virtual "dedicated" server, which should, in theory, mean that we're the only guys on the server. In practice.... I'm thinking we might not be. Notice that although it looks like ...
12
votes
1answer
22k views

setup kvm on a wireless interface on a laptop machine

I am trying to setup KVM in ubuntu 14.04 host machine. I use a wireless interface to access the internet in my machine. I have setup the wireless interface in my /etc/networks/interfaces as below. ...
12
votes
1answer
13k views

ssh-agent forwarding for a Vagrant VM

I'm currently looking at setting up a Vagrant environment on my Mac machine, so that I can run vagrant up and it will then install rbenv and ruby and all I need. Then I have a Bash script that will ...
11
votes
2answers
7k views

Terminal command to find out if a server is virtual or physical

I am looking for a terminal command which doesn't require the executing user to be in the sudoers group and also to be universal and not requiring to install additional packages. So far I have found ...
11
votes
1answer
2k views

Is a VM with 10 GB hardrive, 8 CPU's, and 4GB of RAM plausible?

I received an assignment to install Fedora 24-1.2 in VirtualBox with these specifications, and I'm running into issues that make me question how realistic this is. For one, I'm not even able to ...
11
votes
2answers
16k views

Which *nix distro is most lightweight for running virtual machines? [closed]

EDIT: This question was expanded to include other Unix-like distros such as Hurd and BSD. Before anyone wonders, I did read related questions and answers; I think I have a sufficiently unique ...
11
votes
2answers
5k views

How can I install a 64bit Linux virtual machine on a 32bit Linux?

I've got a computer (Intel core i5) with 32bit Linux installed (ubuntu 11.04) and I would like to install a 64bit Linux virtual machine on it so I can test 64bit command-line applications on it.
10
votes
1answer
8k views

GParted LiveCD fails to start

I have a VM setup in VirtualBox (LinuxMint 17.1). But I'm trying to boot to GParted so I can resize a partition. I'm using gparted-live-0.22.0-2-amd64.iso and it boots correctly. I've tried every ...
10
votes
3answers
48k views

Guest OS resolution (text too small) in vmware workstation 12 player

I have a windows 10 host OS where I have installed vmware workstation 12 player. I have an Xubuntu as a guest OS (virtual machine). The complication is: the text is too small in guest OS and almost ...
10
votes
2answers
5k views

Fast X for LXC guest on localhost?

How can I run X apps inside an LXC container efficiently? ssh -Y guest is too slow - there is no graphics acceleration with ssh -Y - everything has to travel over the virtual network with the ...
10
votes
2answers
4k views

What is a Linux container and a Linux hypervisor?

I looked at the stackexchange site but couldn't find anything. I looked at the wikipedia entry on Linux container https://en.wikipedia.org/wiki/LXC and as well as hypervisor https://en.wikipedia.org/...
10
votes
1answer
15k views

Why does my firewall (iptables) interfere in my bridge (brctl)?

I set up a bridge br0 "attached" to two interfaces: eth0, my physical interface connected to the real LAN, vnet0, a KVM virtual interface (connected to a Windows VM). And I have this single ...
10
votes
3answers
4k views

Can virtfs/9p be used as root file system?

Is it possible to use a folder shared from the host to the guest via virtfs/9p as the root file system inside the guest? Loosely related to my previous question: Can virtfs/9p be used to share the ...
10
votes
4answers
8k views

Is there a convenient small Unix virtual machine I can install as an Android app?

Ubuntu for Android seems to be missing in action. I'm travelling tomorrow and I need to take a basic Linux machine with me. I'd rather just take my tablet than a laptop. So is there a reasonable ...
10
votes
3answers
3k views

What's causing VirtualBox OSE to hang my machine?

I'm using VirtualBox OSE and recently, when I run Ubuntu 10.10 on it, my machine tends to hang, forcing me to hard-reset it (not good). How do I start finding where the problem is? Here's the last ...