Tag Info

Hot answers tagged

101

Assuming you can get everything working, and you don't want to do resource intensive tasks such as playing games or doing large compiles, then I think you'll be fine. There's some basic issues you will probably encounter: guest time incorrect guest screen size or color depth incorrect can't access USB devices (printers, phones, etc.) To fix this, you ...


54

I teach a hands-on class on Linux, and unfortunately, by company policy I'm not allowed to reformat the class-provided laptops, so we're going by the VirtualBox guest approach. Ignoring all performance concerns, here are some notes / problems I noticed: 1) Bridged mode and Wireless Some wireless cards apparently have difficulty having "dual identities", ...


53

LVM is designed in a way that keeps it from really getting in the way very much. From the userspace point of view, it looks like another layer of "virtual stuff" on top of the disk, and it seems natural to imagine that all of the I/O has to now pass through this before it gets to or from the real hardware. But it's not like that. The kernel already needs to ...


27

dmidecode -s system-product-name I have tested on Vmware Workstation, VirtualBox, QEMU with KVM, standalone QEMU with Ubuntu as the guest OS. Others have added additional platforms that they're familiar with as well. Virtualization technolgies VMware Workstation root@router:~# dmidecode -s system-product-name VMware Virtual Platform VirtualBox ...


22

Have you tried acpipowerbutton from this command set? VBoxManage controlvm <uuid>|<name> pause|resume|reset|poweroff|savestate| acpipowerbutton|acpisleepbutton| Edit after reading the comments: You can use acpid or other acpi utilities to make it graceful. Also, can you provide ...


20

The regular way of getting access to the files now, is to allow VirtualBox to automount the shared folder (which will make it show up under /media/sf_directory_name) and then to add your regular Ubuntu user to the vboxsf group. usermod -aG vboxsf <youruser> By default, without manual action, the mounts look like this, drwxrwx--- 1 root vboxsf 40960 ...


19

Don't forget that a VM is an emulation. Your Unix system will never be as powerful in a VM than installed. Archlinux is made to fit your tastes, it is a distribution you can customize to it's maximum. I used to make it run on a VM, though I thought about installing it definitely on my computer. Now my system boots in about 15 seconds, my builds are a looooot ...


18

Native support Since Ubuntu 11.04 and Debian wheezy (7.0), Debian and Ubuntu have multiarch support: you can mix x86_32 (i386) and x86_64 (amd64) packages on the same system in a straightforward way. This is known as multiarch support See warl0ck's answer for more details. In older releases, Debian and Ubuntu ship with a number of 32-bit libraries on ...


15

Rather than code this up yourself, consider using Vagrant, which is built to instantiate and control virtualbox instances. The documentation is excellent and I suggest that you check it out rather than attempting to roll your own. The long and short of it is that you create a simple control file and then run vagrant up to start as many VirtualBox instances ...


14

Highly recommend ubuntu server. The server mode will not put much that you don't really need, if anything. I run ubuntu on several servers and have always been happy with it. You'll also find tons of online support that is relevant to your distro. Linux advice generally translates from one distro to the next, but directory paths are often different. ...


14

There are three ways you could set up the two OSs: Windows host, Linux VM (as you have it). Linux host, Windows VM. Dual boot. If you want to run Windows games I would not recommend option 2. If you regularly want to use a Windows only program (that doesn't run well under Wine) during your Linux session then option 3 won't work well for you. If you use ...


12

Since Ubuntu 11.04 (natty) and Debian 7.0 (wheezy) introduced multiarch support, 32-bit and 64-bit libraries can coexist on one system. To install a 32-bit library libXX, first add the necessary 32bit architecture to your system: For Ubuntu: sudo dpkg --foreign-architecture i386 And for Debian: sudo dpkg --add-architecture i386 Then install the 32bit ...


12

What graphical environment are you using in Linux? Most of the modern desktop environments (GNOME, KDE, Unity) are moving towards requiring hardware 3D acceleration support to work properly. Hardware acceleration support for graphics inside VMs is a relatively immature technology at the moment. VirtualBox has experimental support.


12

As a general rule, physical access to the machine is all that's ever needed to compromise it. You are, after all, trusting that what the machine tells you is true; a person with physical access can void that trust. Consider that an attacker with physical access can theoretically do anything (including installation of hardware/firmware rootkits, etc). If the ...


11

If you use this box mainly via SSH, there's a good chance that you're in the butter zone where it really doesn't matter much whether it's a VM or on real hardware. Many of the problems mentioned in other answers come up when you're trying to use the guest OS as a GUI desktop. Linux servers are very happy inside VMs; a huge chunk of the web hosting market is ...


11

The closest equivalents that I can think of are VirtualBox or Xen. Wikipedia has a list of virtual machine softwares.


10

Yes. You can create a VMDK (not a VDI — you have to use the VMware disk image format) that accesses a raw disk. You can easily use a logical volume as if it were a whole disk, but just like most virtual disks, you probably won't be able to make the host kernel interpret its partition table and mount it. Once you create your volume, just run VBoxManage ...


10

Chroot is the lightest weight environment that could suit you. It allows you to install another distribution (or another installation of the same distribution), with the same users, with the same network configuration, etc. Chroot only provides some crude isolation at the filesystem level. Browsing this site for chroot might help, if you're still not sure ...


10

Basically everything will be working fine from internet to installing packages also for initializing hardware, however you will be paying the price for any failure of the windows machine.


10

Host + F1, default Host key is Right Ctrl.


9

LVM, like everything else, is a mixed blessing. With respect to performance, LVM will hinder you a little bit because it is another layer of abstraction that has to be worked out before bits hit (or can be read from) the disk. In most situations, this performance hit will be practically unmeasurable. The advantages of LVM include the fact that you can add ...


9

The solution was pretty simple: just add the following lines in Debian virtual machine's /etc/network/interfaces file: allow-hotplug eth1 iface eth1 inet dhcp The second line instructs the interface to obtain an IP via DHCP. However, doing it would only work after I've called ifup eth1. So I added the first line, which would load the interface at boot ...


8

Wikipedia has a comparison of platform virtual machines. If you want to use a stock 2.6.18 kernel, there aren't many options. For full virtualization, VirtualBox and VMware should work, but you may need to use older versions if their kernel module no longer supports such an old kernel. KVM may be a possibility, but it was only included in the stock kernel ...


8

It sounds like Debian is a good fit for your requirements. The installer allows you to select what you want in a modular fashion, or you can deselect everything and install everything pretty trivially with aptitude. It has the option to install a X with a graphical desktop environment (GNOME) in the installer, as one of its options. Debian is also highly ...


8

I have similar application as you, with one difference: I need to restart system and recover from snapshot. What you are interested in is headless-mode. I have a few of such services so I use following script: VBox_StopRestoreStart.sh #!/bin/bash if [ -z "$1" ]; then echo "Usage: $0 VMNAME_or_UUID" exit 1 fi set -x VBoxManage controlvm ...


8

Desirable method lshw This command produces the following output on vairous VM technology guests. $ sudo lshw -class system Output KVM mungr description: Computer product: KVM vendor: Red Hat width: 64 bits capabilities: smbios-2.4 dmi-2.4 vsyscall64 vsyscall32 Virtual Box fedora17 ...


7

I would classify virtual machine technologies into three categories (not all products fit clearly into one category): Full virtualization, i.e., complete hardware emulation. Examples: Qemu, Dosbox. Pro: you can potentially emulate any architecture on any hardware. Con: it's the slowest way to do it. Hardware-assisted virtualization, where you can emulate ...


7

QEMU is available for BSD, although it looks like you might have to do a little fiddling to get it to go based on NetBSD packages. Here is a guy that got Windows to run in QEMU on OpenBSD.


7

If you want the alternate distribution as a development environment, and you don't need to run services (or only a few selected ones) or a different kernel in the unstable installation, put it in a chroot. See this guide (replace 64-bit/32-bit by stable/unstable). At the other extreme, if you want a completely separate installation, the easiest way is to ...


7

yes it is possible to run a complete X11 desktop environment inside a LXC container. Right now, I do this on Arch Linux. I won't say it's "light" as I haven't gone as far as trying to strip out stuff from the standard package manager install but I can confirm that it does work very well. You have to install any kernel drivers on the HOST as well as in the ...



Only top voted, non community-wiki answers of a minimum length are eligible