VirtualBoxTestEnvironment
From BCCD 3.0
GUI
VirtualBox Procedure for BCCD-ng
- Download/Configure Virtual Box.
- Download the latest bccd-ng image file.
- Create a new virtual machine for 1 ... n different virtual nodes.
- Point each VM's virtual CD/DVD drive to the image.
- Configure internal network
- for each vm, choose Settings -> Network -> Adapter 2
- set the adapter to pcnet-FAST III
- set 'attached to' to 'internal network'
- set 'network name to 'bccd'
- 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
- Configure your NICs
- Figure out your public (bridged) NIC by examining the output of
/sbin/ifconfig -a. - Create a private (host-only) NIC with
VBoxManage hostonlyif ipconfig vboxnet0 --ip 192.168.4.0 --netmask 255.255.255.0. - Disable DHCP with
VBoxManage dhcpserver remove --netname HostInterfaceNetworking-vboxnet0.
- Figure out your public (bridged) NIC by examining the output of
- Create your VM
-
VBoxManage createvm --name bccd-ng0 --ostype Debian --register - 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) - 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 - 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.
