donderdag 3 maart 2011

Virtual box tips and tricks

Problemen met network na installatie

sudo su -
cat /etc/sysconfig/network |grep -i network

This should return: NETWORKING=yes - If it does not, then change it to yes.

vi /etc/sysconfig/network-scripts/ifcfg-eth0

This should look like:
DEVICE="eth0" HWADDR="08:00:27:07:9e:57" NM_CONTROLLED="YES" ONBOOT="NO"
There are a few options that we want to change here, NM_CONTROLLED needs to be NO, ONBOOT needs to be YES, and finally add this code at the bottom:

BOOTPROTO="dhcp"

This will allow you to grab an IP from your DHCP and essentially enable IPV4.

Now the whole file should look like this:
DEVICE="eth0" HWADDR="08:00:27:07:9e:57" NM_CONTROLLED="NO" ONBOOT="YES" BOOTPROTO="dhcp" Save and close.

Now, lets restart the network service to reload with these settings:
[root@Development ~]# service network restart
dhclient eth0 # gets you DHCP on en0
 
dhclient eth0 # gets you DHCP on en0


Ubuntu boot error in VirtualBox - piix4_smbus 0000.00.07.0: SMBus base address uninitialized - upgrade bios or use force_addr=0xaddr

Doe het volgende

    Start a terminal
    sudo vi /etc/modprobe.d/blacklist.conf
    Add the line blacklist i2c_piix4 to the end of the file and save
    sudo update-initramfs -u -k all


Problemen met installatie: " windows installer service could not be accessed"


Method 2: Unregister and re-register the Windows Installer to do that follow the steps provided below.

1. Click Start, click Run, type MSIEXEC /UNREGISTER, and then click OK. Even if you
do this correctly, it may look like nothing occurs.
2. Click Start, click Run, type MSIEXEC /REGSERVER, and then click OK. Even if you
do this correctly, it may look like nothing occurs, or you may briefly see an hourglass.
After you run this command, the operation is complete.
3. Try your Windows Installer-based application again.

Problemen met DHCP in Virtbox40

DHCP werkt in VB 40 niet meer out-of-the-box. Dit zal handmatig moet gebeuren.
Stop Virtual Box volledig en ga naar DOS box op host.

cd \Program Files\Oracle\VirtualBox
"VBoxManage dhcpserver add --netname intnet --ip 10.13.13.100 --netmask 255.255.255.0 --lowerip 10.13.13.101 --upperip --10.13.13.254 --enable"

 Mounten van een Shared folder

- installeer eerst de Gast uitbreidingen
su
cd /media/VBOXADDITIONS...
sh ./VBoxLinuxAdditions-x86.run


- mount -t vboxsf -o uid=500 Software /stage

mount -t iso9660 /dev/cdrom /media/cdrom


Clonen van een VB machine


VBoxManage clonehd bron.vdi target.vdi

VBoxManage openmedium disk target.vdi


Problemen met clonen ivm met register hard drive because  Cannot Register the Hard Drive Because a Hard Drive with UUID Already Exists
Oplossen dmv
VBOXMANAGE.EXE internalcommands sethduuid c:\mijndata\VirtBox\asmtest\linuxOEL56.vdi



Hoe maak ik de max size kleiner van Virtual Box Hard drive

Cloning the old VDI into the new VDI works only if you can guarantee the following things:

    You have enough space on the host physical hard drive to support cloning
    If the VM has re-partitioned its hard drive to use any of the space allocated by its new max size, then the VDI you clone onto must be exactly the same size or bigger as the guest's entire partition scheme. (I would use a bigger VDI just to be on the safe side.)


First, create a new VDI with the size you wanted in the first place:

"c:\Program Files\Oracle\VirtualBox\VBoxManage.exe" createhd --filename improved.vdi --size 25000

--size is in MB. This example will create a dynamic VDI that has a max size of 25 GB.

Then clone the old VDI onto the new VDI (my old VDI is named Windows 8.vdi):

VBoxManage clonehd Windows\ 8.vdi Windows\ 8\ Improved.vdi --existing

You then use the VirtualBox GUI (or VBoxManage) to use Windows 8 Improved.vdi as your primary hard disk.












Create a new VM

- let base memory > 2560 MB
- network settings op BRIDGED



Na opstarten geclonede VM de volgende stappen uitvoeren


Menu System/administration/Network :
#Network configuration
Deactivate
Delete (eth0.bak)
Yes
Edit (eth)
#Ethernet Device
Choose: Statically set Ip adresses
192.168.1. (adress)
255.255.255.0 (subnet mask)
192.168.1.1 (default gateway)
Hardware Device
Probe
Ok
# Netwerk Configuration
DNS
.localdomain (hostname) <== geef de name of new VM Zorg dat DNS leeg zijn, als ze niet bestaan geeft het alleen maar rottigheid bij installatie Devices File Save Ok Activate File Quit In de commandbox su -l rm -f /etc/sysconfig/networking/devices/ifcfg-eth0.bak # Herconfigureer host file gedit /etc/hosts 192.168.1. h.localdomain h


# Reconfigureer environment variables
gedit /home/oracle/.bash_profile

zet ORACLE_HOSTNAME

Geen opmerkingen:

Een reactie posten