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.

72
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 ...
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, )...
6
votes
2answers
6k views

How to read one filesystem from a whole disk image file?

I ran these commands: VBoxManage clonehd d6b9f0a5-98df-48ca-83c8-91a0809ec349 --format RAW Debian.raw sudo dd if=~/.VirtualBox/HardDisks/Debian.raw of=/dev/sda5 When I try to mount the partition, I ...
44
votes
4answers
110k 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).
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 ...
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?
5
votes
2answers
4k views

How to achieve the effect of chroot in userspace in Linux (without being root)?

The goal is to install and run programs in a displaced (relocated) distro (whose / must not coincide with the global /) inside a host Linux system. The programs are not adapted for using a different / ...
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 ...
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 ...
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 ...
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 ...
8
votes
2answers
11k views

Wireless bridged networking in KVM. Why is it so complicated?

I've been using VirtualBox (and sometimes VMWare) for years and I've never had any problem with the virtual network adapters, no matter if the physical ones were wired or not. I also played some time ...
8
votes
1answer
1k views

Lightweight virtualization on Linux with user isolation

What Linux-on-Linux virtualization technologies provide user isolation? Specifically, I want root in the virtual machine not to have any privilege on the host. This was not the case for LXC, but was ...
5
votes
2answers
519 views

Choosing virtual machine software on Linux

There are many virtual machine software out there. Even some are included into mainline Linux. What differentiates them, and what criteria should one ponder while choosing one?
5
votes
5answers
7k views

Share memory between a virtual machine and the host

Through shmget and shmat, I am able to access the data stored in one program from another program. Here's the gist of the code: key=ftok("shared.c",'c'); shmid=shmget(key,1024,0644|IPC_CREAT); data=...
4
votes
2answers
1k views

Syntax error unexpected end of file [closed]

I have written a shell script which allows me to create a user and assign them to a group but I keep getting the error line 19: syntax error: unexpected end to file What am I doing wrong? Would it ...
3
votes
2answers
41k views

Wireless connection not figuring in VMware Workstation 10(Kali-Linux)

I just installed kali-linux on my VMware workstation 10. I had to check for the wireless connection in the kali-linux. I tried to check for the wireless-network connection(WiFi);but,it was incorrectly ...
2
votes
1answer
4k views

virt-install complains “error: no such option: --network-bridge:br0”

I was following the directions here to set up a VM in CentOS 6.4 i386/686. But I'm getting this error: $ sudo virt-install --network-bridge:br0 --name vm1 --ram=1024 --vcpus=1 --disk path=/var/lib/...
1
vote
0answers
1k views

'group does not exist.' and 'Not enough space in file systems'

A CentOS 7 host needs to install a CentOS 7 guest using virt-install and kickstart, but the approach documented below is not recognizing either the designated hard drive or the dependencies. What ...
-1
votes
1answer
172 views

What is the relation between Virtual Machine Manager and KVM/QEMU?

What is the relation between Virtual Machine Manager and KVM/QEMU? The Wikipedia links says In computing, the Red Hat Virtual Machine Manager, also known as virt-manager, is a desktop virtual ...
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 ...
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.
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 ...
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 ...
21
votes
1answer
75k 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: ...
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 ...
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.
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. ...
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 ...
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.
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 ...
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 ...
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.
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 ...
4
votes
1answer
9k views

CentOS doesn't know what the internet is

So I've done my share of investigating this problem... I just recently created a CentOS 6 VM on my LinuxMint box using VirtualBox. I left all the recommended values the same upon creation (8GB HDD, ...
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/...
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 ...
8
votes
1answer
4k views

Does quiesce exist for Linux?

Quiescing a file system allows you to make a backup of the database while it is still running and other programs and their data as well. The application generally needs to be notified of the quiesce ...
2
votes
2answers
10k views

How to use Vagrant provisioning to install a package without download?

I'm using Vagrant boxes for several purposes, and in most cases the prepared boxes I can download are totally sufficient. However, sometimes I need one or a few additional packages installed on the ...
1
vote
3answers
4k views

Deploy Linux into, and boot from, VHD

Since Microsoft Windows 7 came out, the Windows platform has supported a very awesome feature called Native VHD Boot. This allows you to install Windows into a VHDX file, rather than installing it ...
8
votes
3answers
21k views

VNC send Ctrl+Alt+F1-F6 to server

I've been trying to figure this out now for a while, I'm connecting to virtual machines through VNC, and by default you get a graphical or ncurses interface, and CTRL+ALT+F3 takes you to a console ...
6
votes
3answers
245 views

Is it 'possible' to transfer a VM to the metal?

How can one take a VM and make it run on the machine?
5
votes
1answer
10k views

How to send/upload a file from Host OS to guest OS in KVM?(not folder sharing)

I have to make a configuration file available to guest OS running on top of KVM hyper-visor. I have already read about folder sharing options between host and guest in KVM with 'qemu' and 9P virtio ...
4
votes
2answers
3k views

Why are my cloned linux VMs fighting for the same IP

I've cloned two vSphere VMs off of an Ubuntu 17.10 template. After boot, they both claim the same IP and fight for it (ssh connections break off as the IP switches between them). The hostnames and ...
3
votes
2answers
439 views

Does two “virtual serial ports” exist in the virtual terminal implementation?

The following image represents how a physical terminal (for example: VT100) was connected to a computer running Unix (for example: PDP-11): Notice the components highlighted in blue, which shows that ...
3
votes
1answer
3k views

Virtualbox under Proxmox

On a Jenkins Master-Slave configuration and need to run on the slaves Kitchen tests on several jobs. Kitchen for those who do not know it, runs infrastructure on demand using Vagrant and VirtualBox (...
3
votes
2answers
3k views

One prompt pkexec - two command

Someone could answer me how make one prompt via pkexec when I've to use two command with authentication? My easy sample script: pkexec virsh net-start default; pkexec "/home/user/program"; I'm new ...
6
votes
1answer
4k views

Can VirtualBox return IP address for launched VM?

I would like to start my VM from the command line and without the GUI using the following command: VBoxManage startvm <MY_VM> --type headless and the SSH into it from the next prompt. The ...
6
votes
2answers
6k views

Measuring CPU %steal on VMware and Hyper-V hypervisors

For Xen Linux guests, %steal time is readily available via top and other utilities. Is it possible to get this and related metrics from within a Linux guest when running a non-Xen hypervisor such as ...
5
votes
3answers
2k views

script to monitor for new files in a shared folder (windows host, linux guest)

I need to monitor a shared folder, in this specific case the host is windows and the guest is Ubuntu linux, for new files or a file that has changed. Ideally the solution should work independent of ...