顯示具有 VMware 標籤的文章。 顯示所有文章
顯示具有 VMware 標籤的文章。 顯示所有文章

2016年8月17日 星期三

[VMware] Load a kernel module automatically at boot time

Because vmci didn’t exist under /lib/modules/4.7.0-1-ARCH/misc/
Copy vmci kernel module to /lib/modules
cp /usr/lib/modules/4.7.0-1-ARCH/kernel/drivers/misc/vmw_vmci/vmw_vmci.ko.gz /lib/modules/4.7.0-1-ARCH/misc/
Edit Configuration file
vim /etc/modules-load.d/vmware.conf
Add following modules
vmmon
vmw_vmci
vmnet
If network didn’t connect, type following command.
# sudo vmware-networks --start
Started Bridge networking on vmnet0
Enabled hostonly virtual adapter on vmnet1
Started DHCP service on vmnet1
Started NAT service on vmnet8
Enabled hostonly virtual adapter on vmnet8
Started DHCP service on vmnet8
Started all configured services on all networks
Reference:

2016年8月12日 星期五

[VMware][Archlinux] How to install vmware 12 pro

Linux OS
# uname -a
Linux localhost 4.7.0-1-ARCH #1 SMP PREEMPT Mon Aug 8 22:05:58 CEST 2016 x86_64 GNU/Linux


Pre-settings:
pacman -S linux-headers
pacman -S gcc
pacman -S make

Download VMware 12pro


Execute and install vmware
# sudo bash VMware-Workstation-Full-12.1.1-3770994.x86_64.bundle

After install vmware start to execute "vmware" or "sudo vmware-modconfig --console --install-all".
("sudo vmware-modconfig --console --install-all" compile vmware kernel module)
There are some file which under " /usr/lib/vmware/modules/source" need to be fixed.
The file of VMware kernel module Source under /usr/lib/vmware/modules/source
vmblock.tar vmci.tar vmmon.tar vmnet.tar vsock.tar

vmnet.tar :
userif.c:
Decompress vmnet.tar and edit userif.c and find following string.
“get_user_pages” to “get_user_pages_remote”

netif.c:
Edit following file
/tmp/test/vmnet-only/netif.c:468:7: error: ‘struct net_device’ has no member named ‘trans_start’; did you mean ‘mem_start’?
dev->trans_start = jiffies; –> dev->mem_start = jiffies;


vmmon.tar :
hostif.c:
edit hostif.c and find following string.
“get_user_pages” to “get_user_pages_remote”
/tmp/test/vmmon-only/linux/hostif.c:1165:13: error: too many arguments to function ‘get_user_pages’


Reference:
Debug :
Q1: How to debug

A:
There are many log under /tmp/vmware-root

Q2:
Directory must be non-empty
System service scripts directory (commonly /etc/init.d)

A:
sudo mkdir /etc/init.d

Note :
YF590-4WX8M-H81QZ-2YX59-XVAF6
Reference:

2013年10月19日 星期六

[VMware] How to solve vmware problem in Ubuntu 13.04 (64 bit)

Install vmware in  Ubuntu 13.04 (64 bit), but can't startup.

Using the following command to check out what happened to vmware.
sudo vmware-modconfig --console --install-all

This command can see all of the vmware compiling log.
I saw "implicit declaration of function ‘__devexit_p’ [-Werror=implicit-function-declaration]" this erro message on console log.

Solution :
##### Create a patch file was called vmware9.k3.8rc4.patch #####
--- vmci-only/linux/driver.c    2012-08-16 05:53:18.000000000 +1000

+++ vmci-only3.8rc4/linux/driver.c    2013-01-23 11:19:10.325897824 +1100

@@ -124,7 +124,7 @@

    .name     = "vmci",

    .id_table = vmci_ids,

    .probe = vmci_probe_device,

-   .remove = __devexit_p(vmci_remove_device),

+   .remove = vmci_remove_device,

 };



 #if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 19)

@@ -1750,7 +1750,7 @@

  *-----------------------------------------------------------------------------

  */



-static int __devinit

+static int

 vmci_probe_device(struct pci_dev *pdev,           // IN: vmci PCI device

                   const struct pci_device_id *id) // IN: matching device ID

 {

@@ -1978,7 +1978,7 @@

  *-----------------------------------------------------------------------------

  */



-static void __devexit

+static void

 vmci_remove_device(struct pci_dev* pdev)

 {

    struct vmci_device *dev = pci_get_drvdata(pdev);
###################################

cd /usr/lib/vmware/modules/source
tar -xf vmci.tar
cd vmci-only
patch -p1 < 'vmware9.k3.8rc4.patch'
cd ..
tar -cf vmci.tar vmci-only/


Then solve the problem.

Reference:

2013年5月18日 星期六

[Virtual Box][VMware] How To Convert Virtual Machines Between VirtualBox and VMware


[Virtual Box][VMware] How To Convert Virtual Machines Between VirtualBox and VMware

Virtual Box --> VMware



Open Virtual Box

File --> Export Appliance --> Choose which image you want to convert --> Next --> Next --> Export



In folder will find the file

happy.ova



Open Vmware

File --> New Window --> Open a Virtual Machine --> choose happy.ova --> Import

If the activity is not successful, please retry again.



##############################################################################

VMware --> Virtual Box



Open Vmware

File --> Export To OVF --> Save the file



Open Virtual Box

File --> Import Appliance --> Choose the file --> Import



Reference :








 


2012年9月1日 星期六

2012年8月22日 星期三

[Ubuntu][minicom][Embedded System] How to start minicom



ls /dev

I plug two USB conosole.

can see ttyUSB0  --> USB console 1

can see ttyUSB1  --> USB console 2



Using ttyUSB0 to connect Embedded Board.

Use minicom --device /dev/ttyUSB0 to connect.
Or use minicom -D /dev/ttyUSB0 to connect.







crtl + A to list all function.

X --> exit and reset minicom

2012年8月21日 星期二

2012年8月20日 星期一

[Vmware][ubuntu] How to solve vmware space not enough


[Vmware][ubuntu] How to solve vmware space not enough



Press Utility button to select expand item.



Select orange one to choose how big do you want.



Press expaand button to start expand vmware space.





Start vmware to start my windows XP or Ubuntu.



Download Partition Magic  and install it.



Start Partition Magic.



The picture like below.





Press Resize button to resize the vmware space.



After resize space then press apply.



When successfully apply, vwware space size from little to 40 G.




2012年8月19日 星期日

[Ubuntu][vmware] How to use vmware to use different internet domain


[Ubuntu][vmware] How to use vmware to use different internet domain

 



My enviroment architecture





The bottom layer of ubuntu.

The IP is eth0 and eth4.



so eth0 like my enviroment eth1.

eth4 like my enviroment eth0.



 





 



Setting second layer of VMware.



Please select Virtual Network Editor

 







vmnet0 bridge to eth4.

vmnet1 bridge to eth0.





 



Now set third layer of windows XP.



Set third layer of internet enviroment.



Please choos Vm --> Settings





Select first ethernet card to bridge /dev/vmnet1





Now set third layer of ubuntu



Set third layer of internet enviroment.



Please choos Vm --> Settings



Select first ethernet card to bridge /dev/vmnet0





Now use VNC to control first layer of ubuntu.

Please use PC to connect it.



My pc is ubuntu 10.04.

Choose setting like below.



And connect to first layer of eth0 of ubuntu.

Then I can control first layer of eth0 of ubuntu by using VNC.





 

2012年8月11日 星期六

2012年5月9日 星期三

[Ubuntu] Using VMware with Windows 7 && Connect to Embedded System to test Web Browser


[Ubuntu] Using VMware with Windows 7 && Connect to Embedded System to test Web Browser



1. Choose "Custom:Specific vertual network" -> select "/dev/vmnet1"





2. Setting "IP as 192.168.100.x " "submask as 255.255.255.0" "Gateway IP as 192.168.100.1 "





3. Go to Ubuntu 

sudo ifconfig vmnet1 192.168.100.30

 



4. Create a bridge

brctl addbr uml-bridge (if not brctl command, please type "sudo apt-get install bridge-utils" )



5. Add interface to bridge

sudo brctl addif uml-bridge eth1 (Because I want connect to eth1, so the vmnet1's IP must at the same domain as eth1)



sudo brctl addif uml-bridge vmnet1

 



6. Assign IP to bridge





sudo ifconfig uml-bridge 192.168.100.100 netmask 255.255.255.0 up



 

2012年3月23日 星期五

2011年11月30日 星期三

[VMware] fix VMware Network problem


[VMware] fix VMware Network problem



1.



sudo modprobe vmnet

sudo modprobe vsock



2.



Edit --> virtual network editor--> Choose Bridge && Bridge to : eth 0

Then save

 



3.

Virtual Machine Setting -> Hardware -> Network Adapter : Bridge  &&  No Choose : Replicate physical network connection state (Option : choose or not choose doesn't matter )

Then choose first one "Connected "

Will see connect to internet



YAYA