Showing posts with label vm. Show all posts
Showing posts with label vm. Show all posts

Thursday, March 26, 2015

How to compile qemu for RHEL 6

1) Download, compile, and install SDL-1.2.15

2) Download qemu-2.2.1.  Configure like this:
./configure --enable-cdl

3) /path/to/bin/qemu-system-x86_64 -m 4096 /path/to/HardDriveImage.qcow2

4096 is the amount of memory you want to use, in MB.

If your hard drive image is from VirtualBox, http://cheznick.net/main/content/converting-a-virtual-machine-from-virtualbox-to-kvm explains how to convert the hard drive image to either a raw .img file or a qcow2 file:

1) VboxManage clonehd /path/to/hardDriveImage.vdi hardDriveImage.img --format raw
2) qemu-img convert -f raw hardDriveImage.img -O qcow2 hardDriveImage.qcow2

Tuesday, March 3, 2015

How to install VirtualBox .rpm on Fedora 16

No guarantees here, because there's a "rpm -i --force" involved...

wget ftp://ftp.pbone.net/mirror/archive.fedoraproject.org/fedora/linux/releases/17/Everything/x86_64/os/Packages/l/libpng-1.5.10-1.fc17.x86_64.rpm

sudo rpm -i --force libpng-1.5.10-1.fc17.x86_64.rpm

wget http://download.virtualbox.org/virtualbox/4.3.24/VirtualBox-4.3-4.3.24_98716_fedora17-1.x86_64.rpm

rpm -i VirtualBox-4.3-4.3.24_98716_fedora17-1.x86_64.rpm

After that, add yourself to the vboxusers group  (in /etc/group)

Tuesday, February 17, 2015

Getting Networking to Work with VirtualBox and CentOS

Why isn't my network working when I've installed CentOS 6 on VirtualBox?  Try to do this:

1) Edit the /etc/sysconfig/network-scripts/ifcg-eth0 file

2) Change

ONBOOT=no

to

ONBOOT=yes

3) Reboot the VM

Networking should work after that.