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))
VN:F [1.8.5_1061]
Rating: 1.0/10 (1 vote cast)

Related posts:

  1. Automatic Generate JUnit Tests
  2. Troubleshooting CGI premature end of script headers on Plesk
  3. Wordpress plugins
  4. Credit Card Number Generator
  5. The VMware house of cards
  6. Floating Windmills in the North Sea to Generate Sustainable Electricity
  7. Howto Create Generate a Certificate Signing Request
  8. Eclipse IDE

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

VN:F [1.8.5_1061]
Rating: 10.0/10 (1 vote cast)

Related posts:

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

Comments (5)

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.

VN:F [1.8.5_1061]
Rating: 0.0/10 (0 votes cast)

Related posts:

  1. Stencils for Microsoft Visio
  2. Ubuntu Server Edition JeOS
  3. Installing Xen on Debian Etch 4.0
  4. Howto: Resize Xen Loop Disk Image
  5. Howto Install Windows XP / Vista on Xen
  6. Xen Howto: Install Windows
  7. Ubuntu Howto: Install Xen
  8. Seamless Windows Applications on Ubuntu Linux Using VirtualBox
  9. Xen crazy
  10. Red Hat Enterprise Linux 5 Released

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

VN:F [1.8.5_1061]
Rating: 0.0/10 (0 votes cast)

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. Windows Developers Begin Slow Defection to Linux
  6. Howto Install Windows XP / Vista on Xen
  7. Ubuntu Howto: Install Xen
  8. X11 for Windows XP and Vista
  9. Howto: Install Windows Vista Fonts in Ubuntu
  10. Safari on Linux

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

VN:F [1.8.5_1061]
Rating: 0.0/10 (0 votes cast)

Related posts:

  1. Browse Faster Using a Local DNS Cache
  2. How package management changed everything
  3. The VMware house of cards
  4. Crack zip password with fcrackzip
  5. HackerGuide: Crack Password Encrypted Zip-files
  6. What is the coolest thing you can do using Linux that you can’t do with Windows or on a Mac?
  7. Linux Hacking Portal
  8. X11 for Windows XP and Vista
  9. Top 10 Free Windows 7 Applications
  10. MySQL Optimization and Performance Tips

Comments

« Previous entries Next Page » Next Page »