Posts Tagged ‘Ubuntu’

Ubuntu: JeOS vm clone and Network

Sunday, March 8th, 2009

Ubuntu LogoI am creating and configuring virtual appliances for ESX server with Ubuntu JeOS 8.04 server release. When you create something it is always good to test what you created.

I finshed one of my JeOS virtual machines running with ESX server and cloned the JeOS virtual machine.  JeOS appliance was booted and I logged on. A bash script run to change default passwords and SSH server was re-installed to generate SSH keys; immediately after apt-get tried to install SSH server I got an error and script stopped. I run ifconfig and saw no ethernet interface on Eth0 or Eth1.

JeOS nic issue 

The OS did not active the eth0 interface because virtual machine has been cloned and new MAC address assigned to the network interface. In network scripts only eth0 has been enabled and set for DHCP. Open file /etc/udev/rules.d/70-persistent-net.rules to see the problem where two network interfaces are shows with diffrent MAC addresses.

To fix this problem run the following command:

  • sudo rm /etc/udev/rules.d/70-persistent-net.rules

Reboot and the problem has been solved. This issue is not documented and part of the JeOS documentation yet.  I hope this post will help you out there. Credit goes to “oneloveamaru” who helped me in the right direction for finding a solution on my problem.

VMware Workstation 6.04 linux x64 unrecoverable error

Wednesday, June 25th, 2008

I am running Ubuntu 8.04 LTS Desktop Edition 64bit edition and after I installed VMWare Workstation 6.04 Linux x64 edition I got the following error when trying to start my virtual machines sitting on a NTFS USB disk volume.

VMware Workstation unrecoverable error: (vcpu-0)
Failed to allocate page for guest RAM!
A log file is available in “/media/USB_DATA/NET-DC-01/vmware.log”.  Please request support and include the contents of the log file.
To collect data to submit to VMware support, select Help > About and click “Collect Support Data”. You can also run the “vm-support” script in the Workstation folder directly.
We will respond on the basis of your support entitlement.

image

Please click OK and locate the vm file. Open the vmx file with nano or another text editor and add the setting below. Save the file and try to start the virtual machine again.

mainMem.useNamedFile = “FALSE”

This setting doesn’t use named-file – use for VMs on USB-disks or other slow disks
Windows: useNamedFile= “FALSE” causes memory to be backed by the host’s swap space.
Linux: useNamedFile= “FALSE” causes a hidden file to be created in a temporary directory, which is immediately deleted when you power off the VM

Ubuntu JeOS 7.10 VMWare Tools installing issue

Thursday, May 22nd, 2008

Today I hit my first problem when creating a new JeOS virtual appliance based on Ubuntu. After I mount and extract the VMWare tools; I tried to run the ./vmware-install.pl script and got the warning below.

/tmp/vmware-tools-distrib/vmware-config.pl
The following VMware kernel modules have been found on your system that were
not installed by the VMware Installer.  Please remove them then run this
installer again.

vmnet
vmhgfs
vmblock
vmmon

Execution aborted.
 

I did not install any VMWare tools before, but somehow these VMWare modules were included in the ubuntu-7.10-jeos-i386.iso file. Go to following directory and remove the mentioned directories.

cd /lib/modules/2.6.22-14-virtual/ubuntu
ls
sudo rm -r vmnet/
sudo rm -r vmhgfs
sudo rm -r vmblock
sudo rm -r vmmon
 

That’s all. Rerun the install script.