Generate random MAC address for e.g. Xen guests

The following tiny python script can be used to generates a MAC address for different purposes e.g. Xen guest.

#! /usr/bin/python
# macgen.py script generates a MAC address for Xen guests
#
import random
mac = [ 0x00, 0x16, 0x3e,
random.randint(0x00, 0x7f),
random.randint(0x00, 0xff),
random.randint(0x00, 0xff) ]
print ':'.join(map(lambda x: "%02x" % x, mac))

Related posts:

  1. Howto Access via ssh a Virtualbox Guest machine
  2. Automatic Generate JUnit Tests
  3. Troubleshooting CGI premature end of script headers on Plesk
  4. Eclipse IDE
  5. WordPress plugins
  6. Credit Card Number Generator
  7. Floating Windmills in the North Sea to Generate Sustainable Electricity
  8. Howto Create Generate a Certificate Signing Request
  9. Wireless: How To Secure Your Wireless Network
  10. Ubuntu Howto: Install Xen

Comments

Howto: Resize Xen Loop Disk Image

Win4lin, KVM, QEMU, Virtualbox and Xen are all widely used technologies, used in virtual servers. Fairly often a virtual server run from within a loop filesystem and generally start with a fairly small file (1GB is big for a normal file, but not when it is pretending to be an entire filesystem!)

However things often grow over time.

Here is a nice simple procedure for increasing the size of a loop filesystem, if the filesystem is ext2 or ext3 (the procedure should work for ext4 too, but I havn’t tested it yet)

1. Stop the virtual server that is using the loop filesystem
2. Add some extra space to your loop filesystem file
# dd if=/dev/zero bs=1024k count=1024 >> loop_image_file

This adds 1GB to the end of a file called loop_image_file (make sure to use the append output redirector >> not a single >, otherwise you’ll have an empty 1GB file!)

3. Force a check on the resized/increased filesystem
# e2fsck -f loop_image_file

4. Resize the filesystem within the loop filesystem file
# resize2fs loop_image_file

5. Start the virtual server again

Related posts:

  1. Migrate existing Ext3 filesystems to Ext4
  2. Xen Howto: Install Windows
  3. How to mount bin / cue image files in Linux
  4. Howto: How to Reset the MySQL Root Password
  5. Ubuntu Server Edition JeOS
  6. Howto Install Windows XP / Vista on Xen
  7. How to Mount a Remote Filesystem Using SSH and sshfs
  8. Importing / Exporting Virtual Disk Images with Virtual Box
  9. Ubuntu Howto: Install Xen
  10. Virtualization Visualization with Visio

Comments (7)

Convert from VMWare To VirtualBox

Comments

Virtualization Visualization with Visio

Visio Guy » Blog Archive » Virtualization Visualization with Visio

Whether you are looking to conserve energy, optimize your hardware usage, or rapidly test a wide variety of software configurations, some sort of virtualization is surely in your future.

And if you are a Visio Guy or a Visio Gal, you’ll surely want to make a diagram to better see how your network’s hardware is set up.

I’ve been hopping around the net looking for (mostly-free) Visio-related resources for virtualization. Here’s what I found…

Microsoft Office Visio 2007 Professional Add-In for Rack Server Virtualization (Virtual Rack)

Microsoft offers and add-in that might save you having to do any manual drawing in the first place! This add-in that works with Visio 2007 to help you plan virtualization. It auto-generates your rack and detailed server diagrams from an Excel template, allowing you to visualize where you can save on space and power.

Related posts:

  1. Installing Xen on Debian Etch 4.0
  2. Stencils for Microsoft Visio
  3. Howto: Office 2007 on Linux with Wine
  4. Ubuntu Server Edition JeOS
  5. Howto Install Windows XP / Vista on Xen
  6. Seamless Windows Applications on Ubuntu Linux Using VirtualBox
  7. Ubuntu Howto: Install Xen
  8. Howto: Resize Xen Loop Disk Image
  9. Xen Howto: Install Windows
  10. Crack or Recover Read-only Password Protected Word Document

Comments (3)

68 Linux Related Free E-books

Comments (1)

Ekstrabladet.dk dropper Windows

Comments

Seamless Windows Applications on Ubuntu Linux Using VirtualBox

Innotek Virtual Machine VirtualBox - LinuxInnotek has released the new version 1.5 of their virtual machine software VirtualBox. This release features among other things seamless integration of Windows-based applications in Linux. This means the ability to run windows-only programs and application like Microsoft Office, Adobe Photoshop, Adobe Acrobat, Microsoft Project, Microsoft Dynamics etc. on Linux (Ubuntu, Debian, Fedora, Red hat, Mandriva , openSUSE, etc.) without any complicated and complex setups.

The VirtualBox virtual machine stands out among the current virtual machine software available because most of its parts has been released under GPL. Moreover the project seems very active and the project team produces frequent releases.

Download the new VirtualBox 1.5.2 release here

Related posts:

  1. Top 10 Free Windows 7 Applications
  2. Howto Access via ssh a Virtualbox Guest machine
  3. Xen Howto: Install Windows
  4. Tomcat Performance: Linux faster than Windows
  5. Howto Install Windows XP / Vista on Xen
  6. Windows Developers Begin Slow Defection to Linux
  7. Ubuntu Howto: Install Xen
  8. X11 for Windows XP and Vista
  9. Two major Linux distributions released today
  10. Howto: Install Windows Vista Fonts in Ubuntu

Comments (1)

Sony PS3 Cluster (IBM Cell BE)

Dr. Frank Mueller, professor at North Carolina State University, has put together 8 Playstation 3′s into an awesome super computer cluster. The PS3 cluster has incredible processing capabilities and performance wise the PS3 cluster could be compared to low end super computer clusters – and this is for about only 5.000 US $.

Dr. Frank Mueller PS3 cluster website

Related posts:

  1. Browse Faster Using a Local DNS Cache
  2. MySQL Optimization and Performance Tips
  3. Top 10 Free Windows 7 Applications
  4. Intel Entry Server Board S3000AH: Linux and lm-sensors
  5. How package management changed everything
  6. Tomcat Performance: Linux faster than Windows
  7. Varnish : Simple and Fast HTTP Acceleration
  8. Linux Terminal Speed Performance Comparison
  9. Crack zip password with fcrackzip
  10. HackerGuide: Crack Password Encrypted Zip-files

Comments

« Previous entries Next Page » Next Page »