Skip to content

ddmSOM/yubix-vm

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

YubiX VM

Creates a virtual machine with YubiX installed, ready for distribution.

Dependencies

VM images are created by using vmbuilder under Ubuntu. You will need a Ubuntu installation with the python-vm-builder package installed.

Running

To create the virtual machine image, run build-vm.sh as root.

Testing

To run the tests, run the /root/test/run-tests.sh script as the root user on the virtual machine.

Race condition in vmbuilder

There is a known issue in vmbuilder which sometimes fails the build, printing an error: "/dev/mapper/loop0p1 does not exist". To fix this you will need to make a modification int the following file: /usr/lib/python2.7/dist-packages/VMBuilder/disk.py (location may vary). Find the map_partitions method and change the following row:

kpartx_output = run_cmd('kpartx', '-av', self.filename)

to the following (note the added 's' in the arguments):

kpartx_output = run_cmd('kpartx', '-sav', self.filename)

Now, the build should succeed.

About

Scripts for building a VM image for Yubi-X

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 59.2%
  • Perl 25.2%
  • PHP 10.8%
  • CSS 4.8%