Follow us on Twitter...
Stay up to date with the latest news, special offers and advice from CensorNet on Twitter... we are Tweeting regularly!
Installing CensorNet Professional in Hyper-V virtual environment
Applies to: CensorNet Professional 2.0.x (Lucid)
The following steps can be followed for installing CensorNet Professional on top of Ubuntu 10.04 (Lucid) within a Hyper-V virtual machine.
Step 1
Download the correct Ubuntu 10.04 CD image from: http://releases.ubuntu.com/lucid/. You should choose the Server Install CD and then PC (Intel x86) server install CD.
Mount the CD image in your Hyper-V virtual machine and boot it up. You will be presented with the boot screen.
Step 2
Follow these steps to install the Ubuntu operating system:
Choose "Install Ubuntu Server" by pressing enter
Choose "English" language by pressing enter
Choose "United Kingdom" territory (up arrow then enter)
Choose "No" then "United Kingdom" and enter
Choose "United Kingdom" for keyboard layout
Choose "Continue" when it says Configure the network (Red background, unable to detect Network Card)
Choose "Continue" when it prompts for the hostname
Press up arrow to choose "Guided - use entire disk" and press enter
Press enter on SCSI1 (0,0,0)....etc
Press left arrow then enter to Write Changes to Disk
(wait a while for the files to be copied from the CD)
When prompted to enter the Full name for new user, type: administrator then enter
When prompted to enter the username hit enter
Give it the password 'password'. Enter it again to validate when prompted
Choose "No" when asked whether to encrypt your home directory
Choose Continue by pressing enter when asked about HTTP proxy
When asked to "Select and install software" hit continue for No auto updates
When asked to Choose software to install press TAB to highlight Continue and press Enter
Press enter to choose YES when asked to install Grub
Choose Continue by pressing enter when you're told Installation Complete
The server will reboot and you will be prompted to login. Use the username administrator and the password password as you set in the steps above.
Step 3
Now you have to modify some configuration files so that Ubuntu can detect the virtual network card. To do this:
Type sudo nano /etc/initramfs-tools/modules and press enter. Type password when prompted for the password.
Add the following lines to the end of the file
hv_vmbus
hv_storvsc
hv_blkvsc
hv_netvsc
hv_utils
Save the file with Ctrl+X then press Y and then Enter
sudo update-initramfs -u
sudo nano /etc/network/interfaces
Add the following lines to the file:
auto eth0
iface eth0 inet static
address XXX.XXX.XXX.XXX
netmask XXX.XXX.XXX.XXX
gateway XXX.XXX.XXX.XXX
Replace XXX.XXX.XXX.XXX with the IP, netmask and gateway for the virtual machine.
Press Ctrl+X then Y and then Enter to save the file
Type: sudo nano /etc/resolv.conf to open a blank file
Add a line for each of your nameservers in the format: nameserver XXX.XXX.XXX for example:
nameserver 8.8.8.8
nameserver xxx.xxx.xxx.xxx
Save the file with Ctrl+X then Y then Enter
Step 4
Reboot the server with:
sudo reboot
After the server reboots, log back in as the user administrator and then try pinging an external host e.g.
If all is well the ping will respond. If not, you need to recheck the settings in Step 3.
Step 5
Now the virtual machine has Internet access you can now download the CensorNet packages.
sudo nano /etc/apt/sources.list
Add the following to the bottom of the file:
deb http://apt-lucid.censornet.com lucid non-free
Save the file with Ctrl+X then Y and Enter
sudo apt-get update && sudo apt-get install censornet-lucid
Press Y when prompted to continue the installation. Accept all defaults when prompted.
Once the process finishes, you will be returned to the prompt.
CensorNet is installed.
Step 6
You should now set a root password for your new CensorNet server. Type:
sudo setup
Press enter then choose Option 4 - Change System User Password. Then select Change 'root' system user password. Enter a new password and select OK.
Finished
You may now continue to configure CensorNet as per the Getting Started Guide.
When configuring the Virtual Machine, do not select the Legacy Network Driver. This will force the kernel to use the proper Hyper-V Virtual NIC driver which will provide better performance.
If after installing and running CensorNet within Hyper-V you notice the virtual machine consuming all CPU or often running above 50% CPU usage even when idling, then you will need to upgrade the kernel. This is often only required when running Hyper-V 6.1 on Windows Server 2008r2. Please follow this guide on compiling a later version of the kernel.