Tag Archives: The virtual machine

VirtualBox + CentOS 7 virtual machine setting static IP address of host only NIC

I am not familiar with the use of VirtualBox. Every time I start the virtual machine, it will be automatically assigned a dynamic IP address (hosting-only), which is very inconvenient for me to use Hadoop and so on. I skipped this problem before, but it took me half a day to solve it finally today.
Specific treatment methods are as follows:
1. Start VirtualBox and select “Administration” –>; “Global Settings”, in the pop-up window, select “Network”, and then in the right window, select the “Host-only Network” TAB, as shown below;

If you don’t have a VirtualBox Host-only Ethernet Adapter, you can add it by clicking “+” on the right.
Then double-click the VirtualBox Host-Only Ethernet Adapter and the following image will pop up:

Select “DHCP Server” and uncheck the “Enable Server” status.


2. Start the virtual machine
Enp0s3 and enp0s8 represent two network cards: Enp0s3 and enp0s8 represent two network cards:
[hadoop@xhp1s2 ~]$ ifconfig
enp0s3: flags=4163< UP,BROADCAST,RUNNING,MULTICAST> MTU 1500
inet6 fe80::a00:27ff:fe4c:2f5b prefixlen 64 scopeid 0x20< link>
ether 08:00:27:4c:2f:5b TXQueuelen 1000 (Ethernet)
Packets 28 bytes 3361 (3.2 Kib)
R>rors 0 dropped 0 overruns 0 frame 0
Tx Pack>58 Bytes 6795 (6.6kib)
errors 0 dropped 0 overruns 0 carrier 0 Collision-losing 0
br> <>bb3 enp0s8: flags=4163< UP,BROADCAST,RUNNING,MULTICAST> MTU 1500
inet6 Fe80 :: A00:27ff: Fe46: D7F8 Prefixlen 64 scopeid 0x20< link>
ether 08:00:27:46: D7: F8 TXQueuelen 1000 (Ethernet)
Packets 24 bytes 6616 (6.4Kib)
R>rors 0 dropped 0 overruns 0 frame 0
Tx Pack>81 9555 bytes (9.3 KiB)
the TX errors 0 dropped overruns carrier collisions 0 0 0 0

In the directory CD /etc/sysconfig/network-scripts, you will see the presence of IFCFG-ENP0S3 file, copy a copy and change the name to IFCFG-ENP0S8, then edit IFCFG-ENP0S8, the final file contents are as follows:
TYPE=Ethernet
HWADDR= 08:00:27.46 :d7:f8 This indicates that the virtual network card address)
BOOTPROTO = static (here to change into the static)
DEFROUTE = yes
PEERDNS = yes
PEERROUTES = yes
IPV4_FAILURE_FATAL = no
IPV6INIT = yes
IPV6_AUTOCONF = yes
IPV6_DEFROUTE = yes
IPV6_PEERDNS = yes
IPV6_PEERROUTES = yes
IPV6_FAILURE_FATAL = no
NAME = enp0s8
UUID = 3 d54f693 – c56 bbef – 4-8984 – e0495a7c21s2 (this unlike enp0s3 coding)
DEVICE = enp0s8
ONBOOT = yes
IPADDR = 192.168.56.103
NETMASK = 255.255.255.0
GATEWAY = 192.168.56.1
Once this is done, start Service Network Restart and everything is OK.

Modify the VDI path of VirtualBox on MacOSX, and transfer the virtual machine


Modify the VDI path of Virtualbox on MacOSX, virtual machine migration

Target: Virtual machine hard disk path from

/Volumes/exFat/XP/XP-30G.vdi

to

/Volumes/exFat2/XP/XP-30G.vdi

error: Cannot register the hard disk ‘/Volumes/exFat2/XP/XP-30G.vdi’ {c547a9be-4373-4a4a-a0cf-3a6dbb606908} because a hard disk ‘/Volumes/exFat/XP/XP-30G.vdi’ with UUID {c547a9be-4373-4a4a-a0cf-3a6dbb606908} already exists.

return code:

NS_ERROR_INVALID_ARG (0x80070057)

component:

VirtualBoxWrap

interface:

IVirtualBox {0169423f-46b4-cde9-91af-1e9d5b6cd945}

called RC:

VBOX_E_OBJECT_NOT_FOUND (0x80BB0001)

solution (OSX/Linux) : 0. Close VirtualBox
1. Copy virtual machine files to other places (generally from /Users/{your user name}/VirtualBox VMs/{virtual machine name}/)
2. Open the command line Terminal

3. Input command:
(Figure below)

1) CD/Applications/VirtualBox. App/Contents/MacOS

2) VBoxManage internalcommands sethduuid /exFat2/XP/ xp-30g. vdi

[note that the path of command 2 is your new target path]

you will see the result of UUID changed to: 77590535-9162-4b2d-8032-11c312042814

4. Reopen VirtualBox
5. Right click, set, store, controller: IDE on the specified virtual machine, click the. Vdi file in the list, find the right side of the virtual hard disk row of the most right icon, click, select a virtual hard disk, modify ok

6. Save and start the virtual machine

The solution (Windows) : http://blog.csdn.net/zhang854429783/article/details/6672199

The icawebwrapper plug-in cannot be found when the Citrix receiver virtualization environment logs in

Today, I encountered a problem when I was working on Citrix project, which was that I couldn’t get into the system after I entered the correct account password when logging in.
The popover indicates that you cannot access the network location of the function you are trying to use. The following means that the path to the folder where icaWebwrap.msi is located could not be found.
 
Solutions:
It took a while, but eventually, after reinstalling the software, the problem was solved…
However, after some time, it was found that the problem occurred again. It was not a solution to always reinstall. After Baidu had searched some data, it tried to unzip Citrix Receiver. done
 
Finally pay attention to Citrix Receiver version!!
 
Feel the article useful friends, click the like to go again.

Differences between Java stack overflow ror and outofmemoryerror

1, StackOverflow: Whenever a Java program starts a new thread, the Java virtual machine allocates a stack for it, and the Java stack keeps the thread running in frames. When a thread calls a method, the JVM presses a new stack frame onto the thread’s stack, and the stack frame exists as long as the method has not returned.
if the method has too many layers of nested calls (such as recursive calls), as the number of frames in the Java stack increases, the total size of all stack frames in the stack of this thread will eventually be greater than the value set by -xss, resulting in a StackOverflowError overflow exception. When the Java program starts a new thread, there is not enough space to allocate the Java stack for the thread. The size of a thread’s Java stack is determined by the -XSS setting. The JVM throws an OutOfMemoryError exception. The Java heap is used to store instances of objects. When it is necessary to allocate memory for instances of objects, and the heap occupation has reached the maximum set value (via -Xmx), OutOfMemoryError will be thrown. The method area is used to store information about Java classes, such as class names, access modifiers, constant pools, field descriptions, method descriptions, and so on. As the class loader loads the class file into memory, the JVM extracts the class information and places it in the method area.
when the class information needs to be stored and the method area has reached its maximum memory footprint (via -xx :MaxPermSize); An OutOfMemoryError exception will be thrown for tests in this case, the basic idea being that the runtime generates a large number of classes to fill the method area until it overflows. You need to manipulate the bytecode runtime directly with the help of CGLib to generate a large number of dynamic classes.

VMware Workstation unrecoverable error: (vcpu-0) c.382

Today, I copied the virtual machine from the old machine to the new machine. I made an error starting the virtual machine:
VMware Workstation is not recoverable error: (vcpu-0)
vcpu-0:VERIFY vmcore/vmm/main/cpuid.c.382
bugNr=1036521
.
See online that there is a way to add the following content to the.vmx file of the virtual machine:
smc.version = 0
Then save and restart.
But I just couldn’t live without it, and then I found another way online, turning on CPU virtualization in my computer’s BIOS Settings.
Find the Intel Virtual Technology in the BIOS, set it to ENABLE, save the restart, and the virtual machine will open normally.