Installing CentOS 6.5 into VMware Fusion 6.0.2
TweetPosted on Monday Jan 12, 2015 at 11:45PM in Technology
What are the good points of virtual machines?
I'm working to move my personal financial system which is running on a physical machine to virtual machine because its simplicity of maintenance and portability. currently I'm running the system on tower form PC, but it makes annoying noise, and it consumes power much, so I'm going to make the system virtual, and move it to my old MacBook or something.
Backup of virtual machines are so easy because it exists as regular files in the physical machine, and it can be automated easily thanks to OS X's TimeMachine and VMware Fusion's snapshot. and I can easily move its machine running on in case I need to do it. when I want to do some heavy calculation, I can easily copy the whole of the virtual machine to another high-performance environment anytime while running it on low power-consuming machine regularly.
Installation
VMware Fusion 6.0.2 supplies "easy installation" function for CentOS 6.5 (not for 7.0). which answers annoying questions instead of me during installation process. all I need to answer were username and password to use. then, VMware will getting almost all of my work done contains installation of VMware Tools. several minutes after, you'll see GUI login prompt. for my purpose GUI is unnecessary but I don't want to do these annoying work by myself so I just followed this way.
I made some changes before installation begins such as following:
- Increase HDD size to 384GB (There's no need to reserve that actual size in the host machine. actual size increases with actual use in the virtual machine. Increasing of size is impossible when snapshots available, but it's possible after deleting all of snapshots)
- Increase CPU number to 2
- Increate amount of memory to 2GB
- Set network interface to physical (I want to login via ssh from my LAN)
- Enable VNC daemon
Partitioning that VMware did automatically:
[kyle@localhost ~]$ df -h Filesystem Size Used Avail Use% Mounted on /dev/sda3 374G 2.6G 353G 1% / tmpfs 935M 228K 935M 1% /dev/shm /dev/sda1 291M 39M 238M 14% /boot
After installation TODOs:
- Software update (System -> Administration -> Software Update)
- Add user to sudoers
su - visudo
then insert following:kyle ALL=(ALL) NOPASSWD: ALL
- Change timezone to sync the clock
sudo cp -p /usr/share/zoneinfo/Japan /etc/localtime
- Put your ssh public key to ~/.ssh/authorized_keys (make sure to set the permission of .ssh directory to 700, authorized_keys file to 600. if permission wasn't set correctly, password prompt will be appeared)