VMWare 7.1 – no /dev/vmnet0

No Comments

A frustrating error with VMWare:
“Ethernet0: can’t open vmnet device /dev/vmnet0″

Solution is to run ‘vmware-netcfg’ and save, then the problem is fixed until next reboot.

View ‘dd’ progress

No Comments

When reading/writing a disk image using Linux tool ‘dd’ launch as follows:
dd if=/dev/sdb of=filename.img & pid=$!
this will run ‘dd’ in the background.

To see the progress:
kill -USR1 $pid

Notes:

  1. If you are doing it as a non-root user you’ll need to prefix those commands with sudo
  2. If you do that do ‘sudo ls’ first, otherwise the ‘sudo dd’ will fail waiting on the password which it’ll never get as its backgrounded.

Thanks to Cian.

Exporting physical Linux hard disk to a Virtual Machine

No Comments

Shutdown and remove the hard disk, then connect to a separate PC with VirtualBox (virtualbox-ose) installed.

  • Take a ‘dd’ copy of the hard disk, eg: dd if=/dev/sdb of=filename.img
    (warning this may take a while and requires enough free disk space to hold a copy of the entire hard disk being cloned)
  • After the image has been successfully created, convert it to an image suitable for VMWare or VirtualBox using the command:
    vboxmanage convertfromraw filename.img -format VMDK filename.vmdk
  • This can be imported into VirtualBox by creating a new (Linux/Other Linux) Virtual Machine and “Use existing hard drive”. Click the browse button to go to the Virtual Media Manager, click ‘Add’ and select the VMDK file created in the previous step.

The virtual machine should now be ready to run in VirtualBox.
To import into VMWare, create a new virtual machine and virtual hard disk. Overwrite the new Virtual Hard disk by copying the VMDK file created earlier, into its place.

Asterisk-oh323, GnuGK with VPoint-HD

No Comments

A warning to all: audio does not work full-duplex when calling from a VPoint (VCON Emblaze) H323 client -> GNUGK -> Asterisk-oh323 -> SIP client. Tested with versions 8 and 10.

However audio works perfectly in the other direction.

The solution would appear to be to use OOH323. However the audio is again half duplex in the scenario where SIP clients are calling H323 clients.
Therefore calls originating from Asterisk to H323 clients use the ‘OH323′ module, and calls from GNUGK into Asterisk use the ‘OOH323′ module.

Bash Scripts – exit on immediate fail

No Comments

With some bash scripts it can be useful to have them exit as soon as a command fails. To accomplish this have the following just after the “#!/bin/bash” line:

set -o errexit

This will cause the script to exit as soon as any command or program returns an exit status not equal to zero.
Thanks to Rory.

Older Entries Newer Entries