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.

Filter by
Sorted by
Tagged with
76
votes
3answers
105k 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 ...
121
votes
15answers
106k 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, )...
7
votes
2answers
7k 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 ...
52
votes
4answers
144k 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).
94
votes
7answers
89k 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 ...
6
votes
2answers
5k 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 / ...
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 ...
215
votes
17answers
134k 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 ...
55
votes
6answers
109k 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 ...
53
votes
11answers
118k 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
9k 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 ...
26
votes
3answers
41k 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.
13
votes
3answers
69k 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 ...
11
votes
2answers
17k 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 ...
9
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 ...
7
votes
2answers
13k 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 ...
2
votes
1answer
574 views

Creating virtual Audio device

There is a Linux (Manjaro) PC without an audiocard. Is it possible to create a virtual audio device? The usage idea is the following: virtual audio device process a sound, then there is a server ...
1
vote
1answer
609 views

Want to install VirtualBox Guest Additions on CentOS 7 but get a header mismatch

I try to install VirtualBox Guest Additions on a CentOS 7 VM. I installed the prerequisites via sudo yum install perl gcc dkms kernel-devel kernel-headers make bzip2 then I "inserted" the Guest ...
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.
4
votes
2answers
3k 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
42k 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
5k 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
1answer
377 views

Asked for a passphrase for a passphrase-less private key when SSH'ing on a virtual machine

I'm having some issues SSH'ing to a server when logged into a particular VM. From my local PC, I can log in to the server just fine using the command ssh -i .ssh/[my private key] username@domain. If ...
1
vote
1answer
2k views

'bridged' wifi for qemu kvm (ebtables / parprouted / etc)

I'm trying to set up a virtual machine with a Linux Mint 18.3 host and Win10 x64 guest. I need this VM accessible from my network. Unfortunately, snaking an Ethernet cable into my room is not an ...
1
vote
0answers
2k 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
2k 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 ...
128
votes
9answers
273k 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 ...
69
votes
1answer
53k 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.
57
votes
12answers
88k 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 ...
20
votes
2answers
85k 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
2answers
32k 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. ...
37
votes
7answers
100k 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/...
17
votes
5answers
27k 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
2answers
10k 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 ...
28
votes
3answers
13k 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?
20
votes
5answers
14k 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 ...
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
3answers
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
13k 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
9k 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 ...
6
votes
2answers
16k 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
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, ...
12
votes
3answers
6k 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 ...
9
votes
3answers
62k views

How to find IP of virtual machine?

If I have a VM (using VirtualBox, for instance) running inside my main OS; how can I identify the virtual interface and IP address (of the VM) from within the original (host) OS? I thought I could ...
2
votes
2answers
12k 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
9k 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 ...
9
votes
4answers
26k 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
266 views

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

How can one take a VM and make it run on the machine?
6
votes
2answers
8k views

How to force the time and date settings to refresh from the internet?

I'm running Ubuntu 12.04 LTS under vmWare. When I restart a suspended image, the system clock doesn't detect that the system time is out of date. In the Time and Date settings dialog, I've selected "...
4
votes
1answer
11k views

iostat - What does the 'steal' field mean?

In output of iostat there is a steal field, according to man page the field is used to: Show the percentage of time spent in involuntary wait by the virtual CPU or CPUs while the hypervisor was ...