- Retrieve ISO – http://www.gtlib.gatech.edu/pub/centos/6.4/isos/x86_64/CentOS-6.4-x86_64-minimal.iso
- Create new VBox guest
- Pick Red Hat (64 bit) as the OS type.
- Configure the first network adapter as host-only vboxnet0, and a second as NAT.
- Attach the VBoxGuestAdditions.iso (for Debian it’s available in /usr/share/virtualbox).
- Run through the installer. Defaults are fine here.
- Reboot. Log in as root.
- Create the vmfest user and add to sudoers
adduser vmfest; passwd vmfestvisudo
- Create the ethernet interface definitions:
# cat <<EOF >/etc/sysconfig/networking/devices/ifcfg-eth0 DEVICE=eth0 TYPE=Ethernet ONBOOT=yes BOOTPROTO=dhcp EOF # cat <<EOF >/etc/sysconfig/networking/devices/ifcfg-eth1 DEVICE=eth1 TYPE=Ethernet ONBOOT=yes BOOTPROTO=dhcp EOF
- Reboot. Log in as root.
sudo yum update- Install packages for guest addition compile
sudo yum install -y \ make gcc kernel-devel perl \ xorg-x11-server-Xorg.x86_64 - Mount and install guest additions
mount /dev/scd0 /media; cd /media ./VBoxLinuxAdditions.run
- Reboot again for good measure and customize further or install more packages.
- DO NOT FORGET THIS STEP AND DO NOT REBOOT AFTERWARD
rm /etc/udev/rules.d/70-persistent-net.rules shutdown -h now- Remove the VM but KEEP THE FILES AROUND.
- Go to File -> Virtual Media Manager, and remove the disk you created with the VM, but KEEP THE FILE when it asks.
- Now copy the
.vdifile in your VirtualBox path on your hard drive. Alongside it, create a.metafile with a similar filename but different extension. Put something like this in it, adapting it to your newly created image.{:os-type-id "RedHat_64", :sudo-password "vmfest", :no-sudo false, :username "vmfest", :os-family :centos, :os-version "6.4", :os-64-bit true, :password "vmfest", :description "CentOS 6.4 (64bit)" :packager :yum} - Back in vmfest, you can now supply the full path of the
.vditovmfest.manager/setup-model.
Created
March 20, 2013 04:48
-
-
Save drewr/5202372 to your computer and use it in GitHub Desktop.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment