VirtualBoxTestEnvironment

From BCCD 3.0

Jump to: navigation, search

GUI

VirtualBox Procedure for BCCD-ng

  1. Download/Configure Virtual Box.
  2. Download the latest bccd-ng image file.
  3. Create a new virtual machine for 1 ... n different virtual nodes.
  4. Point each VM's virtual CD/DVD drive to the image.
  5. Configure internal network
    1. for each vm, choose Settings -> Network -> Adapter 2
    2. set the adapter to pcnet-FAST III
    3. set 'attached to' to 'internal network'
    4. set 'network name to 'bccd'
  6. Now an internal network has been established between the virtual nodes. Start up each virtual machine. Cnfigure en1 to subnet 255.255.255.0, 192.168.0.*

CLI

  1. Configure your NICs
    1. Figure out your public (bridged) NIC by examining the output of /sbin/ifconfig -a.
    2. Create a private (host-only) NIC with VBoxManage hostonlyif ipconfig vboxnet0 --ip 192.168.4.0 --netmask 255.255.255.0.
    3. Disable DHCP with VBoxManage dhcpserver remove --netname HostInterfaceNetworking-vboxnet0.
  2. Create your VM
    1. VBoxManage createvm --name bccd-ng0 --ostype Debian --register
    2. Modify the VM with VBoxManage modifyvm bccd-ng0 --memory 256 --acpi on --ioapic on --vtxvpid on --nestedpaging on --hwvirtex on --dvd /cluster/bccd-ng/bccd0.iso --nic1 intnet --nictype1 82545EM --intnet1 bccd-ng0-net --nic2 bridged --nictype2 82545EM --bridgeadapter2 eth1 --vrdp on --vrdpaddress 0.0.0.0 --vrdpport xxxx --vrdpauthtype external --boot1 dvd --boot2 disk. (Make sure the intnet network name is unique for every BCCD network you want setup)
    3. Create a hard drive, making sure to put it on the local hard drive: VBoxManage createhd --filename /var/lib/vbox/bccd-ng0.vdi --size 8192
    4. Attach the hard drive to the VM: VBoxManage modifyvm bccd-ng2 --hda /var/lib/vbox/bccd-ng0.vdi

Remote Management

You can use VRDP to manage the VMs remotely. Make sure you supply different ports for your VMs with --vrdpport. If you connect to the VM from Windows, you should be sure to supply a bogus username so that Windows doesn't screw things up with its credential caching.

  • Starting the VM: VBoxHeadless --startvm vmname.
  • Stop the VM: VBoxManage controlvm vmname poweroff.
  • Reset the VM: VBoxManage control reset.
Personal tools