Thursday, 16 August 2018

Vbox autostart on CentOS 7

The basic steps is as follows: 
1. Install Virtualbox through the following commands: 
  • # yum install epel-release -y
  • # yum update -y
  • # yum install gcc make patch  dkms qt libgomp kernel-headers kernel-devel fontforge binutils glibc-headers glibc-devel  -y
  • # wget http://download.virtualbox.org/virtualbox/rpm/rhel/virtualbox.repo
  • # yum install VirtualBox-5.2
  • # /usr/lib/virtualbox/vboxdrv.sh setup
  • # usermod -a -G vboxusers USERNAME
2. Configure Vbox for Autostart: 
  • # cd /etc/vbox/
  • vim /etc/default/virtualbox
       Enter the following in the file virtualbox: 
          VBOXAUTOSTART_DB=/etc/vbox
          VBOXAUTOSTART_CONFIG=/etc/vbox/autostart.cfg
  • # vim autostart.cfg 
         Enter the following in the file autostart
         (Can enter more users depending on access):
         # Create an entry for each user allowed to use autostart
          USERNAME = {
            allow = true
          }

Change access permissions of Vbox folder:
  • sudo chgrp vboxusers /etc/vbox
  • sudo chmod 1775 /etc/vbox
Provide acess right for USENAME to the group:
  • sudo usermod -aG vboxusers USERNAME


3.  vboxmanage is the command comes with VirtualBox software for management. Few handy Vbox command for practice is as follows:

  • vboxmanage list vms                      # list the names of all VMs
  • vboxmanage list runningvms # list currently running VMs
  • vboxmanage list systemproperties | grep folder            # Display current setting repository
  • vboxmanage startvm NAME-OF--VM --type headless     # Command to start VM from the shell
  • VBoxManage controlvm NAMEOFYOURVM savestate  # Command to hibernate VM from the shell

4. Enable autostart for individual machines: 
  • vboxmanage setproperty autostartdbpath /etc/vbox
5. Set a particular VM to start on boot:
  • vboxmanage modifyvm {UUID-or-Name-of-VM-Here} --autostart-enabled on --autostop-type poweroff

6. Enable vboxautostart-service to run at start up:

  • sudo systemctl enable vboxautostart-service
  • sudo systemctl start vboxautostart-service

















Tuesday, 1 September 2015

ISE & SDK on Ubuntu


  1. ISE / Vivado setup (64 bit OS)
    • Install ISE/Vivado......... sudo ./xsetup
    • bash /Xilinx//ISE_DS/settings64.sh 
    • PATH=$PATH:/Xilinx//ISE_DS/ISE/bin/lin64/
    • ise
  2. SDK Setup
    • Install SDK......... sudo ./xsetup
    • sudo apt-get install lib32z1 lib32ncurses5 (install ia32-libs)
    • source /Xilinx//SDK/settings64.sh 
    • PATH=$PATH:/Xilinx//SDK/SDK/bin/lin64/
    • Check CodeSourcery and see if arm-xilinx-eabi-* installed or not. If not installed, the same can be installed from .bin located in installer. Set appropriate PATH to bin folder and start SDK. 
    • xsdk
  3. To install usb drivers  
    • sudo apt-get install gitk git-gui libusb-dev build-essential libc6-dev-i386 fxload (Not required in most cases)
    • cd //Xilinx//ISE_DS/common/bin/lin64/ digilent
    • sudo ./install_digilent.sh (Accept default paths)
    • Restart udev........./etc/init.d/udev restart