Step 01 Virtual Install
Install VirtualBox to your server.
The website offers binaries for many major distributions, and a few distros have it within the repository. For Debian-based distros, you'll need to add the official Virtual Box repo:
deb http://download.virtualbox.org/ virtualbox/debian [distro] contrib
…with ‘[distro]’ replaced by your version of Ubuntu, eg ‘precise’.
Step 02 Virtual Extensions
It’s best to induce the extensions established currently. transfer them victimisation wget:
wget http://download.virtualbox.org/virtualbox/4.1.22/Oracle_VM_VirtualBox_Extension_Pack-4.1.22-80657.vbox-extpack
Make sure it’s the most recent version, which it matches up with the version you have got.
Step 03 Extension install
Once that’s downloaded, you'll be able to take out it and install it to VirtualBox victimisation this command:
sudo VBoxManage extpack install Oracle_VM_VirtualBox_Extension_Pack- four.1.22-80657.vbox-extpack
Again, certify you utilize the proper version of your extension pack that you simply downloaded.
Step 04 Add User
We’ll ought to add the relevant user to the VirtualBox user cluster. to try and do this we've got to use one thing like this:
sudo adduser administrator vboxusers
…where ‘administrator’ is that the user you’ll be connecting to the headless server with.
Step 05 Virtual produce
To begin with, we’re about to be victimisation the VboxManage tool to start out making and modifying virtual machines. Our 1st command can be:
VBoxManage createvm --name “Name of VM Here” --register
In our example we’re about to be employing a Stetson virtual machine.
Step 06 Virtual modify
We’re about to currently add some system info for the VM:
VBoxManage modifyvm “Fedora 17” --memory 1024 --acpi on --boot1 optical disc --nic1 bridged --bridgeadapter1 eth0
We’re setting the memory to 1024MB on top of, still as setting the boot priority to disc 1st.
Step 07 Virtual storage
Time to line up a virtual Winchester drive for our new VM to use. produce it employing a command like this:
VBoxManage createhd --filename Fedora_17.vdi --size ten thousand
…where ten thousand is that the quantity of storage in megabytes, thus roughly 10GB during this example.
Step 08 Virtual IDE
The Winchester drive must be connected to the VM, Associate in Nursingd to try and do this the VM must have an IDE controller connected to that. we tend to add one like this:
VBoxManage storagectl “Fedora 17” --name “IDE Controller” --add ide
We can conjointly use this to feature a virtual optical drive for the installation medium.
Step 09 Virtual attach
Attaching the Winchester drive needs somewhat additional information than simply inform it towards the VDI:
VBoxManage storageattach “Fedora 17” --storagectl “IDE Controller”
--port zero --device zero --type hdd --medium Fedora_17.vdi
The ports and sort square measure necessary to recollect once adding additional virtual devices.
Step 10 Virtual optical disc
Finally, attach the installation medium to your virtual machine:
VBoxManage storageattach “Fedora 17” --storagectl “IDE Controller”
--port one --device zero --type dvddrive --medium fedora17.iso
Thank you for sharing such a wonderful Information !!
ReplyDeleteHere is a list of Top LINUX INTERVIEW QUESTIONS
Veritas Cluster Interview Questions
Redhat Cluster Suite Commands
SAMBA Server Interview Questions
Linux FTP vsftpd Interview Questions
SSH Interview Questions
Apache Interview Questions
Nagios Interview questions
IPTABLES Interview Questions
Ldap Server Interview Questions
LVM Interview questions
Sendmail Server Interview Questions
YUM Interview Questions
NFS Interview Questions
Tcpdump Command Examples & Usages
Example of YUM Commands
How to rewrite outgoing address in Postfix
Read More at :- Linux Troubleshooting